![]() |
nrfxlib API 3.3.99
|
| int ocrypto_rsa_pss_sha256_crt_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_crt_key * | key, | ||
| uint32_t * | mem ) |
#include <crypto/nrf_oberon/include/ocrypto_rsa_operations.h>
RSA PSS SHA256 sign with CRT acceleration.
The message m is signed and the signature returned in s.
| [out] | s | The generated signature. |
| s_len | Length of m. | |
| m | The message to be signed. | |
| m_len | Length of m. | |
| salt | The salt to be used. | |
| salt_len | Length of salt. | |
| key | A valid RSA secret key with CRT coefficients. | |
| mem | The working memory. Length OCRYPTO_RSA_CRT_MEM_SIZE(bits). |
| -2 | If the salt is too long. |
| 0 | On success. |
key should be initialized with ocrypto_rsa_init_crt_key. s, m, and mem may be same.