nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ ocrypto_rsa2048_pkcs1_v15_sha256_sign()

int ocrypto_rsa2048_pkcs1_v15_sha256_sign ( uint8_t s[256],
const uint8_t * m,
size_t mlen,
const ocrypto_rsa2048_key * sk )

#include <crypto/nrf_oberon/include/ocrypto_rsa.h>

2048-bit RSA PKCS1 V1.5 SHA-256 sign.

The message m is signed and the signature returned in s.

Parameters
[out]sThe generated 256-byte signature.
mThe message to be signed.
mlenLength of m.
skA valid 2048-bit RSA secret key.
Return values
0
Remarks
The key sk should be initialized with ocrypto_rsa2048_init_key.
s may be same as m.