nrfxlib API 2.8.99
|
psa_status_t cc3xx_sign_hash | ( | const psa_key_attributes_t * | attributes, |
const uint8_t * | key, | ||
size_t | key_length, | ||
psa_algorithm_t | alg, | ||
const uint8_t * | input, | ||
size_t | input_length, | ||
uint8_t * | signature, | ||
size_t | signature_size, | ||
size_t * | signature_length ) |
Sign a precomputed hash of a message.
[in] | attributes | Attributes of the key to use |
[in] | key | Key material buffer |
[in] | key_length | Size in bytes of the key |
[in] | alg | Algorithm to use |
[in] | input | Hash to sign buffer |
[in] | input_length | Size in bytes of the data to sign |
[out] | signature | Buffer to hold the signature data |
[in] | signature_size | Size in bytes of the signature buffer |
[out] | signature_length | Size in bytes of the signature |
PSA_SUCCESS | on success. Error code from psa_status_t on failure |