nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ ocrypto_rsa1024_pss_sha256_sign()

int ocrypto_rsa1024_pss_sha256_sign ( uint8_t  s[128],
const uint8_t *  m,
size_t  m_len,
const uint8_t *  salt,
size_t  s_len,
const ocrypto_rsa1024_key sk 
)

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

1024-bit RSA PSS SHA-256 sign.

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

Parameters
[out]sThe generated 128-byte signature.
mThe message to be signed.
m_lenLength of m.
saltThe salt to be used.
s_lenLength of salt.
skA valid 1024-bit RSA secret key.
Return values
-2If the salt is too long.
0On success.
Remarks
The key sk should be initialized with ocrypto_rsa1024_init_key.
s may be same as m.