![]() |
nrfxlib API 3.3.99
|
| int ocrypto_rsa2048_pss_sha256_sign | ( | uint8_t | s[256], |
| const uint8_t * | m, | ||
| size_t | mlen, | ||
| const uint8_t * | salt, | ||
| size_t | slen, | ||
| const ocrypto_rsa2048_key * | sk ) |
#include <crypto/nrf_oberon/include/ocrypto_rsa.h>
2048-bit RSA PSS SHA256 sign.
The message m is signed and the signature returned in s.
| [out] | s | The generated 256-byte signature. |
| m | The message to be signed. | |
| mlen | Length of m. | |
| salt | The salt to be used. | |
| slen | Length of salt. | |
| sk | A valid 2048-bit RSA secret key. |
| -2 | If the salt is too long. |
| 0 | On success. |
sk should be initialized with ocrypto_rsa2048_init_key. s may be same as m.