nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ ocrypto_rsa_pkcs1_v15_sha256_verify()

int ocrypto_rsa_pkcs1_v15_sha256_verify ( const uint8_t *  s,
size_t  s_len,
const uint8_t *  m,
size_t  m_len,
const ocrypto_rsa_pub_key pk,
uint32_t *  mem 
)

#include <crypto/nrf_oberon/include/ocrypto_rsa_operations.h>

RSA PKCS1 V1.5 SHA-256 signature verify.

The signature s of the input message m is verified.

Parameters
sThe signature.
s_lenLength of s.
mThe signed message.
m_lenLength of m.
pkA valid RSA public key.
memThe working memory. Length OCRYPTO_RSA_PUB_MEM_SIZE(bits).
Return values
0If the signature is valid.
-1If verification failed.
Remarks
The key pk should be initialized with ocrypto_rsa_init_pub_key.
mem may be same as s or m.