nrfxlib API 0.1.0
|
int ocrypto_rsa_pss_sha256_encode | ( | uint8_t * | em, |
size_t | em_len, | ||
const uint8_t * | m, | ||
size_t | m_len, | ||
const uint8_t * | salt, | ||
size_t | s_len | ||
) |
#include <crypto/nrf_oberon/include/ocrypto_rsa_padding.h>
RSA PSS 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 . | |
salt | The salt to be used. | |
s_len | Length of salt . |
-2 | If the salt is too long (s_len > em_len - 34). |
0 | On success. |