nrfxlib API 2.8.99
|
int ocrypto_rsa1024_pss_sha256_crt_sign | ( | uint8_t | s[128], |
const uint8_t * | m, | ||
size_t | m_len, | ||
const uint8_t * | salt, | ||
size_t | s_len, | ||
const ocrypto_rsa1024_crt_key * | sk ) |
#include <crypto/nrf_oberon/include/ocrypto_rsa.h>
1024-bit RSA PSS SHA-256 sign with CRT acceleration.
The message m
is signed and the signature returned in s
.
[out] | s | The generated 128-byte signature. |
m | The message to be signed. | |
m_len | Length of m . | |
salt | The salt to be used. | |
s_len | Length of salt . | |
sk | A valid 1024-bit RSA secret key with CRT coefficients. |
-2 | If the salt is too long. |
0 | On success. |
sk
should be initialized with ocrypto_rsa1024_init_crt_key
. s
may be same as m
.