jose_jwk behaviour (JOSE v1.11.12)

View Source

Summary

Functions

Generates an ephemeral private key based on receiver public key curve.

Generates an ephemeral private key based on receiver public key curve.

Generates an ephemeral private key based on receiver public key curve.

Generates a new static secret key based on receiver public key curve.

Types

key/0

-type key() ::
          #jose_jwk{keys :: undefined | {module(), any()},
                    kty :: undefined | {module(), any()},
                    fields :: map()}.

Callbacks

from_map/1

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

to_key/1

-callback to_key(KTY) -> Key when KTY :: any(), Key :: any().

to_map/2

-callback to_map(KTY, Fields) -> Map when KTY :: any(), Fields :: map(), Map :: map().

to_public_map/2

-callback to_public_map(KTY, Fields) -> Map when KTY :: any(), Fields :: map(), Map :: map().

to_thumbprint_map/2

-callback to_thumbprint_map(KTY, Fields) -> Map when KTY :: any(), Fields :: map(), Map :: map().

Functions

block_decrypt(Encrypted, JWK)

block_encrypt(PlainText, JWK)

block_encrypt(PlainText, JWE, JWK)

block_encryptor(List)

box_decrypt(Encrypted, VStaticSecretKey)

box_decrypt_ecdh_1pu(Encrypted, UStaticPublicKey, VStaticSecretKey)

box_decrypt_ecdh_es(Encrypted, VStaticSecretKey)

box_decrypt_ecdh_ss(Encrypted, VStaticSecretKey0)

box_encrypt(PlainText, VStaticPublicKey)

Generates an ephemeral private key based on receiver public key curve.

box_encrypt(PlainText, VStaticPublicKey, UEphemeralSecretKey)

box_encrypt(PlainText, JWE, VStaticPublicKey, UEphemeralSecretKey)

box_encrypt_ecdh_1pu(PlainText, VStaticPublicKey, UStaticSecretKey)

Generates an ephemeral private key based on receiver public key curve.

box_encrypt_ecdh_1pu(PlainText, VStaticPublicKey, UStaticSecretKey, UEphemeralSecretKey)

box_encrypt_ecdh_1pu(PlainText, JWE, VStaticPublicKey, UStaticSecretKey, UEphemeralSecretKey)

box_encrypt_ecdh_es(PlainText, VStaticPublicKey)

Generates an ephemeral private key based on receiver public key curve.

box_encrypt_ecdh_es(PlainText, VStaticPublicKey, UEphemeralSecretKey)

box_encrypt_ecdh_es(PlainText, JWE, VStaticPublicKey, UEphemeralSecretKey)

box_encrypt_ecdh_ss(PlainText, VStaticPublicKey0)

Generates a new static secret key based on receiver public key curve.

box_encrypt_ecdh_ss(PlainText, VStaticPublicKey0, UStaticSecretKey0)

box_encrypt_ecdh_ss(PlainText, JWE0, VStaticPublicKey0, UStaticSecretKey0)

from(List)

from(Key, List)

from_binary(List)

from_binary(Key, List)

from_der(List)

from_der(Key, List)

from_der_file(File)

from_der_file(Key, File)

from_file(File)

from_file(Key, File)

from_firebase(Binary)

from_key(List)

from_map(List)

from_map(Key, List)

from_oct(List)

from_oct(Key, List)

from_oct_file(File)

from_oct_file(Key, File)

from_okp(List)

from_openssh_key(List)

from_openssh_key_file(File)

from_pem(List)

from_pem(Key, List)

from_pem_file(File)

from_pem_file(Key, File)

generate_key(Jose_jwk)

merge(LeftJWK, RightMap)

shared_secret(Jose_jwk, MyJWK)

sign(PlainText, JWK)

sign(PlainText, JWS, JWK)

signer(List)

thumbprint(List)

thumbprint(DigestType, List)

thumbprint_concat(List)

thumbprint_concat(DigestType, List)

to_binary(List)

to_binary(Key, List)

to_binary(Key, JWE, JWK)

to_der(List)

to_der(Key, Jose_jwk)

to_der_file(File, JWK)

to_der_file(Key, File, JWK)

to_file(File, JWK)

to_file(Key, File, JWK)

to_file(Key, File, JWE, JWK)

to_key(List)

to_map(List)

to_map(Key, JWK)

to_map(Key, JWE, JWK)

to_oct(List)

to_oct(Key, JWK)

to_oct(Key, JWE, JWK)

to_oct_file(File, JWK)

to_oct_file(Key, File, JWK)

to_oct_file(Key, File, JWE, JWK)

to_okp(List)

to_openssh_key(List)

to_openssh_key_file(File, JWK)

to_pem(List)

to_pem(Key, Jose_jwk)

to_pem_file(File, JWK)

to_pem_file(Key, File, JWK)

to_public(List)

to_public_file(File, JWK)

to_public_key(List)

to_public_map(List)

to_thumbprint_map(List)

verifier(List)

verify(Signed, JWK)

verify_strict(Signed, Allow, JWK)