blob: 65cb2346ede0cb4f2184d48dd0756621930118f3 [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_mac_sign_setup(psa_mac_operation_t *operation,
16 psa_key_id_t key,
17 psa_algorithm_t alg)
18{
19 return PSA_ERROR_NOT_SUPPORTED;
20}
21
22psa_status_t psa_mac_verify_setup(psa_mac_operation_t *operation,
23 psa_key_id_t key,
24 psa_algorithm_t alg)
25{
26 return PSA_ERROR_NOT_SUPPORTED;
27}
28
29psa_status_t psa_mac_update(psa_mac_operation_t *operation,
30 const uint8_t *input,
31 size_t input_length)
32{
33 return PSA_ERROR_NOT_SUPPORTED;
34}
35
36psa_status_t psa_mac_sign_finish(psa_mac_operation_t *operation,
37 uint8_t *mac,
38 size_t mac_size,
39 size_t *mac_length)
40{
41 return PSA_ERROR_NOT_SUPPORTED;
42}
43
44psa_status_t psa_mac_verify_finish(psa_mac_operation_t *operation,
45 const uint8_t *mac,
46 size_t mac_length)
47{
48 return PSA_ERROR_NOT_SUPPORTED;
49}
50
51psa_status_t psa_mac_abort(psa_mac_operation_t *operation)
52{
53 return PSA_ERROR_NOT_SUPPORTED;
54}