nrfxlib API 2.8.99
Loading...
Searching...
No Matches
cc3xx_psa_asymmetric_signature.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#ifndef CC3XX_PSA_ASYMMETRIC_SIGNATURE_H
9#define CC3XX_PSA_ASYMMETRIC_SIGNATURE_H
10
19#include "psa/crypto.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
41psa_status_t cc3xx_sign_message(const psa_key_attributes_t *attributes,
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);
62psa_status_t cc3xx_verify_message(const psa_key_attributes_t *attributes,
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);
83psa_status_t cc3xx_sign_hash(const psa_key_attributes_t *attributes,
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);
103psa_status_t cc3xx_verify_hash(const psa_key_attributes_t *attributes,
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);
108#ifdef __cplusplus
109}
110#endif
111#endif /* CC3XX_PSA_ASYMMETRIC_SIGNATURE_H */
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.