Crate secrets [] [src]

Protected-access memory for cryptographic secrets.

Provides a convenient way to allocate and access memory for secret data. Data is protected from being read from and/or written to outside of limited scopes, where it may be accessed through pointer semantics or slice semantics.

Memory allocations are protected by guard pages before after the allocation, an underflow canary (to catch underflows before a guard page), and are zeroed out when freed.

Structs

Ref

Wraps an immutably borrowed reference to the contents of a Secret.

RefMut

Wraps an mutably borrowed reference to the contents of a Secret.

Secret

A type that wraps allocated memory suitable for cryptographic secrets.