nrfxlib API 2.8.99
|
int ocrypto_rsa_pkcs1_v15_padding | ( | uint8_t * | em, |
size_t | em_len, | ||
const uint8_t * | m, | ||
size_t | m_len, | ||
const uint8_t * | seed, | ||
size_t | s_len ) |
#include <crypto/nrf_oberon/include/ocrypto_rsa_padding.h>
RSA PKCS1 V1.5 padding.
[out] | em | The padded message. |
em_len | Length of em . | |
m | The message to be padded. | |
m_len | Length of m . 0 <= m_len <= em_len - 11. | |
seed | The random seed to be used for the padding. | |
s_len | Length of seed . s_len >= em_len - 3 - m_len |
-1 | If the message is too long (m_len > em_len - 11). |
-2 | If the seed is too short (s_len < em_len - 3 - m_len ). |
0 | On success. |
seed
should consist of non-zero random bytes.