pub fn start<R: RngCore + CryptoRng>(
        blinding_factor_rng: &mut R,
        password: &[u8],
    ) -> Result<ClientRegistrationStartResult<CS>, ProtocolError> {
        let blind_result = blind::<CS, _>(blinding_factor_rng, password)?;

        Ok(ClientRegistrationStartResult {
            message: RegistrationRequest::<CS> {
                blinded_element: blind_result.message.clone(),
            },
            state: Self {
                oprf_client: blind_result.state,
                blinded_element: blind_result.message,
            },
        })
    }
/// Returns an initial "blinded" request to send to the server, as well as a ClientRegistration
Returns an initial "blinded" request to send to the server, as well as a ClientRegistration
Returns an initial " blinded " request to send to the server as well as a ClientRegistration
pub fn start<R: RngCore + CryptoRng>(
        blinding_factor_rng: &mut R,
        password: &[u8],
    ) -> Result<ClientRegistrationStartResult<CS>, ProtocolError> {
        let blind_result = blind::<CS, _>(blinding_factor_rng, password)?;
        Ok(ClientRegistrationStartResult {
            message: RegistrationRequest::<CS> {
                blinded_element: blind_result.message.clone(),
            },
            state: Self {
                oprf_client: blind_result.state,
                blinded_element: blind_result.message,
            },
        })
    }
pub fn start < R : RngCore + CryptoRng > ( blinding_factor_rng : & mut R , password : & [ u8 ] , ) -> Result < ClientRegistrationStartResult < CS > , ProtocolError > { let blind_result = blind :: < CS , _ > ( blinding_factor_rng , password ) ? ; Ok ( ClientRegistrationStartResult { message : RegistrationRequest :: < CS > { blinded_element : blind_result . message . clone ( ) , } , state : Self { oprf_client : blind_result . state , blinded_element : blind_result . message , } , } ) }
Returns an initial "blinded" request to send to the server, as well as a ClientRegistration
Returns an initial " blinded " request to send to the server as well as a ClientRegistration
blinding_factor_rng
&mut R
password
&[u8]
blinding_factor_rng
&mut R
password
&[u8]