nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ ocrypto_rsa_oaep_sha256_padding()

int ocrypto_rsa_oaep_sha256_padding ( uint8_t * em,
size_t em_len,
const uint8_t * m,
size_t m_len,
const uint8_t * label,
size_t l_len,
const uint8_t seed[32] )

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

RSA OAEP SHA256 padding.

Parameters
[out]emThe padded message.
em_lenLength of em.
mThe message to be encrypted.
m_lenLength of m. 0 <= m_len <= em_len - 66.
labelThe label associated with the message.
l_lenLength of label. May be 0.
seed32-byte random seed.
Return values
-1If the message is too long (m_len > em_len - 66).
0On success.