nrfxlib API 2.8.99
|
int ocrypto_rsa_pkcs1_v15_check_padding | ( | uint8_t * | m, |
size_t | m_len, | ||
const uint8_t * | em, | ||
size_t | em_len ) |
#include <crypto/nrf_oberon/include/ocrypto_rsa_padding.h>
RSA PKCS1 V1.5 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 . |
-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. |