nrfxlib API 2.8.99
|
int ocrypto_rsa_pkcs1_v15_sha256_sign | ( | uint8_t * | s, |
size_t | s_len, | ||
const uint8_t * | m, | ||
size_t | m_len, | ||
const ocrypto_rsa_key * | key, | ||
uint32_t * | mem ) |
#include <crypto/nrf_oberon/include/ocrypto_rsa_operations.h>
RSA PKCS1 V1.5 SHA-256 sign.
The message m
is signed and the signature returned in s
.
[out] | s | The generated signature. |
s_len | Length of s . | |
m | The message to be signed. | |
m_len | Length of m . | |
key | A valid RSA secret key. | |
mem | The working memory. Length OCRYPTO_RSA_MEM_SIZE(bits). |
0 |
key
should be initialized with ocrypto_rsa_init_key
. s
, m
, and mem
may be same.