Expose public key in ClientRegistrationFinishResult
This commit is contained in:
@@ -241,6 +241,8 @@ pub struct ClientRegistrationFinishResult<CS: CipherSuite> {
|
|||||||
pub message: RegistrationUpload<CS>,
|
pub message: RegistrationUpload<CS>,
|
||||||
/// The export key output by client registration
|
/// The export key output by client registration
|
||||||
pub export_key: GenericArray<u8, <CS::Hash as Digest>::OutputSize>,
|
pub export_key: GenericArray<u8, <CS::Hash as Digest>::OutputSize>,
|
||||||
|
/// The server's static public key
|
||||||
|
pub server_s_pk: PublicKey,
|
||||||
/// Instance of the ClientRegistration, only used in tests for checking zeroize
|
/// Instance of the ClientRegistration, only used in tests for checking zeroize
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
pub state: ClientRegistration<CS>,
|
pub state: ClientRegistration<CS>,
|
||||||
@@ -252,6 +254,7 @@ impl<CS: CipherSuite> Clone for ClientRegistrationFinishResult<CS> {
|
|||||||
Self {
|
Self {
|
||||||
message: self.message.clone(),
|
message: self.message.clone(),
|
||||||
export_key: self.export_key.clone(),
|
export_key: self.export_key.clone(),
|
||||||
|
server_s_pk: self.server_s_pk.clone(),
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
state: self.state.clone(),
|
state: self.state.clone(),
|
||||||
}
|
}
|
||||||
@@ -290,6 +293,7 @@ impl<CS: CipherSuite> ClientRegistration<CS> {
|
|||||||
client_s_pk,
|
client_s_pk,
|
||||||
},
|
},
|
||||||
export_key,
|
export_key,
|
||||||
|
server_s_pk: r2.server_s_pk,
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
state: self,
|
state: self,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user