| 90 | /// |
| 91 | |
| 92 | PendingJoin::Inner::Inner(CipherSuite suite_in, |
| 93 | SignaturePrivateKey sig_priv_in, |
| 94 | Credential cred_in) |
| 95 | : suite(suite_in) |
| 96 | , init_priv(HPKEPrivateKey::generate(suite)) |
| 97 | , leaf_priv(HPKEPrivateKey::generate(suite)) |
| 98 | , sig_priv(std::move(sig_priv_in)) |
| 99 | , key_package(suite, |
| 100 | init_priv.public_key, |
| 101 | LeafNode(suite, |
| 102 | leaf_priv.public_key, |
| 103 | sig_priv.public_key, |
| 104 | std::move(cred_in), |
| 105 | Capabilities::create_default(), |
| 106 | Lifetime::create_default(), |
| 107 | {}, |
| 108 | sig_priv), |
| 109 | {}, |
| 110 | sig_priv) |
| 111 | { |
| 112 | } |
| 113 | |
| 114 | PendingJoin |
| 115 | PendingJoin::Inner::create(CipherSuite suite, |