Function gnunet_sys::GNUNET_CRYPTO_rsa_unblind[][src]

pub unsafe extern "C" fn GNUNET_CRYPTO_rsa_unblind(
    sig: *const GNUNET_CRYPTO_RsaSignature,
    bks: *const GNUNET_CRYPTO_RsaBlindingKeySecret,
    pkey: *mut GNUNET_CRYPTO_RsaPublicKey
) -> *mut GNUNET_CRYPTO_RsaSignature

Unblind a blind-signed signature. The signature should have been generated with #GNUNET_CRYPTO_rsa_sign() using a hash that was blinded with #GNUNET_CRYPTO_rsa_blind().

@param sig the signature made on the blinded signature purpose @param bks the blinding key secret used to blind the signature purpose @param pkey the public key of the signer @return unblinded signature on success, NULL if RSA key is bad or malicious.