nrfxlib API 2.8.99
|
int ocrypto_rsa_pss_sha256_verify | ( | const uint8_t * | s, |
size_t | s_len, | ||
const uint8_t * | m, | ||
size_t | m_len, | ||
size_t | salt_len, | ||
const ocrypto_rsa_pub_key * | pk, | ||
uint32_t * | mem ) |
#include <crypto/nrf_oberon/include/ocrypto_rsa_operations.h>
RSA PSS SHA-256 signature verify.
The signature s
of the input message m
is verified.
s | The signature. |
s_len | Length of s . |
m | The signed message. |
m_len | Length of m . |
salt_len | The length of the salt. |
pk | A valid RSA public key. |
mem | The working memory. Length OCRYPTO_RSA_PUB_MEM_SIZE(bits). |
0 | If the signature is valid. |
-1 | If verification failed. |
-2 | If the salt is too long. |
pk
should be initialized with ocrypto_rsa_init_pub_key
. mem
may be same as s
or m
.