nrfxlib API 0.1.0
Loading...
Searching...
No Matches
cc3xx_psa_key_agreement.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_AGREEMENT_H
9#define CC3XX_PSA_KEY_AGREEMENT_H
10
19#include "psa/crypto.h"
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
41 const psa_key_attributes_t *attributes,
42 const uint8_t *priv_key, size_t priv_key_size,
43 const uint8_t *publ_key, size_t publ_key_size,
44 uint8_t *output, size_t output_size, size_t *output_length,
45 psa_algorithm_t alg);
46
47#ifdef __cplusplus
48}
49#endif
50#endif /* CC3XX_PSA_KEY_AGREEMENT_H */
psa_status_t cc3xx_key_agreement(const psa_key_attributes_t *attributes, const uint8_t *priv_key, size_t priv_key_size, const uint8_t *publ_key, size_t publ_key_size, uint8_t *output, size_t output_size, size_t *output_length, psa_algorithm_t alg)
Performs a raw key agreement (i.e. Elliptic Curve Diffie Hellman)