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

◆ cracen_verify_message()

psa_status_t cracen_verify_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 * signature,
size_t signature_length )

#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_sign_verify.h>

Verify a message signature.

Parameters
[in]attributesKey attributes.
[in]key_bufferKey material buffer.
[in]key_buffer_sizeSize of the key buffer in bytes.
[in]algVerification algorithm.
[in]inputMessage that was signed.
[in]input_lengthLength of the message in bytes.
[in]signatureSignature to verify.
[in]signature_lengthLength of the signature in bytes.
Return values
PSA_SUCCESSThe signature is valid.
PSA_ERROR_INVALID_SIGNATUREThe signature is invalid.
PSA_ERROR_INVALID_HANDLEThe key handle is invalid.
PSA_ERROR_NOT_SUPPORTEDThe algorithm is not supported.