blob: 8dd47f644546d9be12a2b5050867120479e0dd5d [file] [log] [blame]
Hanno Becker87837b22018-11-08 13:32:02 +00001/**
Hanno Beckerafebf5a2018-11-13 21:01:41 +00002 * \file psa_util.h
Hanno Becker87837b22018-11-08 13:32:02 +00003 *
4 * \brief Utility functions for the use of the PSA Crypto library.
5 *
6 * \warning This function is not part of the public API and may
7 * change at any time.
8 */
9/*
Bence Szépkúti1e148272020-08-07 13:07:28 +020010 * Copyright The Mbed TLS Contributors
Hanno Becker87837b22018-11-08 13:32:02 +000011 * SPDX-License-Identifier: Apache-2.0
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License"); you may
14 * not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
21 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
Hanno Becker87837b22018-11-08 13:32:02 +000024 */
25
Hanno Becker186b65a2018-11-19 15:14:21 +000026#ifndef MBEDTLS_PSA_UTIL_H
27#define MBEDTLS_PSA_UTIL_H
Mateusz Starzyk846f0212021-05-19 19:44:07 +020028#include "mbedtls/private_access.h"
Hanno Becker87837b22018-11-08 13:32:02 +000029
Bence Szépkútic662b362021-05-27 11:25:03 +020030#include "mbedtls/build_info.h"
Hanno Becker87837b22018-11-08 13:32:02 +000031
Jerry Yub02ee182022-03-16 10:30:41 +080032#if defined(MBEDTLS_PSA_CRYPTO_C)
Hanno Becker87837b22018-11-08 13:32:02 +000033
34#include "psa/crypto.h"
35
Jaeden Ameroc49fbbf2019-07-04 20:01:14 +010036#include "mbedtls/ecp.h"
37#include "mbedtls/md.h"
38#include "mbedtls/pk.h"
39#include "mbedtls/oid.h"
TRodziewicz3408d602021-04-21 13:25:25 +020040#include "mbedtls/error.h"
Hanno Becker87837b22018-11-08 13:32:02 +000041
Hanno Beckerf75f9122019-01-07 15:36:51 +000042#include <string.h>
43
Hanno Becker55251262018-11-12 09:29:12 +000044/* Translations for symmetric crypto. */
45
Hanno Beckerb26c1932018-11-12 10:18:57 +000046static inline psa_key_type_t mbedtls_psa_translate_cipher_type(
Hanno Becker55251262018-11-12 09:29:12 +000047 mbedtls_cipher_type_t cipher )
48{
49 switch( cipher )
50 {
51 case MBEDTLS_CIPHER_AES_128_CCM:
52 case MBEDTLS_CIPHER_AES_192_CCM:
53 case MBEDTLS_CIPHER_AES_256_CCM:
Mateusz Starzyka706e5e2021-10-28 17:59:06 +020054 case MBEDTLS_CIPHER_AES_128_CCM_STAR_NO_TAG:
55 case MBEDTLS_CIPHER_AES_192_CCM_STAR_NO_TAG:
56 case MBEDTLS_CIPHER_AES_256_CCM_STAR_NO_TAG:
Hanno Becker55251262018-11-12 09:29:12 +000057 case MBEDTLS_CIPHER_AES_128_GCM:
58 case MBEDTLS_CIPHER_AES_192_GCM:
59 case MBEDTLS_CIPHER_AES_256_GCM:
60 case MBEDTLS_CIPHER_AES_128_CBC:
61 case MBEDTLS_CIPHER_AES_192_CBC:
62 case MBEDTLS_CIPHER_AES_256_CBC:
Przemyslaw Stekiel80c6a8e2021-09-29 12:13:11 +020063 case MBEDTLS_CIPHER_AES_128_ECB:
Przemyslaw Stekiel86de1b72021-09-29 19:43:40 +020064 case MBEDTLS_CIPHER_AES_192_ECB:
65 case MBEDTLS_CIPHER_AES_256_ECB:
Hanno Becker55251262018-11-12 09:29:12 +000066 return( PSA_KEY_TYPE_AES );
67
68 /* ARIA not yet supported in PSA. */
69 /* case MBEDTLS_CIPHER_ARIA_128_CCM:
70 case MBEDTLS_CIPHER_ARIA_192_CCM:
71 case MBEDTLS_CIPHER_ARIA_256_CCM:
Mateusz Starzyka706e5e2021-10-28 17:59:06 +020072 case MBEDTLS_CIPHER_ARIA_128_CCM_STAR_NO_TAG:
73 case MBEDTLS_CIPHER_ARIA_192_CCM_STAR_NO_TAG:
74 case MBEDTLS_CIPHER_ARIA_256_CCM_STAR_NO_TAG:
Hanno Becker55251262018-11-12 09:29:12 +000075 case MBEDTLS_CIPHER_ARIA_128_GCM:
76 case MBEDTLS_CIPHER_ARIA_192_GCM:
77 case MBEDTLS_CIPHER_ARIA_256_GCM:
78 case MBEDTLS_CIPHER_ARIA_128_CBC:
79 case MBEDTLS_CIPHER_ARIA_192_CBC:
80 case MBEDTLS_CIPHER_ARIA_256_CBC:
81 return( PSA_KEY_TYPE_ARIA ); */
82
83 default:
84 return( 0 );
85 }
86}
87
Hanno Beckerb26c1932018-11-12 10:18:57 +000088static inline psa_algorithm_t mbedtls_psa_translate_cipher_mode(
Hanno Becker010cf7e2018-11-15 15:48:57 +000089 mbedtls_cipher_mode_t mode, size_t taglen )
Hanno Becker55251262018-11-12 09:29:12 +000090{
91 switch( mode )
92 {
Steven Cooremaned3c9ec2020-07-06 14:08:59 +020093 case MBEDTLS_MODE_ECB:
Steven Cooremana6033e92020-08-25 11:47:50 +020094 return( PSA_ALG_ECB_NO_PADDING );
Hanno Becker55251262018-11-12 09:29:12 +000095 case MBEDTLS_MODE_GCM:
Bence Szépkútia63b20d2020-12-16 11:36:46 +010096 return( PSA_ALG_AEAD_WITH_SHORTENED_TAG( PSA_ALG_GCM, taglen ) );
Hanno Becker55251262018-11-12 09:29:12 +000097 case MBEDTLS_MODE_CCM:
Bence Szépkútia63b20d2020-12-16 11:36:46 +010098 return( PSA_ALG_AEAD_WITH_SHORTENED_TAG( PSA_ALG_CCM, taglen ) );
Mateusz Starzyka706e5e2021-10-28 17:59:06 +020099 case MBEDTLS_MODE_CCM_STAR_NO_TAG:
100 return PSA_ALG_CCM_STAR_NO_TAG;
Hanno Becker55251262018-11-12 09:29:12 +0000101 case MBEDTLS_MODE_CBC:
Hanno Becker010cf7e2018-11-15 15:48:57 +0000102 if( taglen == 0 )
103 return( PSA_ALG_CBC_NO_PADDING );
Paul Elliott36f539d2021-03-09 16:51:02 +0000104 else
105 return( 0 );
Hanno Becker55251262018-11-12 09:29:12 +0000106 default:
107 return( 0 );
108 }
109}
110
Hanno Beckerb26c1932018-11-12 10:18:57 +0000111static inline psa_key_usage_t mbedtls_psa_translate_cipher_operation(
112 mbedtls_operation_t op )
Hanno Becker55251262018-11-12 09:29:12 +0000113{
114 switch( op )
115 {
116 case MBEDTLS_ENCRYPT:
117 return( PSA_KEY_USAGE_ENCRYPT );
118 case MBEDTLS_DECRYPT:
119 return( PSA_KEY_USAGE_DECRYPT );
120 default:
121 return( 0 );
122 }
123}
124
125/* Translations for hashing. */
126
Hanno Beckerb26c1932018-11-12 10:18:57 +0000127static inline psa_algorithm_t mbedtls_psa_translate_md( mbedtls_md_type_t md_alg )
Hanno Becker87837b22018-11-08 13:32:02 +0000128{
129 switch( md_alg )
130 {
Hanno Becker87837b22018-11-08 13:32:02 +0000131#if defined(MBEDTLS_MD5_C)
132 case MBEDTLS_MD_MD5:
133 return( PSA_ALG_MD5 );
134#endif
135#if defined(MBEDTLS_SHA1_C)
136 case MBEDTLS_MD_SHA1:
137 return( PSA_ALG_SHA_1 );
138#endif
Mateusz Starzyke3c48b42021-04-19 16:46:28 +0200139#if defined(MBEDTLS_SHA224_C)
Hanno Becker87837b22018-11-08 13:32:02 +0000140 case MBEDTLS_MD_SHA224:
141 return( PSA_ALG_SHA_224 );
Mateusz Starzyke3c48b42021-04-19 16:46:28 +0200142#endif
143#if defined(MBEDTLS_SHA256_C)
Hanno Becker87837b22018-11-08 13:32:02 +0000144 case MBEDTLS_MD_SHA256:
145 return( PSA_ALG_SHA_256 );
146#endif
Mateusz Starzyk3352a532021-04-06 14:28:22 +0200147#if defined(MBEDTLS_SHA384_C)
Hanno Becker87837b22018-11-08 13:32:02 +0000148 case MBEDTLS_MD_SHA384:
149 return( PSA_ALG_SHA_384 );
Mateusz Starzyk3352a532021-04-06 14:28:22 +0200150#endif
151#if defined(MBEDTLS_SHA512_C)
Hanno Becker87837b22018-11-08 13:32:02 +0000152 case MBEDTLS_MD_SHA512:
153 return( PSA_ALG_SHA_512 );
154#endif
155#if defined(MBEDTLS_RIPEMD160_C)
156 case MBEDTLS_MD_RIPEMD160:
157 return( PSA_ALG_RIPEMD160 );
158#endif
Paul Elliott36f539d2021-03-09 16:51:02 +0000159 case MBEDTLS_MD_NONE:
160 return( 0 );
Hanno Becker87837b22018-11-08 13:32:02 +0000161 default:
162 return( 0 );
163 }
164}
165
Hanno Becker55251262018-11-12 09:29:12 +0000166/* Translations for ECC. */
167
Hanno Becker812e1242019-02-01 10:06:51 +0000168static inline int mbedtls_psa_get_ecc_oid_from_id(
Paul Elliott8ff510a2020-06-02 17:19:28 +0100169 psa_ecc_family_t curve, size_t bits,
Gilles Peskine89177e82019-12-03 21:19:09 +0100170 char const **oid, size_t *oid_len )
Hanno Becker812e1242019-02-01 10:06:51 +0000171{
172 switch( curve )
173 {
Paul Elliott8ff510a2020-06-02 17:19:28 +0100174 case PSA_ECC_FAMILY_SECP_R1:
Gilles Peskine89177e82019-12-03 21:19:09 +0100175 switch( bits )
176 {
Hanno Becker812e1242019-02-01 10:06:51 +0000177#if defined(MBEDTLS_ECP_DP_SECP192R1_ENABLED)
Gilles Peskine89177e82019-12-03 21:19:09 +0100178 case 192:
179 *oid = MBEDTLS_OID_EC_GRP_SECP192R1;
180 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP192R1 );
181 return( 0 );
Hanno Becker812e1242019-02-01 10:06:51 +0000182#endif /* MBEDTLS_ECP_DP_SECP192R1_ENABLED */
183#if defined(MBEDTLS_ECP_DP_SECP224R1_ENABLED)
Gilles Peskine89177e82019-12-03 21:19:09 +0100184 case 224:
185 *oid = MBEDTLS_OID_EC_GRP_SECP224R1;
186 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP224R1 );
187 return( 0 );
Hanno Becker812e1242019-02-01 10:06:51 +0000188#endif /* MBEDTLS_ECP_DP_SECP224R1_ENABLED */
189#if defined(MBEDTLS_ECP_DP_SECP256R1_ENABLED)
Gilles Peskine89177e82019-12-03 21:19:09 +0100190 case 256:
191 *oid = MBEDTLS_OID_EC_GRP_SECP256R1;
192 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP256R1 );
193 return( 0 );
Hanno Becker812e1242019-02-01 10:06:51 +0000194#endif /* MBEDTLS_ECP_DP_SECP256R1_ENABLED */
195#if defined(MBEDTLS_ECP_DP_SECP384R1_ENABLED)
Gilles Peskine89177e82019-12-03 21:19:09 +0100196 case 384:
197 *oid = MBEDTLS_OID_EC_GRP_SECP384R1;
198 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP384R1 );
199 return( 0 );
Hanno Becker812e1242019-02-01 10:06:51 +0000200#endif /* MBEDTLS_ECP_DP_SECP384R1_ENABLED */
201#if defined(MBEDTLS_ECP_DP_SECP521R1_ENABLED)
Gilles Peskine89177e82019-12-03 21:19:09 +0100202 case 521:
203 *oid = MBEDTLS_OID_EC_GRP_SECP521R1;
204 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP521R1 );
205 return( 0 );
Hanno Becker812e1242019-02-01 10:06:51 +0000206#endif /* MBEDTLS_ECP_DP_SECP521R1_ENABLED */
Gilles Peskine89177e82019-12-03 21:19:09 +0100207 }
208 break;
Paul Elliott8ff510a2020-06-02 17:19:28 +0100209 case PSA_ECC_FAMILY_SECP_K1:
Gilles Peskine89177e82019-12-03 21:19:09 +0100210 switch( bits )
211 {
Hanno Becker812e1242019-02-01 10:06:51 +0000212#if defined(MBEDTLS_ECP_DP_SECP192K1_ENABLED)
Gilles Peskine89177e82019-12-03 21:19:09 +0100213 case 192:
214 *oid = MBEDTLS_OID_EC_GRP_SECP192K1;
215 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP192K1 );
216 return( 0 );
Hanno Becker812e1242019-02-01 10:06:51 +0000217#endif /* MBEDTLS_ECP_DP_SECP192K1_ENABLED */
218#if defined(MBEDTLS_ECP_DP_SECP224K1_ENABLED)
Gilles Peskine89177e82019-12-03 21:19:09 +0100219 case 224:
220 *oid = MBEDTLS_OID_EC_GRP_SECP224K1;
221 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP224K1 );
222 return( 0 );
Hanno Becker812e1242019-02-01 10:06:51 +0000223#endif /* MBEDTLS_ECP_DP_SECP224K1_ENABLED */
224#if defined(MBEDTLS_ECP_DP_SECP256K1_ENABLED)
Gilles Peskine89177e82019-12-03 21:19:09 +0100225 case 256:
226 *oid = MBEDTLS_OID_EC_GRP_SECP256K1;
227 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_SECP256K1 );
228 return( 0 );
Hanno Becker812e1242019-02-01 10:06:51 +0000229#endif /* MBEDTLS_ECP_DP_SECP256K1_ENABLED */
Gilles Peskine89177e82019-12-03 21:19:09 +0100230 }
231 break;
Paul Elliott8ff510a2020-06-02 17:19:28 +0100232 case PSA_ECC_FAMILY_BRAINPOOL_P_R1:
Gilles Peskine89177e82019-12-03 21:19:09 +0100233 switch( bits )
234 {
Hanno Becker812e1242019-02-01 10:06:51 +0000235#if defined(MBEDTLS_ECP_DP_BP256R1_ENABLED)
Gilles Peskine89177e82019-12-03 21:19:09 +0100236 case 256:
237 *oid = MBEDTLS_OID_EC_GRP_BP256R1;
238 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_BP256R1 );
239 return( 0 );
Hanno Becker812e1242019-02-01 10:06:51 +0000240#endif /* MBEDTLS_ECP_DP_BP256R1_ENABLED */
241#if defined(MBEDTLS_ECP_DP_BP384R1_ENABLED)
Gilles Peskine89177e82019-12-03 21:19:09 +0100242 case 384:
243 *oid = MBEDTLS_OID_EC_GRP_BP384R1;
244 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_BP384R1 );
245 return( 0 );
Hanno Becker812e1242019-02-01 10:06:51 +0000246#endif /* MBEDTLS_ECP_DP_BP384R1_ENABLED */
247#if defined(MBEDTLS_ECP_DP_BP512R1_ENABLED)
Gilles Peskine89177e82019-12-03 21:19:09 +0100248 case 512:
249 *oid = MBEDTLS_OID_EC_GRP_BP512R1;
250 *oid_len = MBEDTLS_OID_SIZE( MBEDTLS_OID_EC_GRP_BP512R1 );
251 return( 0 );
Hanno Becker812e1242019-02-01 10:06:51 +0000252#endif /* MBEDTLS_ECP_DP_BP512R1_ENABLED */
Gilles Peskine89177e82019-12-03 21:19:09 +0100253 }
254 break;
Hanno Becker812e1242019-02-01 10:06:51 +0000255 }
Gilles Peskine89177e82019-12-03 21:19:09 +0100256 (void) oid;
257 (void) oid_len;
258 return( -1 );
Hanno Becker812e1242019-02-01 10:06:51 +0000259}
260
Manuel Pégourié-Gonnard59753762022-01-18 11:52:11 +0100261#define MBEDTLS_PSA_MAX_EC_PUBKEY_LENGTH \
262 PSA_KEY_EXPORT_ECC_PUBLIC_KEY_MAX_SIZE( PSA_VENDOR_ECC_MAX_CURVE_BITS )
Hanno Beckerdf51dbe2019-02-18 16:41:55 +0000263
Andrzej Kurek93a38a32019-01-14 05:09:46 -0500264/* This function transforms an ECC group identifier from
265 * https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-8
266 * into a PSA ECC group identifier. */
Gilles Peskined8197cb2019-12-12 17:56:46 +0100267#if defined(MBEDTLS_ECP_C)
Gilles Peskined1959dc2019-12-18 20:44:49 +0100268static inline psa_key_type_t mbedtls_psa_parse_tls_ecc_group(
269 uint16_t tls_ecc_grp_reg_id, size_t *bits )
Andrzej Kurek93a38a32019-01-14 05:09:46 -0500270{
Gilles Peskined8197cb2019-12-12 17:56:46 +0100271 const mbedtls_ecp_curve_info *curve_info =
272 mbedtls_ecp_curve_info_from_tls_id( tls_ecc_grp_reg_id );
273 if( curve_info == NULL )
274 return( 0 );
Gilles Peskined1959dc2019-12-18 20:44:49 +0100275 return( PSA_KEY_TYPE_ECC_KEY_PAIR(
Gilles Peskine5b8618b2021-09-28 12:34:53 +0200276 mbedtls_ecc_group_to_psa( curve_info->grp_id, bits ) ) );
Andrzej Kurek93a38a32019-01-14 05:09:46 -0500277}
Gilles Peskined8197cb2019-12-12 17:56:46 +0100278#endif /* MBEDTLS_ECP_C */
Andrzej Kurek93a38a32019-01-14 05:09:46 -0500279
Gilles Peskinee3ed8022021-02-03 20:04:08 +0100280/* Expose whatever RNG the PSA subsystem uses to applications using the
Gilles Peskine996f2162021-02-16 16:50:00 +0100281 * mbedtls_xxx API. The declarations and definitions here need to be
282 * consistent with the implementation in library/psa_crypto_random_impl.h.
283 * See that file for implementation documentation. */
Jerry Yu406cf272022-03-22 11:33:42 +0800284
Gilles Peskinee3ed8022021-02-03 20:04:08 +0100285
286/* The type of a `f_rng` random generator function that many library functions
287 * take.
288 *
289 * This type name is not part of the Mbed TLS stable API. It may be renamed
290 * or moved without warning.
291 */
292typedef int mbedtls_f_rng_t( void *p_rng, unsigned char *output, size_t output_size );
293
294#if defined(MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG)
295
296/** The random generator function for the PSA subsystem.
297 *
298 * This function is suitable as the `f_rng` random generator function
Gilles Peskine2cff7e22021-02-16 16:49:42 +0100299 * parameter of many `mbedtls_xxx` functions. Use #MBEDTLS_PSA_RANDOM_STATE
300 * to obtain the \p p_rng parameter.
Gilles Peskinee3ed8022021-02-03 20:04:08 +0100301 *
302 * The implementation of this function depends on the configuration of the
303 * library.
Gilles Peskine2cff7e22021-02-16 16:49:42 +0100304 *
Gilles Peskinee3ed8022021-02-03 20:04:08 +0100305 * \note Depending on the configuration, this may be a function or
306 * a pointer to a function.
307 *
308 * \note This function may only be used if the PSA crypto subsystem is active.
309 * This means that you must call psa_crypto_init() before any call to
310 * this function, and you must not call this function after calling
311 * mbedtls_psa_crypto_free().
312 *
313 * \param p_rng The random generator context. This must be
314 * #MBEDTLS_PSA_RANDOM_STATE. No other state is
315 * supported.
316 * \param output The buffer to fill. It must have room for
317 * \c output_size bytes.
318 * \param output_size The number of bytes to write to \p output.
319 * This function may fail if \p output_size is too
320 * large. It is guaranteed to accept any output size
321 * requested by Mbed TLS library functions. The
322 * maximum request size depends on the library
323 * configuration.
324 *
325 * \return \c 0 on success.
326 * \return An `MBEDTLS_ERR_ENTROPY_xxx`,
Gilles Peskine2cff7e22021-02-16 16:49:42 +0100327 * `MBEDTLS_ERR_PLATFORM_xxx,
Gilles Peskinee3ed8022021-02-03 20:04:08 +0100328 * `MBEDTLS_ERR_CTR_DRBG_xxx` or
329 * `MBEDTLS_ERR_HMAC_DRBG_xxx` on error.
330 */
331int mbedtls_psa_get_random( void *p_rng,
332 unsigned char *output,
333 size_t output_size );
334
335/** The random generator state for the PSA subsystem.
336 *
337 * This macro expands to an expression which is suitable as the `p_rng`
338 * random generator state parameter of many `mbedtls_xxx` functions.
339 * It must be used in combination with the random generator function
340 * mbedtls_psa_get_random().
341 *
342 * The implementation of this macro depends on the configuration of the
343 * library. Do not make any assumption on its nature.
344 */
345#define MBEDTLS_PSA_RANDOM_STATE NULL
346
347#else /* !defined(MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG) */
348
349#if defined(MBEDTLS_CTR_DRBG_C)
350#include "mbedtls/ctr_drbg.h"
351typedef mbedtls_ctr_drbg_context mbedtls_psa_drbg_context_t;
352static mbedtls_f_rng_t *const mbedtls_psa_get_random = mbedtls_ctr_drbg_random;
353#elif defined(MBEDTLS_HMAC_DRBG_C)
354#include "mbedtls/hmac_drbg.h"
355typedef mbedtls_hmac_drbg_context mbedtls_psa_drbg_context_t;
356static mbedtls_f_rng_t *const mbedtls_psa_get_random = mbedtls_hmac_drbg_random;
357#endif
358extern mbedtls_psa_drbg_context_t *const mbedtls_psa_random_state;
359
360#define MBEDTLS_PSA_RANDOM_STATE mbedtls_psa_random_state
361
362#endif /* !defined(MBEDTLS_PSA_CRYPTO_EXTERNAL_RNG) */
363
Jerry Yu406cf272022-03-22 11:33:42 +0800364#endif /* MBEDTLS_PSA_CRYPTO_C */
Gilles Peskinee3ed8022021-02-03 20:04:08 +0100365
Hanno Becker186b65a2018-11-19 15:14:21 +0000366#endif /* MBEDTLS_PSA_UTIL_H */