8#ifndef CC3XX_PSA_ASYMMETRIC_SIGNATURE_H
9#define CC3XX_PSA_ASYMMETRIC_SIGNATURE_H
19#include "psa/crypto.h"
42 const uint8_t *key,
size_t key_length,
43 psa_algorithm_t alg,
const uint8_t *input,
44 size_t input_length, uint8_t *signature,
45 size_t signature_size,
46 size_t *signature_length);
63 const uint8_t *key,
size_t key_length,
64 psa_algorithm_t alg,
const uint8_t *input,
65 size_t input_length,
const uint8_t *signature,
66 size_t signature_length);
84 const uint8_t *key,
size_t key_length,
85 psa_algorithm_t alg,
const uint8_t *input,
86 size_t input_length, uint8_t *signature,
87 size_t signature_size,
size_t *signature_length);
104 const uint8_t *key,
size_t key_length,
105 psa_algorithm_t alg,
const uint8_t *hash,
106 size_t hash_length,
const uint8_t *signature,
107 size_t signature_length);
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.
psa_status_t cc3xx_verify_hash(const psa_key_attributes_t *attributes, const uint8_t *key, size_t key_length, psa_algorithm_t alg, const uint8_t *hash, size_t hash_length, const uint8_t *signature, size_t signature_length)
Verify a message signature on a hash.
psa_status_t cc3xx_sign_message(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 message.
psa_status_t cc3xx_verify_message(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, const uint8_t *signature, size_t signature_length)
Verify a message signature.