blob: 12f345c8ccb8a11bd0e44d353830382161dfaa98 [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 <protocols/service/crypto/packed-c/hash.h>
14#include <common/tlv/tlv.h>
15
16psa_status_t psa_hash_setup(psa_hash_operation_t *operation,
17 psa_algorithm_t alg)
18{
19 return PSA_ERROR_NOT_SUPPORTED;
20}
21
22psa_status_t psa_hash_update(psa_hash_operation_t *operation,
23 const uint8_t *input,
24 size_t input_length)
25{
26 return PSA_ERROR_NOT_SUPPORTED;
27}
28
29psa_status_t psa_hash_finish(psa_hash_operation_t *operation,
30 uint8_t *hash,
31 size_t hash_size,
32 size_t *hash_length)
33{
34 return PSA_ERROR_NOT_SUPPORTED;
35}
36
37psa_status_t psa_hash_abort(psa_hash_operation_t *operation)
38{
39 return PSA_ERROR_NOT_SUPPORTED;
40}
41
42psa_status_t psa_hash_verify(psa_hash_operation_t *operation,
43 const uint8_t *hash,
44 size_t hash_length)
45{
46 return PSA_ERROR_NOT_SUPPORTED;
47}
48
49psa_status_t psa_hash_clone(const psa_hash_operation_t *source_operation,
50 psa_hash_operation_t *target_operation)
51{
52 return PSA_ERROR_NOT_SUPPORTED;
53}
54
55psa_status_t psa_hash_compare(psa_algorithm_t alg,
56 const uint8_t *input,
57 size_t input_length,
58 const uint8_t *hash,
59 size_t hash_length)
60{
61 return PSA_ERROR_NOT_SUPPORTED;
62}
63
64psa_status_t psa_hash_compute(psa_algorithm_t alg,
65 const uint8_t *input,
66 size_t input_length,
67 uint8_t *hash,
68 size_t hash_size,
69 size_t *hash_length)
70{
71 return PSA_ERROR_NOT_SUPPORTED;
72}