nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ ocrypto_rsa_pss_sha256_encode()

int ocrypto_rsa_pss_sha256_encode ( uint8_t *  em,
size_t  em_len,
const uint8_t *  m,
size_t  m_len,
const uint8_t *  salt,
size_t  s_len 
)

#include <crypto/nrf_oberon/include/ocrypto_rsa_padding.h>

RSA PSS SHA-256 signature encoding.

Parameters
[out]emThe encoded message.
em_lenLength of em.
mThe message to be encoded.
m_lenLength of m.
saltThe salt to be used.
s_lenLength of salt.
Return values
-2If the salt is too long (s_len > em_len - 34).
0On success.