nrfxlib API 0.1.0
|
int ocrypto_rsa_pss_sha256_decode | ( | uint8_t * | em, |
size_t | em_len, | ||
const uint8_t * | m, | ||
size_t | m_len, | ||
size_t | salt_len | ||
) |
#include <crypto/nrf_oberon/include/ocrypto_rsa_padding.h>
RSA PSS SHA-256 signature decoding.
em | The encoded message. |
em_len | Length of em . |
m | The signed message. |
m_len | Length of m . |
salt_len | The length of the salt. |
0 | If the encoding is valid. |
-1 | If decoding failed. |
-2 | If the salt is too long (salt_len > em_len - 34). |