![]() |
nRF Connect SDK API 3.3.99
|
| psa_status_t cracen_sign_hash | ( | const psa_key_attributes_t * | attributes, |
| const uint8_t * | key_buffer, | ||
| size_t | key_buffer_size, | ||
| psa_algorithm_t | alg, | ||
| const uint8_t * | hash, | ||
| size_t | hash_length, | ||
| uint8_t * | signature, | ||
| size_t | signature_size, | ||
| size_t * | signature_length ) |
#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_sign_verify.h>
Sign a hash.
| [in] | attributes | Key attributes. |
| [in] | key_buffer | Key material buffer. |
| [in] | key_buffer_size | Size of the key buffer in bytes. |
| [in] | alg | Signing algorithm. |
| [in] | hash | Hash of a message to sign. |
| [in] | hash_length | Length of the hash in bytes. |
| [out] | signature | Buffer to store the signature. |
| [in] | signature_size | Size of the signature buffer in bytes. |
| [out] | signature_length | Length of the generated signature in bytes. |
| PSA_SUCCESS | The operation completed successfully. |
| PSA_ERROR_INVALID_HANDLE | The key handle is invalid. |
| PSA_ERROR_NOT_SUPPORTED | The algorithm is not supported. |