Function gnunet_sys::GNUNET_CRYPTO_rsa_verify [−][src]
pub unsafe extern "C" fn GNUNET_CRYPTO_rsa_verify(
hash: *const GNUNET_HashCode,
sig: *const GNUNET_CRYPTO_RsaSignature,
public_key: *const GNUNET_CRYPTO_RsaPublicKey
) -> GNUNET_GenericReturnValue
Verify whether the given hash corresponds to the given signature and the signature is valid with respect to the given public key.
@param hash the message to verify to match the @a sig @param sig signature that is being validated @param public_key public key of the signer @returns #GNUNET_YES if ok, #GNUNET_NO if RSA key is malicious, #GNUNET_SYSERR if signature