/// Computes the second step for the multiplicative blinding version of
/// DH-OPRF. This message is sent from the server (who holds the OPRF key)
/// to the client.
Computes the second step for the multiplicative blinding version of
DH-OPRF. This message is sent from the server (who holds the OPRF key)
to the client.
Computes the second step for the multiplicative blinding version of DH - OPRF . This message is sent from the server ( who holds the OPRF key ) to the client .
pub fn evaluate<R: RngCore + CryptoRng>(
        &self,
        rng: &mut R,
        blinded_element: &BlindedElement<CS>,
    ) -> VoprfServerEvaluateResult<CS> {
        let mut prepared_evaluation_elements =
            self.batch_evaluate_prepare(iter::once(blinded_element));
        let prepared_evaluation_element = [prepared_evaluation_elements.next().unwrap()];
        // This can't fail because we know the size of the inputs.
        let VoprfServerBatchEvaluateFinishResult {
            mut messages,
            proof,
        } = self
            .batch_evaluate_finish(
                rng,
                iter::once(blinded_element),
                &prepared_evaluation_element,
            )
            .unwrap();
        let message = messages.next().unwrap();
        VoprfServerEvaluateResult { message, proof }
    }
pub fn evaluate < R : RngCore + CryptoRng > ( & self , rng : & mut R , blinded_element : & BlindedElement < CS > , ) -> VoprfServerEvaluateResult < CS > { let mut prepared_evaluation_elements = self . batch_evaluate_prepare ( iter :: once ( blinded_element ) ) ; let prepared_evaluation_element = [ prepared_evaluation_elements . next ( ) . unwrap ( ) ] ; // This can't fail because we know the size of the inputs. let VoprfServerBatchEvaluateFinishResult { mut messages , proof , } = self . batch_evaluate_finish ( rng , iter :: once ( blinded_element ) , & prepared_evaluation_element , ) . unwrap ( ) ; let message = messages . next ( ) . unwrap ( ) ; VoprfServerEvaluateResult { message , proof } }
Computes the second step for the multiplicative blinding version of
DH-OPRF.
Computes the second step for the multiplicative blinding version of DH - OPRF .
&self
rng
&mut R
blinded_element
&BlindedElement<CS>