Module jose_jwe_enc_aes

.

Copyright © 2014-2015, Andrew Bennett

Behaviours: jose_jwe, jose_jwe_enc.

Authors: Andrew Bennett (andrew@pixid.com).

Description

Data Types

cipher()

cipher() = aes_cbc | aes_gcm

enc()

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()

key_size() = 128 | 192 | 256

Function Index

algorithm/1
bits/1
block_decrypt/4
block_encrypt/4
cipher_supported/0
from_map/1
hmac_supported/0
next_cek/1
next_iv/1
to_map/2

Function Details

algorithm/1

algorithm(X1) -> any()

bits/1

bits(Jose_jwe_enc_aes) -> any()

block_decrypt/4

block_decrypt(X1, CEK, IV, Jose_jwe_enc_aes) -> any()

block_encrypt/4

block_encrypt(X1, CEK, IV, Jose_jwe_enc_aes) -> any()

cipher_supported/0

cipher_supported() -> any()

from_map/1

from_map(F) -> any()

hmac_supported/0

hmac_supported() -> any()

next_cek/1

next_cek(Jose_jwe_enc_aes) -> any()

next_iv/1

next_iv(Jose_jwe_enc_aes) -> any()

to_map/2

to_map(X1, F) -> any()


Generated by EDoc