• 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
automation Loading commit data...
cmd Loading commit data...
coreconf Loading commit data...
cpputil Loading commit data...
doc Loading commit data...
fuzz Loading commit data...
gtests Loading commit data...
lib Loading commit data...
nss/automation/abi-check Loading commit data...
nss-tool Loading commit data...
pkg Loading commit data...
tests Loading commit data...
.arcconfig Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
.sancov-blacklist Loading commit data...
.taskcluster.yml Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
build.sh Loading commit data...
exports.gyp Loading commit data...
help.txt Loading commit data...
mach Loading commit data...
manifest.mn Loading commit data...
nss.gyp Loading commit data...
readme.md Loading commit data...
trademarks.txt Loading commit data...