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

◆ ocrypto_rsa_pss_sha256_sign()

int ocrypto_rsa_pss_sha256_sign ( uint8_t * s,
size_t s_len,
const uint8_t * m,
size_t m_len,
const uint8_t * salt,
size_t salt_len,
const ocrypto_rsa_key * key,
uint32_t * mem )

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

RSA PSS SHA-256 sign.

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

Parameters
[out]sThe generated signature.
s_lenLength of s.
mThe message to be signed.
m_lenLength of m.
saltThe salt to be used.
salt_lenLength of salt.
keyA valid RSA secret key.
memThe working memory. Length OCRYPTO_RSA_MEM_SIZE(bits).
Return values
-2If the salt is too long.
0On success.
Remarks
The key key should be initialized with ocrypto_rsa_init_key.
s, m, and mem may be same.