aboutsummaryrefslogtreecommitdiff
path: root/components/service/crypto/provider/serializer/protobuf/pb_key_attributes_translator.h
blob: 5de359bb3b30cee72dc4c82859b8ca8fc0309799 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright (c) 2020, Arm Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#ifndef PB_CRYPTO_PROVIDER_KEY_ATTRIBUTES_TRANSLATOR_H
#define PB_CRYPTO_PROVIDER_KEY_ATTRIBUTES_TRANSLATOR_H

#include <service/crypto/protobuf/key_attributes.pb.h>
#include <psa/crypto.h>

extern void pb_crypto_provider_translate_key_attributes(
    psa_key_attributes_t *psa_attributes,
    const ts_crypto_KeyAttributes *proto_attributes);

#endif /* PB_CRYPTO_PROVIDER_KEY_ATTRIBUTES_TRANSLATOR_H */