nrfxlib API 2.8.99
|
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.
[out] | em | The padded message. |
em_len | Length of em . | |
m | The message to be encrypted. | |
m_len | Length of m . 0 <= m_len <= em_len - 66. | |
label | The label associated with the message. | |
l_len | Length of label . May be 0. | |
seed | 32-byte random seed. |
-1 | If the message is too long (m_len > em_len - 66). |
0 | On success. |