Module jose_jwe_alg_ecdh_1pu

Key Agreement with Elliptic Curve Diffie-Hellman One-Pass Unified Model (ECDH-1PU) See https://datatracker.ietf.org/doc/html/draft-madden-jose-ecdh-1pu-04.

Copyright © 2014-2022, Andrew Bennett

Behaviours: jose_jwe, jose_jwe_alg.

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

Description

Key Agreement with Elliptic Curve Diffie-Hellman One-Pass Unified Model (ECDH-1PU) See https://datatracker.ietf.org/doc/html/draft-madden-jose-ecdh-1pu-04

Data Types

alg()

alg() = #jose_jwe_alg_ecdh_1pu{epk = 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(Z, EncryptedKey, JWEECDH1PU) -> any()

key_encrypt/3

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

next_cek/3

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

to_map/2

to_map(A, F) -> any()


Generated by EDoc