| 284 | } |
| 285 | |
| 286 | std::tuple<bytes, bytes> |
| 287 | HPKEPublicKey::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 | |
| 299 | HPKEPrivateKey |
| 300 | HPKEPrivateKey::generate(CipherSuite suite) |
nothing calls this directly
no test coverage detected