View Source jose_jwk behaviour (JOSE v1.11.9)

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

-type key() :: #jose_jwk{}.

Callbacks

-callback from_map(Fields) -> KTY when Fields :: map(), KTY :: any().
-callback to_key(KTY) -> Key when KTY :: any(), Key :: any().
-callback to_map(KTY, Fields) -> Map when KTY :: any(), Fields :: map(), Map :: map().
-callback to_public_map(KTY, Fields) -> Map when KTY :: any(), Fields :: map(), Map :: map().
-callback to_thumbprint_map(KTY, Fields) -> Map when KTY :: any(), Fields :: map(), Map :: map().

Functions

Link to this function

block_decrypt(Encrypted, JWK)

View Source
Link to this function

block_encrypt(PlainText, JWK)

View Source
Link to this function

block_encrypt(PlainText, JWE, JWK)

View Source
Link to this function

box_decrypt(Encrypted, VStaticSecretKey)

View Source
Link to this function

box_decrypt_ecdh_1pu(Encrypted, UStaticPublicKey, VStaticSecretKey)

View Source
Link to this function

box_decrypt_ecdh_es(Encrypted, VStaticSecretKey)

View Source
Link to this function

box_decrypt_ecdh_ss(Encrypted, VStaticSecretKey0)

View Source
Link to this function

box_encrypt(PlainText, VStaticPublicKey)

View Source
Generates an ephemeral private key based on receiver public key curve.
Link to this function

box_encrypt(PlainText, VStaticPublicKey, UEphemeralSecretKey)

View Source
Link to this function

box_encrypt(PlainText, JWE, VStaticPublicKey, UEphemeralSecretKey)

View Source
Link to this function

box_encrypt_ecdh_1pu(PlainText, VStaticPublicKey, UStaticSecretKey)

View Source
Generates an ephemeral private key based on receiver public key curve.
Link to this function

box_encrypt_ecdh_1pu(PlainText, VStaticPublicKey, UStaticSecretKey, UEphemeralSecretKey)

View Source
Link to this function

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

View Source
Link to this function

box_encrypt_ecdh_es(PlainText, VStaticPublicKey)

View Source
Generates an ephemeral private key based on receiver public key curve.
Link to this function

box_encrypt_ecdh_es(PlainText, VStaticPublicKey, UEphemeralSecretKey)

View Source
Link to this function

box_encrypt_ecdh_es(PlainText, JWE, VStaticPublicKey, UEphemeralSecretKey)

View Source
Link to this function

box_encrypt_ecdh_ss(PlainText, VStaticPublicKey0)

View Source
Generates a new static secret key based on receiver public key curve.
Link to this function

box_encrypt_ecdh_ss(PlainText, VStaticPublicKey0, UStaticSecretKey0)

View Source
Link to this function

box_encrypt_ecdh_ss(PlainText, JWE0, VStaticPublicKey0, UStaticSecretKey0)

View Source
Link to this function

from_der_file(Key, File)

View Source
Link to this function

from_oct_file(Key, File)

View Source
Link to this function

from_openssh_key_file(File)

View Source
Link to this function

from_pem_file(Key, File)

View Source
Link to this function

merge(LeftJWK, RightMap)

View Source
Link to this function

shared_secret(Jose_jwk, MyJWK)

View Source
Link to this function

sign(PlainText, JWS, JWK)

View Source
Link to this function

thumbprint(DigestType, List)

View Source
Link to this function

thumbprint_concat(DigestType, List)

View Source
Link to this function

to_binary(Key, JWE, JWK)

View Source
Link to this function

to_der_file(Key, File, JWK)

View Source
Link to this function

to_file(Key, File, JWE, JWK)

View Source
Link to this function

to_oct_file(Key, File, JWK)

View Source
Link to this function

to_oct_file(Key, File, JWE, JWK)

View Source
Link to this function

to_openssh_key_file(File, JWK)

View Source
Link to this function

to_pem_file(Key, File, JWK)

View Source
Link to this function

to_public_file(File, JWK)

View Source
Link to this function

verify_strict(Signed, Allow, JWK)

View Source