nrfxlib API 0.1.0
Loading...
Searching...
No Matches
cc3xx_psa_asymmetric_encryption.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_ENCRYPTION_H
9#define CC3XX_PSA_ASYMMETRIC_ENCRYPTION_H
10
19#include "psa/crypto.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
43psa_status_t cc3xx_asymmetric_encrypt(const psa_key_attributes_t *attributes,
44 const uint8_t *key_buffer,
45 size_t key_buffer_size,
46 psa_algorithm_t alg,
47 const uint8_t *input,
48 size_t input_length,
49 const uint8_t *salt, size_t salt_length,
50 uint8_t *output, size_t output_size,
51 size_t *output_length);
52
71psa_status_t cc3xx_asymmetric_decrypt(const psa_key_attributes_t *attributes,
72 const uint8_t *key_buffer,
73 size_t key_buffer_size,
74 psa_algorithm_t alg,
75 const uint8_t *input,
76 size_t input_length,
77 const uint8_t *salt, size_t salt_length,
78 uint8_t *output, size_t output_size,
79 size_t *output_length);
80#ifdef __cplusplus
81}
82#endif
83#endif /* CC3XX_PSA_ASYMMETRIC_ENCRYPTION_H */
psa_status_t cc3xx_asymmetric_encrypt(const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *input, size_t input_length, const uint8_t *salt, size_t salt_length, uint8_t *output, size_t output_size, size_t *output_length)
Asymmetric encryption (RSA PKCS#1 v1.5 or RSA-OAEP)
psa_status_t cc3xx_asymmetric_decrypt(const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, psa_algorithm_t alg, const uint8_t *input, size_t input_length, const uint8_t *salt, size_t salt_length, uint8_t *output, size_t output_size, size_t *output_length)
Asymmetric decryption (RSA PKCS#1 v1.5 or RSA-OAEP)