diff --git a/src/opaque.rs b/src/opaque.rs index 6cf87fd..1209461 100644 --- a/src/opaque.rs +++ b/src/opaque.rs @@ -241,6 +241,8 @@ pub struct ClientRegistrationFinishResult { pub message: RegistrationUpload, /// The export key output by client registration pub export_key: GenericArray::OutputSize>, + /// The server's static public key + pub server_s_pk: PublicKey, /// Instance of the ClientRegistration, only used in tests for checking zeroize #[cfg(test)] pub state: ClientRegistration, @@ -252,6 +254,7 @@ impl Clone for ClientRegistrationFinishResult { Self { message: self.message.clone(), export_key: self.export_key.clone(), + server_s_pk: self.server_s_pk.clone(), #[cfg(test)] state: self.state.clone(), } @@ -290,6 +293,7 @@ impl ClientRegistration { client_s_pk, }, export_key, + server_s_pk: r2.server_s_pk, #[cfg(test)] state: self, })