Struct ring13::aead::SealingKey
source · pub struct SealingKey { /* private fields */ }
Expand description
A key for encrypting and signing (“sealing”) data.
C analog: EVP_AEAD_CTX
with direction evp_aead_seal
.
Go analog: AEAD
Implementations§
source§impl SealingKey
impl SealingKey
sourcepub fn new(
algorithm: &'static Algorithm,
key_bytes: &[u8]
) -> Result<SealingKey, Unspecified>
pub fn new(
algorithm: &'static Algorithm,
key_bytes: &[u8]
) -> Result<SealingKey, Unspecified>
C analogs: EVP_AEAD_CTX_init_with_direction
with direction
evp_aead_seal
, EVP_AEAD_CTX_init
.
Go analog:
crypto.aes.NewCipher