Trait askar_crypto::alg::aes::AesType[][src]

pub trait AesType: 'static {
    type KeySize: ArrayLength<u8>;

    const ALG_TYPE: AesTypes;
    const JWK_ALG: &'static str;
}
This is supported on crate feature aes only.
Expand description

Trait implemented by supported AES authenticated encryption algorithms

Associated Types

type KeySize: ArrayLength<u8>[src]

Expand description

The size of the key secret bytes

Loading content...

Associated Constants

const ALG_TYPE: AesTypes[src]

Expand description

The associated algorithm type

const JWK_ALG: &'static str[src]

Expand description

The associated JWK algorithm name

Loading content...

Implementors

impl AesType for A128CbcHs256[src]

type KeySize = U32

const ALG_TYPE: AesTypes[src]

const JWK_ALG: &'static str[src]

impl AesType for A128Gcm[src]

type KeySize = Self::KeySize

const ALG_TYPE: AesTypes[src]

const JWK_ALG: &'static str[src]

impl AesType for A128Kw[src]

type KeySize = <Aes128 as NewBlockCipher>::KeySize

const ALG_TYPE: AesTypes[src]

const JWK_ALG: &'static str[src]

impl AesType for A256CbcHs512[src]

type KeySize = U64

const ALG_TYPE: AesTypes[src]

const JWK_ALG: &'static str[src]

impl AesType for A256Gcm[src]

type KeySize = Self::KeySize

const ALG_TYPE: AesTypes[src]

const JWK_ALG: &'static str[src]

impl AesType for A256Kw[src]

type KeySize = <Aes256 as NewBlockCipher>::KeySize

const ALG_TYPE: AesTypes[src]

const JWK_ALG: &'static str[src]

Loading content...