pub trait Api: Send {
    type Aes128Ccm: Api<U16, U13, Tag = U4>;
    type Aes256Gcm: Api<U32, U12>;
    type HmacSha256: Hmac<KeySize = U64, OutputSize = U32>;
    type HmacSha384: Hmac<KeySize = U128, OutputSize = U48>;
    type P256: Api<U32>;
    type P384: Api<U48>;
    type Sha256: Hash<BlockSize = U64, OutputSize = U32>;
    type Sha384: Hash<BlockSize = U128, OutputSize = U48>;
}
Available on crate feature internal-api-crypto only.
Expand description

Cryptography interface.

Required Associated Types§

source

type Aes128Ccm: Api<U16, U13, Tag = U4>

Available on crate feature api-crypto-aes128-ccm only.
source

type Aes256Gcm: Api<U32, U12>

Available on crate feature api-crypto-aes256-gcm only.
source

type HmacSha256: Hmac<KeySize = U64, OutputSize = U32>

Available on crate feature api-crypto-hmac-sha256 only.
source

type HmacSha384: Hmac<KeySize = U128, OutputSize = U48>

Available on crate feature api-crypto-hmac-sha384 only.
source

type P256: Api<U32>

Available on crate feature api-crypto-p256 only.
source

type P384: Api<U48>

Available on crate feature api-crypto-p384 only.
source

type Sha256: Hash<BlockSize = U64, OutputSize = U32>

Available on crate feature api-crypto-sha256 only.
source

type Sha384: Hash<BlockSize = U128, OutputSize = U48>

Available on crate feature api-crypto-sha384 only.

Implementors§