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

◆ ocrypto_rsa_pss_sha256_decode()

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.

Parameters
emThe encoded message.
em_lenLength of em.
mThe signed message.
m_lenLength of m.
salt_lenThe length of the salt.
Return values
0If the encoding is valid.
-1If decoding failed.
-2If the salt is too long (salt_len > em_len - 34).