| 316 | } |
| 317 | |
| 318 | HPKEPrivateKey |
| 319 | HPKEPrivateKey::derive(CipherSuite suite, const bytes& secret) |
| 320 | { |
| 321 | auto priv = suite.hpke().kem.derive_key_pair(secret); |
| 322 | auto priv_data = suite.hpke().kem.serialize_private(*priv); |
| 323 | auto pub = priv->public_key(); |
| 324 | auto pub_data = suite.hpke().kem.serialize(*pub); |
| 325 | return { priv_data, pub_data }; |
| 326 | } |
| 327 | |
| 328 | bytes |
| 329 | HPKEPrivateKey::decrypt(CipherSuite suite, |
nothing calls this directly
no test coverage detected