MCPcopy Create free account
hub / github.com/brainboxdotcc/DPP / do_export

Method do_export

mlspp/src/crypto.cpp:286–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286std::tuple<bytes, bytes>
287HPKEPublicKey::do_export(CipherSuite suite,
288 const bytes& info,
289 const std::string& label,
290 size_t size) const
291{
292 auto label_data = from_ascii(label);
293 auto pkR = suite.hpke().kem.deserialize(data);
294 auto [enc, ctx] = suite.hpke().setup_base_s(*pkR, info);
295 auto exported = ctx.do_export(label_data, size);
296 return std::make_tuple(enc, exported);
297}
298
299HPKEPrivateKey
300HPKEPrivateKey::generate(CipherSuite suite)

Callers

nothing calls this directly

Calls 5

from_asciiFunction · 0.85
setup_base_sMethod · 0.80
setup_base_rMethod · 0.80
deserializeMethod · 0.45
deserialize_privateMethod · 0.45

Tested by

no test coverage detected