[][src]Module lib3h_sodium::secbuf

This module provides an abstraction for memory for use with libsodium

Structs

Locker

a helper object that will automatically secure a SecBuf when dropped

SecBuf

A SecBuf is a memory buffer for use with libsodium functions. It can be backed by insecure (raw) memory for things like public keys, or secure (mlocked / mprotected) memory for things like private keys.

Enums

ProtectState

Represents the memory protection state of a SecBuf

Traits

Bufferable

a trait for structures that can be used as a backing store for SecBuf