Module libpasta::config
[−]
[src]
Configuration
Included here are methods to setup and configure libpasta
.
Currently, this refers to the choice of default hashing algorithm.
Configuration can be specified in two ways: through configuration files, or programmatically.
Alternatively, the set_primitive
function, and others, can be used
to configure the library. However, note that once the library is "in use",
i.e. a function like hash_password
has been called, then attempting
to configure the library will cause a panic.
There are a number of ways panics can happen through using the configuration
files. libpasta
does not try to recover gracefully if
Structs
Config |
Holds possible configuration options See the module level documentation for more information. |
DEFAULT_ALG |
Default algorithm to use for new hash computations. |
DEFAULT_CONFIG |
Default configuration set. |
DEFAULT_PRIM |
Default primitive used for hash computations |
RANDOMNESS_SOURCE |
Global source of randomness for generating salts |
Enums
Presets |
Configuration presets |