nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ cracen_sign_hash()

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.

Parameters
[in]attributesKey attributes.
[in]key_bufferKey material buffer.
[in]key_buffer_sizeSize of the key buffer in bytes.
[in]algSigning algorithm.
[in]hashHash of a message to sign.
[in]hash_lengthLength of the hash in bytes.
[out]signatureBuffer to store the signature.
[in]signature_sizeSize of the signature buffer in bytes.
[out]signature_lengthLength of the generated signature in bytes.
Return values
PSA_SUCCESSThe operation completed successfully.
PSA_ERROR_INVALID_HANDLEThe key handle is invalid.
PSA_ERROR_NOT_SUPPORTEDThe algorithm is not supported.