Module jose_jwe_alg_ecdh_ss

Use of Static-Static ECDH in JSON Object Signing and Encryption (JOSE) See https://datatracker.ietf.org/doc/html/draft-amringer-jose-ecdh-ss-00.

Copyright © 2014-2022, Andrew Bennett

Behaviours: jose_jwe, jose_jwe_alg.

Authors: Andrew Bennett (potatosaladx@gmail.com).

Description

Use of Static-Static ECDH in JSON Object Signing and Encryption (JOSE) See https://datatracker.ietf.org/doc/html/draft-amringer-jose-ecdh-ss-00

Data Types

alg()

alg() = #jose_jwe_alg_ecdh_ss{spk = undefined | {ec_public_key(), map()}, apu = undefined | binary(), apv = undefined | binary(), wrap = undefined | aes_gcm_kw | aes_kw | c20p_kw | xc20p_kw, bits = undefined | 128 | 192 | 256, iv = undefined | binary(), tag = undefined | binary()}

ec_public_key()

ec_public_key() = {#'ECPoint'{}, {namedCurve, Oid::tuple()} | #'ECParameters'{}} | term()

Function Index

algorithm/1
from_map/1
generate_key/3
key_decrypt/3
key_encrypt/3
next_cek/3
to_map/2

Function Details

algorithm/1

algorithm(X1) -> any()

from_map/1

from_map(F) -> any()

generate_key/3

generate_key(Fields, X2, ALG) -> any()

key_decrypt/3

key_decrypt(VStaticSecretKey, EncryptedKey, JWEECDHSS) -> any()

key_encrypt/3

key_encrypt(Key, DecryptedKey, JWEECDHSS) -> any()

next_cek/3

next_cek(Jose_jwk, X2, JWEECDHSS) -> any()

to_map/2

to_map(A, F) -> any()


Generated by EDoc