![]() |
nrfxlib API 3.3.99
|
| int ocrypto_rsa1024_pss_sha256_verify | ( | const uint8_t | s[128], |
| const uint8_t * | m, | ||
| size_t | m_len, | ||
| size_t | s_len, | ||
| const ocrypto_rsa1024_pub_key * | pk ) |
#include <crypto/nrf_oberon/include/ocrypto_rsa.h>
1024-bit RSA PSS SHA256 signature verify.
The signature s of the input message m is verified.
| s | The 128-byte signature. |
| m | The signed message. |
| m_len | Length of m. |
| s_len | The length of the salt. |
| pk | A valid 1024-bit RSA public key. |
| 0 | If the signature is valid. |
| -1 | If verification failed. |
| -2 | If the salt is too long. |
pk should be initialized with ocrypto_rsa1024_init_pub_key.