Struct ring::aead::SealingKey [−][src]
pub struct SealingKey { /* fields omitted */ }
A key for encrypting and signing (“sealing”) data.
C analog: EVP_AEAD_CTX
with direction evp_aead_seal
.
Go analog: AEAD
Methods
impl SealingKey
[src]
impl SealingKey
pub fn new(
algorithm: &'static Algorithm,
key_bytes: &[u8]
) -> Result<SealingKey, Unspecified>
[src]
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
pub fn algorithm(&self) -> &'static Algorithm
[src]
pub fn algorithm(&self) -> &'static Algorithm
The key's AEAD algorithm.
C analog: EVP_AEAD_CTX.aead
Auto Trait Implementations
impl Send for SealingKey
impl Send for SealingKey
impl Sync for SealingKey
impl Sync for SealingKey