nrfxlib API 3.3.99
Loading...
Searching...
No Matches
cc3xx_psa_rsa_util.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021-2022, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
15#ifndef CC3XX_PSA_RSA_UTIL_H
16#define CC3XX_PSA_RSA_UTIL_H
17
18#include "psa/crypto.h"
19#include <stdint.h>
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
32psa_status_t cc3xx_check_rsa_key_size(size_t bits);
33
43psa_status_t cc3xx_rsa_psa_priv_to_psa_publ(uint8_t *priv_key_buffer,
44 size_t priv_key_buffer_size,
45 uint8_t *publ_key_buffer,
46 size_t publ_key_buffer_size,
47 size_t *publ_key_buffer_length);
48#ifdef __cplusplus
49}
50#endif
51#endif /* CC3XX_PSA_RSA_UTIL_H */
psa_status_t cc3xx_check_rsa_key_size(size_t bits)
Checks the validity/support of an RSA key.
psa_status_t cc3xx_rsa_psa_priv_to_psa_publ(uint8_t *priv_key_buffer, size_t priv_key_buffer_size, uint8_t *publ_key_buffer, size_t publ_key_buffer_size, size_t *publ_key_buffer_length)
Extract the public key from the private key in PSA format.