Skip to main content

Module error

Module error 

Source
Expand description

Error and result types for the crate.

The variant set mirrors the de-facto standard bcrypt crate (0.19) so switching crates is a mechanical change; the one deliberate difference is the payload of BcryptError::Rand, which is this crate’s own EntropyError because OS entropy here is hand-declared rather than pulled from getrandom.

Structs§

EntropyError
Failure of the OS entropy source.

Enums§

BcryptError
Everything that can go wrong in the public API.

Type Aliases§

BcryptResult
Convenience alias mirroring the bcrypt crate.