nrfxlib API 0.1.0
|
int ocrypto_rsa_oaep_sha256_check_padding | ( | uint8_t * | m, |
size_t | m_len, | ||
uint8_t * | em, | ||
size_t | em_len, | ||
const uint8_t * | label, | ||
size_t | l_len | ||
) |
#include <crypto/nrf_oberon/include/ocrypto_rsa_padding.h>
RSA OAEP SHA256 unpadding.
[out] | m | The unpadded message. The buffer must be long enough to hold the message. |
m_len | Length of m . | |
em | The padded message. | |
em_len | Length of em . | |
label | The label associated with the message. | |
l_len | Length of label . May be 0. |
-1 | If decryption failed. |
-2 | If the output buffer is too short (m_len < length of message). |
n | If a message of length n was successfully decrypted. |