pub struct CredentialResponse<CS: CipherSuite> { /* private fields */ }Expand description
The answer sent by the server to the user, upon reception of the login attempt
Implementations§
Source§impl<CS: CipherSuite> CredentialResponse<CS>
impl<CS: CipherSuite> CredentialResponse<CS>
Sourcepub fn serialize(&self) -> GenericArray<u8, CredentialResponseLen<CS>>where
<CS::KeyExchange as KeyExchange>::KE2Message: Serialize,
<<CS::OprfCs as CipherSuite>::Group as Group>::ElemLen: Add<U32> + ArrayLength,
Sum<<<CS::OprfCs as CipherSuite>::Group as Group>::ElemLen, U32>: ArrayLength + Add<Sum<Sum<<<<CS::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as OutputSizeUser>::OutputSize, U32>, <<CS::KeyExchange as KeyExchange>::Group as Group>::PkLen>>,
Sum<Sum<<<CS::OprfCs as CipherSuite>::Group as Group>::ElemLen, U32>, Sum<Sum<<<<CS::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as OutputSizeUser>::OutputSize, U32>, <<CS::KeyExchange as KeyExchange>::Group as Group>::PkLen>>: ArrayLength + Add<<<CS::KeyExchange as KeyExchange>::KE2Message as Serialize>::Len>,
CredentialResponseLen<CS>: ArrayLength,
pub fn serialize(&self) -> GenericArray<u8, CredentialResponseLen<CS>>where
<CS::KeyExchange as KeyExchange>::KE2Message: Serialize,
<<CS::OprfCs as CipherSuite>::Group as Group>::ElemLen: Add<U32> + ArrayLength,
Sum<<<CS::OprfCs as CipherSuite>::Group as Group>::ElemLen, U32>: ArrayLength + Add<Sum<Sum<<<<CS::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as OutputSizeUser>::OutputSize, U32>, <<CS::KeyExchange as KeyExchange>::Group as Group>::PkLen>>,
Sum<Sum<<<CS::OprfCs as CipherSuite>::Group as Group>::ElemLen, U32>, Sum<Sum<<<<CS::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as OutputSizeUser>::OutputSize, U32>, <<CS::KeyExchange as KeyExchange>::Group as Group>::PkLen>>: ArrayLength + Add<<<CS::KeyExchange as KeyExchange>::KE2Message as Serialize>::Len>,
CredentialResponseLen<CS>: ArrayLength,
Serialization into bytes
Sourcepub fn deserialize(input: &[u8]) -> Result<Self, ProtocolError>
pub fn deserialize(input: &[u8]) -> Result<Self, ProtocolError>
Deserialization from bytes
Trait Implementations§
Source§impl<CS: CipherSuite> Clone for CredentialResponse<CS>
impl<CS: CipherSuite> Clone for CredentialResponse<CS>
Source§impl<CS: CipherSuite> Debug for CredentialResponse<CS>
impl<CS: CipherSuite> Debug for CredentialResponse<CS>
Source§impl<'de, CS: CipherSuite> Deserialize<'de> for CredentialResponse<CS>
impl<'de, CS: CipherSuite> Deserialize<'de> for CredentialResponse<CS>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<CS: CipherSuite> Eq for CredentialResponse<CS>
Source§impl<CS: CipherSuite> Hash for CredentialResponse<CS>
impl<CS: CipherSuite> Hash for CredentialResponse<CS>
Source§impl<CS: CipherSuite> PartialEq for CredentialResponse<CS>where
EvaluationElement<CS::OprfCs>: PartialEq,
<CS::KeyExchange as KeyExchange>::KE2Message: PartialEq,
impl<CS: CipherSuite> PartialEq for CredentialResponse<CS>where
EvaluationElement<CS::OprfCs>: PartialEq,
<CS::KeyExchange as KeyExchange>::KE2Message: PartialEq,
Source§impl<CS: CipherSuite> Serialize for CredentialResponse<CS>
impl<CS: CipherSuite> Serialize for CredentialResponse<CS>
Auto Trait Implementations§
impl<CS> Freeze for CredentialResponse<CS>where
<<CS as CipherSuite>::KeyExchange as KeyExchange>::KE2Message: Freeze,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: Freeze,
<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as OutputSizeUser>::OutputSize as ArraySize>::ArrayType<u8>: Freeze,
<<<<CS as CipherSuite>::KeyExchange as KeyExchange>::Group as Group>::PkLen as ArrayLength>::ArrayType<u8>: Freeze,
impl<CS> RefUnwindSafe for CredentialResponse<CS>where
<<CS as CipherSuite>::KeyExchange as KeyExchange>::KE2Message: RefUnwindSafe,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: RefUnwindSafe,
<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as OutputSizeUser>::OutputSize as ArraySize>::ArrayType<u8>: RefUnwindSafe,
<<<<CS as CipherSuite>::KeyExchange as KeyExchange>::Group as Group>::PkLen as ArrayLength>::ArrayType<u8>: RefUnwindSafe,
impl<CS> Send for CredentialResponse<CS>where
<<CS as CipherSuite>::KeyExchange as KeyExchange>::KE2Message: Send,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: Send,
impl<CS> Sync for CredentialResponse<CS>where
<<CS as CipherSuite>::KeyExchange as KeyExchange>::KE2Message: Sync,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: Sync,
impl<CS> Unpin for CredentialResponse<CS>where
<<CS as CipherSuite>::KeyExchange as KeyExchange>::KE2Message: Unpin,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: Unpin,
<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as OutputSizeUser>::OutputSize as ArraySize>::ArrayType<u8>: Unpin,
<<<<CS as CipherSuite>::KeyExchange as KeyExchange>::Group as Group>::PkLen as ArrayLength>::ArrayType<u8>: Unpin,
impl<CS> UnsafeUnpin for CredentialResponse<CS>where
<<CS as CipherSuite>::KeyExchange as KeyExchange>::KE2Message: UnsafeUnpin,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: UnsafeUnpin,
<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as OutputSizeUser>::OutputSize as ArraySize>::ArrayType<u8>: UnsafeUnpin,
<<<<CS as CipherSuite>::KeyExchange as KeyExchange>::Group as Group>::PkLen as ArrayLength>::ArrayType<u8>: UnsafeUnpin,
impl<CS> UnwindSafe for CredentialResponse<CS>where
<<CS as CipherSuite>::KeyExchange as KeyExchange>::KE2Message: UnwindSafe,
<<<CS as CipherSuite>::OprfCs as CipherSuite>::Group as Group>::Elem: UnwindSafe,
<<<<<CS as CipherSuite>::OprfCs as CipherSuite>::Hash as CoreProxy>::Core as OutputSizeUser>::OutputSize as ArraySize>::ArrayType<u8>: UnwindSafe,
<<<<CS as CipherSuite>::KeyExchange as KeyExchange>::Group as Group>::PkLen as ArrayLength>::ArrayType<u8>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more