| 306 | } |
| 307 | |
| 308 | KeyScheduleEpoch::KeyScheduleEpoch(CipherSuite suite_in, |
| 309 | const bytes& joiner_secret, |
| 310 | const bytes& psk_secret, |
| 311 | const bytes& context) |
| 312 | : suite(suite_in) |
| 313 | , joiner_secret(joiner_secret) |
| 314 | , epoch_secret( |
| 315 | make_epoch_secret(suite_in, joiner_secret, psk_secret, context)) |
| 316 | , sender_data_secret(suite.derive_secret(epoch_secret, "sender data")) |
| 317 | , encryption_secret(suite.derive_secret(epoch_secret, "encryption")) |
| 318 | , exporter_secret(suite.derive_secret(epoch_secret, "exporter")) |
| 319 | , epoch_authenticator(suite.derive_secret(epoch_secret, "authentication")) |
| 320 | , external_secret(suite.derive_secret(epoch_secret, "external")) |
| 321 | , confirmation_key(suite.derive_secret(epoch_secret, "confirm")) |
| 322 | , membership_key(suite.derive_secret(epoch_secret, "membership")) |
| 323 | , resumption_psk(suite.derive_secret(epoch_secret, "resumption")) |
| 324 | , init_secret(suite.derive_secret(epoch_secret, "init")) |
| 325 | , external_priv(HPKEPrivateKey::derive(suite, external_secret)) |
| 326 | { |
| 327 | } |
| 328 | |
| 329 | KeyScheduleEpoch::KeyScheduleEpoch(CipherSuite suite_in) |
| 330 | : suite(suite_in) |
nothing calls this directly
no test coverage detected