nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ ocrypto_rsa2048_pss_sha256_crt_sign()

int ocrypto_rsa2048_pss_sha256_crt_sign ( uint8_t  s[256],
const uint8_t *  m,
size_t  mlen,
const uint8_t *  salt,
size_t  slen,
const ocrypto_rsa2048_crt_key sk 
)

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

2048-bit RSA PSS SHA-256 sign with CRT acceleration.

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.
saltThe salt to be used.
slenLength of salt.
skA valid 2048-bit RSA secret key with CRT coefficients.
Return values
-2If the salt is too long.
0On success.
Remarks
The key sk should be initialized with ocrypto_rsa2048_init_crt_key.
s may be same as m.