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

◆ ocrypto_rsa_pkcs1_v15_sha256_encode()

int ocrypto_rsa_pkcs1_v15_sha256_encode ( uint8_t *  em,
size_t  em_len,
const uint8_t *  m,
size_t  m_len 
)

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

RSA PKCS1 V1.5 SHA-256 signature encoding.

Parameters
[out]emThe encoded message.
em_lenLength of em.
mThe message to be encoded.
m_lenLength of m.
Return values
-2If the length of the encoded message is too short (em_len < 62).
0On success.