Function libpasta::config::set_primitive
[−]
[src]
pub fn set_primitive(primitive: Primitive)
Set the default hashing primitive to be used
This will only work if no API calls have been previously made
Panics
This will panic if set_primitive
is called after hvaing already used
the API, e.g. by calling hash_password
.
This is to avoid any races between setting config values and using them.