• Kevin Jacobs's avatar
    Bug 1678398 - Add Export/Import functions for HPKE context. r=mt · 10afb436
    Kevin Jacobs authored
    This patch adds and exports two new HPKE functions: `PK11_HPKE_ExportContext` and
    `PK11_HPKE_ImportContext`, which are used to export a serialized HPKE context,
    then later reimport that context and resume Open and Export operations. Only receiver
    contexts are currently supported for export (see the rationale in pk11pub.h).
    
    One other change introduced here is that `PK11_HPKE_GetEncapPubKey` now works as
    expected on the receiver side.
    
    If the `wrapKey` argument is provided to the Export/Import functions, then the
    symmetric keys are wrapped with AES Key Wrap with Padding (SP800-38F, 6.3)
    prior to serialization.
    
    Differential Revision: https://phabricator.services.mozilla.com/D99277
    
    --HG--
    extra : moz-landing-system : lando
    10afb436
Name
Last commit
Last update
..
Makefile Loading commit data...
manifest.mn Loading commit data...
pk11_aes_cmac_unittest.cc Loading commit data...
pk11_aes_gcm_unittest.cc Loading commit data...
pk11_aeskeywrap_unittest.cc Loading commit data...
pk11_aeskeywrapkwp_unittest.cc Loading commit data...
pk11_aeskeywrappad_unittest.cc Loading commit data...
pk11_cbc_unittest.cc Loading commit data...
pk11_chacha20poly1305_unittest.cc Loading commit data...
pk11_cipherop_unittest.cc Loading commit data...
pk11_curve25519_unittest.cc Loading commit data...
pk11_der_private_key_import_unittest.cc Loading commit data...
pk11_des_unittest.cc Loading commit data...
pk11_dsa_unittest.cc Loading commit data...
pk11_ecdh_unittest.cc Loading commit data...
pk11_ecdsa_unittest.cc Loading commit data...
pk11_ecdsa_vectors.h Loading commit data...
pk11_encrypt_derive_unittest.cc Loading commit data...
pk11_export_unittest.cc Loading commit data...
pk11_find_certs_unittest.cc Loading commit data...
pk11_gtest.gyp Loading commit data...
pk11_hkdf_unittest.cc Loading commit data...
pk11_hmac_unittest.cc Loading commit data...
pk11_hpke_unittest.cc Loading commit data...
pk11_ike_unittest.cc Loading commit data...
pk11_import_unittest.cc Loading commit data...
pk11_kbkdf.cc Loading commit data...
pk11_key_unittest.cc Loading commit data...
pk11_keygen.cc Loading commit data...
pk11_keygen.h Loading commit data...
pk11_module_unittest.cc Loading commit data...
pk11_pbkdf2_unittest.cc Loading commit data...
pk11_prf_unittest.cc Loading commit data...
pk11_prng_unittest.cc Loading commit data...
pk11_rsaencrypt_unittest.cc Loading commit data...
pk11_rsaoaep_unittest.cc Loading commit data...
pk11_rsapkcs1_unittest.cc Loading commit data...
pk11_rsapss_unittest.cc Loading commit data...
pk11_rsapss_vectors.h Loading commit data...
pk11_seed_cbc_unittest.cc Loading commit data...
pk11_signature_test.h Loading commit data...