jose_jwe_enc_aes (JOSE v1.11.12)

View Source

Summary

Types

cipher/0

-type cipher() :: aes_cbc | aes_gcm.

enc/0

-type enc() ::
          #jose_jwe_enc_aes{cipher :: undefined | {cipher(), key_size()},
                            bits :: undefined | pos_integer(),
                            cek_len :: undefined | pos_integer(),
                            iv_len :: undefined | pos_integer(),
                            enc_len :: undefined | pos_integer(),
                            mac_len :: undefined | pos_integer(),
                            tag_len :: undefined | pos_integer(),
                            hmac :: undefined | sha256 | sha384 | sha512}.

key_size/0

-type key_size() :: 128 | 192 | 256.

Functions

algorithm(Jose_jwe_enc_aes)

bits(Jose_jwe_enc_aes)

block_decrypt(_, CEK, IV, Jose_jwe_enc_aes)

block_encrypt(_, CEK, IV, Jose_jwe_enc_aes)

cipher_supported()

from_map(F)

hmac_supported()

next_cek(Jose_jwe_enc_aes)

next_iv(Jose_jwe_enc_aes)

to_map(Jose_jwe_enc_aes, F)