jose_jwk_use_enc behaviour (JOSE v1.11.12)

View Source

Summary

Callbacks

block_encryptor/2

-callback block_encryptor(KTY, Fields) -> JWEMap when KTY :: any(), Fields :: map(), JWEMap :: map().

decrypt_private/3

(optional)
-callback decrypt_private(CipherText, Options, KTY) -> PlainText
                             when
                                 CipherText :: iodata(),
                                 Options :: any(),
                                 KTY :: any(),
                                 PlainText :: iodata().

derive_key/1

(optional)
-callback derive_key(KTY) -> DerivedKey when KTY :: any(), DerivedKey :: iodata().

derive_key/2

(optional)
-callback derive_key(OtherKTY, KTY) -> DerivedKey
                        when OtherKTY :: any(), KTY :: any(), DerivedKey :: iodata().

encrypt_public/3

(optional)
-callback encrypt_public(PlainText, Options, KTY) -> CipherText
                            when
                                PlainText :: iodata(),
                                Options :: any(),
                                KTY :: any(),
                                CipherText :: iodata().