std1.0.0-beta-7 SafeC docs

std :: crypto::rsa

Function std::rsa_verify_pkcs1

#include <std/crypto/rsa.h> source ยท definition

int rsa_verify_pkcs1(
    const &RsaPublicKey key,
    int alg,
    []const unsigned char hash,
    []const unsigned char sig,
)

RSASSA-PKCS1-v1_5 verification of 'hash' (the digest_size(alg)-byte digest of the message) against sig[0..sig_len). 1 if valid.