nrfxlib API 2.8.99
Loading...
Searching...
No Matches
cc3xx_psa_key_generation.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_KEY_GENERATION_H
9#define CC3XX_PSA_KEY_GENERATION_H
10
19#include "psa/crypto.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
36psa_status_t cc3xx_generate_key(const psa_key_attributes_t *attributes,
37 uint8_t *key_buffer, size_t key_buffer_size,
38 size_t *key_buffer_length);
52psa_status_t cc3xx_export_public_key(const psa_key_attributes_t *attributes,
53 const uint8_t *key_buffer,
54 size_t key_buffer_size, uint8_t *data,
55 size_t data_size, size_t *data_length);
56
71psa_status_t cc3xx_import_key(const psa_key_attributes_t *attributes,
72 const uint8_t *data, size_t data_length,
73 uint8_t *key_buffer, size_t key_buffer_size,
74 size_t *key_buffer_length, size_t *key_bits );
75
76#ifdef __cplusplus
77}
78#endif
79#endif /* CC3XX_PSA_KEY_GENERATION_H */
psa_status_t cc3xx_import_key(const psa_key_attributes_t *attributes, const uint8_t *data, size_t data_length, uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length, size_t *key_bits)
Import a key.
psa_status_t cc3xx_export_public_key(const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, uint8_t *data, size_t data_size, size_t *data_length)
Export the public key from a private key.
psa_status_t cc3xx_generate_key(const psa_key_attributes_t *attributes, uint8_t *key_buffer, size_t key_buffer_size, size_t *key_buffer_length)
Generate a random key.