Api

Trait Api 

Source
pub trait Api: Send {
Show 14 associated items type Aes128Ccm: Api<U16, U13, Tag = U4>; type Aes256Cbc: Api<U32, U16>; type Aes256Gcm: Api<U32, U12>; type Ed25519: Api; type HmacSha256: Hmac<KeySize = U64, OutputSize = U32>; type HmacSha384: Hmac<KeySize = U128, OutputSize = U48>; type P256: Api<U32>; type P256Ecdh: Api<32>; type P256Ecdsa: Api<32>; type P384: Api<U48>; type P384Ecdh: Api<48>; type P384Ecdsa: Api<48>; 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.

AES-128-CCM interface.

Source

type Aes256Cbc: Api<U32, U16>

Available on crate feature api-crypto-aes256-cbc only.

AES-256-CBC interface.

Source

type Aes256Gcm: Api<U32, U12>

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

AES-256-GCM interface.

Source

type Ed25519: Api

Available on crate feature api-crypto-ed25519 only.

Ed25519 interface.

Source

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

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

HMAC-SHA-256 interface.

Source

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

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

HMAC-SHA-384 interface.

Source

type P256: Api<U32>

Available on crate feature api-crypto-p256 only.

P-256 interface.

Source

type P256Ecdh: Api<32>

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

P-256 ECDH interface.

Source

type P256Ecdsa: Api<32>

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

P-256 ECDSA interface.

Source

type P384: Api<U48>

Available on crate feature api-crypto-p384 only.

P-384 interface.

Source

type P384Ecdh: Api<48>

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

P-384 ECDH interface.

Source

type P384Ecdsa: Api<48>

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

P-384 ECDSA interface.

Source

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

Available on crate feature api-crypto-sha256 only.

SHA-256 interface.

Source

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

Available on crate feature api-crypto-sha384 only.

SHA-384 interface.

Implementors§