jose_jwe_alg behaviour (JOSE v1.11.12)

View Source

Summary

Callbacks

key_decrypt/3

-callback key_decrypt(Key, {ENCModule, ENC, EncryptedKey}, ALG) -> DecryptedKey
                         when
                             Key :: any(),
                             ENCModule :: module(),
                             ENC :: any(),
                             EncryptedKey :: iodata(),
                             ALG :: any(),
                             DecryptedKey :: iodata().

key_encrypt/3

-callback key_encrypt(Key, DecryptedKey, ALG) -> {EncryptedKey, NewALG}
                         when
                             Key :: any(),
                             DecryptedKey :: iodata(),
                             ALG :: any(),
                             EncryptedKey :: iodata(),
                             NewALG :: any().

next_cek/3

-callback next_cek(Key, {ENCModule, ENC}, ALG) -> {DecryptedKey, NewALG}
                      when
                          Key :: any(),
                          ENCModule :: module(),
                          ENC :: any(),
                          ALG :: any(),
                          DecryptedKey :: iodata(),
                          NewALG :: any().

Functions

generate_key(Parameters, Algorithm, Encryption)