![]() |
nrfxlib API 3.3.99
|
| 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 SHA256 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. |
| 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. |
pk should be initialized with ocrypto_rsa_init_pub_key. mem may be same as s or m.