nrfxlib API 0.1.0
|
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.
[out] | em | The encoded message. |
em_len | Length of em . | |
m | The message to be encoded. | |
m_len | Length of m . |
-2 | If the length of the encoded message is too short (em_len < 62). |
0 | On success. |