![]() |
nRF Connect SDK API 3.4.99
|
| psa_status_t cracen_sign_message | ( | const psa_key_attributes_t * | attributes, |
| const uint8_t * | key_buffer, | ||
| size_t | key_buffer_size, | ||
| psa_algorithm_t | alg, | ||
| const uint8_t * | input, | ||
| size_t | input_length, | ||
| const uint8_t * | context, | ||
| size_t | context_length, | ||
| uint8_t * | signature, | ||
| size_t | signature_size, | ||
| size_t * | signature_length ) |
#include <cracen_psa_sign_verify.h>
Sign a message.
| [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] | input | Message to sign. |
| [in] | input_length | Length of the message in bytes. |
| [in] | context | Context string (used by ML-DSA; ignored otherwise). |
| [in] | context_length | Length of the context 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. |