nrfxlib API 0.1.0
|
int ocrypto_rsa1024_pkcs1_v15_sha256_sign | ( | uint8_t | s[128], |
const uint8_t * | m, | ||
size_t | m_len, | ||
const ocrypto_rsa1024_key * | sk | ||
) |
#include <crypto/nrf_oberon/include/ocrypto_rsa.h>
1024-bit RSA PKCS1 V1.5 SHA-256 sign.
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 . | |
sk | A valid 1024-bit RSA secret key. |
0 |
sk
should be initialized with ocrypto_rsa1024_init_key
. s
may be same as m
.