jose_jwe_alg_ecdh_1pu (JOSE v1.11.12)

View Source

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

Summary

Types

alg/0

-type 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/0

-type ec_public_key() ::
          {#'ECPoint'{point :: term()},
           {namedCurve, Oid :: tuple()} |
           #'ECParameters'{version :: term(),
                           fieldID :: term(),
                           curve :: term(),
                           base :: term(),
                           order :: term(),
                           cofactor :: term()}} |
          term().

Functions

algorithm(Jose_jwe_alg_ecdh_1pu)

from_map(F)

generate_key(Fields, _, ALG)

key_decrypt(Z, EncryptedKey, JWEECDH1PU)

key_encrypt(Key, DecryptedKey, JWEECDH1PU)

next_cek(Jose_jwk, _, JWEECDH1PU)

to_map(A, F)