pub struct ServerSetup<C: OpaqueCiphersuite> { /* private fields */ }Expand description
Server’s long-term configuration: OPRF seed and authentication keypair.
Implementations§
Source§impl<C: OpaqueCiphersuite> ServerSetup<C>
impl<C: OpaqueCiphersuite> ServerSetup<C>
Sourcepub fn new(rng: &mut impl CryptoRngCore) -> Result<Self, OpaqueError>
pub fn new(rng: &mut impl CryptoRngCore) -> Result<Self, OpaqueError>
Create a new server setup with random seed and keypair.
Sourcepub fn private_key(&self) -> &[u8] ⓘ
pub fn private_key(&self) -> &[u8] ⓘ
The server’s private key.
Sourcepub fn public_key(&self) -> &[u8] ⓘ
pub fn public_key(&self) -> &[u8] ⓘ
The server’s public key.
Trait Implementations§
Source§impl<C: Clone + OpaqueCiphersuite> Clone for ServerSetup<C>
impl<C: Clone + OpaqueCiphersuite> Clone for ServerSetup<C>
Source§fn clone(&self) -> ServerSetup<C>
fn clone(&self) -> ServerSetup<C>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<C: OpaqueCiphersuite> Drop for ServerSetup<C>
impl<C: OpaqueCiphersuite> Drop for ServerSetup<C>
Source§impl<C: OpaqueCiphersuite> Zeroize for ServerSetup<C>
impl<C: OpaqueCiphersuite> Zeroize for ServerSetup<C>
Auto Trait Implementations§
impl<C> Freeze for ServerSetup<C>
impl<C> RefUnwindSafe for ServerSetup<C>where
C: RefUnwindSafe,
impl<C> Send for ServerSetup<C>where
C: Send,
impl<C> Sync for ServerSetup<C>where
C: Sync,
impl<C> Unpin for ServerSetup<C>where
C: Unpin,
impl<C> UnsafeUnpin for ServerSetup<C>
impl<C> UnwindSafe for ServerSetup<C>where
C: 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