#include <subsys/nrf_security/src/drivers/cracen/cracenpsa/include/cracen_psa_sign_verify.h>
Verify the signature of a hash.
- Parameters
-
| [in] | attributes | Key attributes. |
| [in] | key_buffer | Key material buffer. |
| [in] | key_buffer_size | Size of the key buffer in bytes. |
| [in] | alg | Verification algorithm. |
| [in] | hash | Hash of the message that was signed. |
| [in] | hash_length | Length of the hash in bytes. |
| [in] | signature | Signature to verify. |
| [in] | signature_length | Length of the signature in bytes. |
- Return values
-
| PSA_SUCCESS | The signature is valid. |
| PSA_ERROR_INVALID_SIGNATURE | The signature is invalid. |
| PSA_ERROR_INVALID_HANDLE | The key handle is invalid. |
| PSA_ERROR_NOT_SUPPORTED | The algorithm is not supported. |