blob: 3e05ca6e0ccadfe3aab9b4295300a7ce1ace70e2 [file] [log] [blame]
Julian Halld4071382021-07-07 16:45:53 +01001/*
2 * Copyright (c) 2021, Arm Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#include <string.h>
8#include <stdlib.h>
9#include <psa/crypto.h>
10#include "psa_crypto_client.h"
11#include <protocols/rpc/common/packed-c/status.h>
12#include <protocols/service/crypto/packed-c/opcodes.h>
13#include <common/tlv/tlv.h>
14
15psa_status_t psa_aead_encrypt(psa_key_id_t key,
16 psa_algorithm_t alg,
17 const uint8_t *nonce,
18 size_t nonce_length,
19 const uint8_t *additional_data,
20 size_t additional_data_length,
21 const uint8_t *plaintext,
22 size_t plaintext_length,
23 uint8_t *ciphertext,
24 size_t ciphertext_size,
25 size_t *ciphertext_length)
26{
27 return PSA_ERROR_NOT_SUPPORTED;
28}
29
30psa_status_t psa_aead_decrypt(psa_key_id_t key,
31 psa_algorithm_t alg,
32 const uint8_t *nonce,
33 size_t nonce_length,
34 const uint8_t *additional_data,
35 size_t additional_data_length,
36 const uint8_t *ciphertext,
37 size_t ciphertext_length,
38 uint8_t *plaintext,
39 size_t plaintext_size,
40 size_t *plaintext_length)
41{
42 return PSA_ERROR_NOT_SUPPORTED;
43}