| 297 | } |
| 298 | |
| 299 | HPKEPrivateKey |
| 300 | HPKEPrivateKey::generate(CipherSuite suite) |
| 301 | { |
| 302 | auto priv = suite.hpke().kem.generate_key_pair(); |
| 303 | auto priv_data = suite.hpke().kem.serialize_private(*priv); |
| 304 | auto pub = priv->public_key(); |
| 305 | auto pub_data = suite.hpke().kem.serialize(*pub); |
| 306 | return { priv_data, pub_data }; |
| 307 | } |
| 308 | |
| 309 | HPKEPrivateKey |
| 310 | HPKEPrivateKey::parse(CipherSuite suite, const bytes& data) |
nothing calls this directly
no test coverage detected