Skip to main content

Module secret

Module secret 

Source
Expand description

Secret bytes and the randomness that produces them.

Key material lives in SecretBytes, which is zeroed when it drops and never prints its contents: a keychain’s derived keys, item keys and decrypted secrets all pass through it.

Structs§

SecretBytes
Byte buffer that is zeroed on drop and never printed.

Functions§

random_bytes
Fill a buffer from the OS CSPRNG.