nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ ocrypto_rsa2048_pss_sha256_verify()

int ocrypto_rsa2048_pss_sha256_verify ( const uint8_t  s[256],
const uint8_t *  m,
size_t  mlen,
size_t  slen,
const ocrypto_rsa2048_pub_key pk 
)

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

2048-bit RSA PSS SHA-256 signature verify.

The signature s of the input message m is verified.

Parameters
sThe 256-byte signature.
mThe signed message.
mlenLength of m.
slenThe length of the salt.
pkA valid 2048-bit RSA public key.
Return values
0If the signature is valid.
-1If verification failed.
-2If the salt is too long.
Remarks
The key pk should be initialized with ocrypto_rsa2048_init_pub_key.