Trait cosmian_crypto_core::SecretCBytes

source ·
pub trait SecretCBytes<const LENGTH: usize>: RandomFixedSizeCBytes<LENGTH> + Zeroize + ZeroizeOnDrop { }
Expand description

Secret array of bytes such as a symmetric key or an elliptic curve private key.

These bytes must be zeroized on drop.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl SecretCBytes<{ CURVE_25519_SECRET_LENGTH }> for Curve25519Secret

source§

impl SecretCBytes<{ R25519_PRIVATE_KEY_LENGTH }> for R25519PrivateKey

source§

impl<const LENGTH: usize> SecretCBytes<LENGTH> for SymmetricKey<LENGTH>

The symmetric key is a secret and must be zeroized.