blob: 04b90b9231bc04fca25a8837763c8c98ef227ed4 [file] [log] [blame]
Gilles Peskine952f4092019-05-23 20:25:48 +02001/*
Gilles Peskine3cff7682019-06-20 12:54:43 +02002 * Helper functions for tests that use the PSA Crypto API.
Gilles Peskine952f4092019-05-23 20:25:48 +02003 */
Bence Szépkúti86974652020-06-15 11:59:37 +02004/*
Bence Szépkúti1e148272020-08-07 13:07:28 +02005 * Copyright The Mbed TLS Contributors
Dave Rodgman16799db2023-11-02 19:47:20 +00006 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
Gilles Peskine952f4092019-05-23 20:25:48 +02007 */
8
Gilles Peskine1838e822019-06-20 12:40:56 +02009#ifndef PSA_CRYPTO_HELPERS_H
10#define PSA_CRYPTO_HELPERS_H
11
Ronald Cron28a45ed2021-02-09 20:35:42 +010012#include "test/helpers.h"
Gilles Peskine9de97e22021-02-02 21:00:11 +010013
14#if defined(MBEDTLS_PSA_CRYPTO_C)
Ronald Cron02c78b72020-05-27 09:22:32 +020015#include "test/psa_helpers.h"
Gilles Peskine3cff7682019-06-20 12:54:43 +020016#include <psa/crypto.h>
Manuel Pégourié-Gonnard9f132b72023-03-14 10:26:46 +010017#endif
Gilles Peskine952f4092019-05-23 20:25:48 +020018
Manuel Pégourié-Gonnardffcda562023-03-14 23:37:18 +010019
Manuel Pégourié-Gonnard9f132b72023-03-14 10:26:46 +010020#if defined(MBEDTLS_PSA_CRYPTO_C)
21/** Initialize the PSA Crypto subsystem. */
22#define PSA_INIT() PSA_ASSERT(psa_crypto_init())
23
24/** Shut down the PSA Crypto subsystem and destroy persistent keys.
25 * Expect a clean shutdown, with no slots in use.
26 *
27 * If some key slots are still in use, record the test case as failed,
28 * but continue executing. This macro is suitable (and primarily intended)
29 * for use in the cleanup section of test functions.
30 *
31 * \note Persistent keys must be recorded with #TEST_USES_KEY_ID before
32 * creating them.
33 */
34#define PSA_DONE() \
35 do \
36 { \
37 mbedtls_test_fail_if_psa_leaking(__LINE__, __FILE__); \
38 mbedtls_test_psa_purge_key_storage(); \
39 mbedtls_psa_crypto_free(); \
40 } \
41 while (0)
42#else /*MBEDTLS_PSA_CRYPTO_C */
43#define PSA_INIT() ((void) 0)
44#define PSA_DONE() ((void) 0)
45#endif /* MBEDTLS_PSA_CRYPTO_C */
46
47#if defined(MBEDTLS_PSA_CRYPTO_C)
48
Gilles Peskine313ffb82021-02-14 12:51:14 +010049#if defined(MBEDTLS_PSA_CRYPTO_STORAGE_C)
Gilles Peskinee09ef872021-02-14 13:10:38 +010050
51/* Internal function for #TEST_USES_KEY_ID. Return 1 on success, 0 on failure. */
Gilles Peskine449bd832023-01-11 14:50:10 +010052int mbedtls_test_uses_key_id(mbedtls_svc_key_id_t key_id);
Gilles Peskinee09ef872021-02-14 13:10:38 +010053
54/** Destroy persistent keys recorded with #TEST_USES_KEY_ID.
55 */
Gilles Peskine449bd832023-01-11 14:50:10 +010056void mbedtls_test_psa_purge_key_storage(void);
Gilles Peskinee09ef872021-02-14 13:10:38 +010057
Gilles Peskineaae718c2021-02-14 13:46:39 +010058/** Purge the in-memory cache of persistent keys recorded with
59 * #TEST_USES_KEY_ID.
Gilles Peskine65048ad2021-02-14 14:08:22 +010060 *
61 * Call this function before calling PSA_DONE() if it's ok for
62 * persistent keys to still exist at this point.
Gilles Peskineaae718c2021-02-14 13:46:39 +010063 */
Gilles Peskine449bd832023-01-11 14:50:10 +010064void mbedtls_test_psa_purge_key_cache(void);
Gilles Peskineaae718c2021-02-14 13:46:39 +010065
Gilles Peskinee09ef872021-02-14 13:10:38 +010066/** \def TEST_USES_KEY_ID
67 *
68 * Call this macro in a test function before potentially creating a
69 * persistent key. Test functions that use this mechanism must call
70 * mbedtls_test_psa_purge_key_storage() in their cleanup code.
71 *
72 * This macro records a persistent key identifier as potentially used in the
73 * current test case. Recorded key identifiers will be cleaned up at the end
74 * of the test case, even on failure.
75 *
76 * This macro has no effect on volatile keys. Therefore, it is safe to call
77 * this macro in a test function that creates either volatile or persistent
78 * keys depending on the test data.
79 *
80 * This macro currently has no effect on special identifiers
81 * used to store implementation-specific files.
82 *
83 * Calling this macro multiple times on the same key identifier in the same
84 * test case has no effect.
85 *
86 * This macro can fail the test case if there isn't enough memory to
87 * record the key id.
88 *
89 * \param key_id The PSA key identifier to record.
90 */
Gilles Peskine449bd832023-01-11 14:50:10 +010091#define TEST_USES_KEY_ID(key_id) \
92 TEST_ASSERT(mbedtls_test_uses_key_id(key_id))
Gilles Peskinee09ef872021-02-14 13:10:38 +010093
Gilles Peskine313ffb82021-02-14 12:51:14 +010094#else /* MBEDTLS_PSA_CRYPTO_STORAGE_C */
Gilles Peskinee09ef872021-02-14 13:10:38 +010095
Gilles Peskine449bd832023-01-11 14:50:10 +010096#define TEST_USES_KEY_ID(key_id) ((void) (key_id))
97#define mbedtls_test_psa_purge_key_storage() ((void) 0)
98#define mbedtls_test_psa_purge_key_cache() ((void) 0)
Gilles Peskinee09ef872021-02-14 13:10:38 +010099
Gilles Peskine313ffb82021-02-14 12:51:14 +0100100#endif /* MBEDTLS_PSA_CRYPTO_STORAGE_C */
101
Gilles Peskine1e005652020-11-24 17:41:07 +0100102/** Check for things that have not been cleaned up properly in the
103 * PSA subsystem.
104 *
105 * \return NULL if nothing has leaked.
106 * \return A string literal explaining what has not been cleaned up
107 * if applicable.
108 */
Gilles Peskine449bd832023-01-11 14:50:10 +0100109const char *mbedtls_test_helper_is_psa_leaking(void);
Gilles Peskinedd413d32019-05-28 15:06:43 +0200110
Gilles Peskine3cff7682019-06-20 12:54:43 +0200111/** Check that no PSA Crypto key slots are in use.
Gilles Peskinec85c2012021-01-06 20:47:16 +0100112 *
113 * If any slots are in use, mark the current test as failed and jump to
114 * the exit label. This is equivalent to
115 * `TEST_ASSERT( ! mbedtls_test_helper_is_psa_leaking( ) )`
116 * but with a more informative message.
Gilles Peskinedd413d32019-05-28 15:06:43 +0200117 */
Yanray Wange64b4052022-10-28 18:12:01 +0800118#define ASSERT_PSA_PRISTINE() \
Gilles Peskinec85c2012021-01-06 20:47:16 +0100119 do \
120 { \
Yanray Wange64b4052022-10-28 18:12:01 +0800121 if (mbedtls_test_fail_if_psa_leaking(__LINE__, __FILE__)) \
122 goto exit; \
Gilles Peskinec85c2012021-01-06 20:47:16 +0100123 } \
Gilles Peskine449bd832023-01-11 14:50:10 +0100124 while (0)
Gilles Peskinea6d252a2019-05-23 20:34:30 +0200125
Gilles Peskine65048ad2021-02-14 14:08:22 +0100126/** Shut down the PSA Crypto subsystem, allowing persistent keys to survive.
127 * Expect a clean shutdown, with no slots in use.
128 *
129 * If some key slots are still in use, record the test case as failed and
130 * jump to the `exit` label.
131 */
Gilles Peskine449bd832023-01-11 14:50:10 +0100132#define PSA_SESSION_DONE() \
Gilles Peskine65048ad2021-02-14 14:08:22 +0100133 do \
134 { \
Gilles Peskine449bd832023-01-11 14:50:10 +0100135 mbedtls_test_psa_purge_key_cache(); \
136 ASSERT_PSA_PRISTINE(); \
137 mbedtls_psa_crypto_free(); \
Gilles Peskinec85c2012021-01-06 20:47:16 +0100138 } \
Gilles Peskine449bd832023-01-11 14:50:10 +0100139 while (0)
Gilles Peskinea6d252a2019-05-23 20:34:30 +0200140
Gilles Peskine51681552019-05-20 19:35:37 +0200141
142
143#if defined(RECORD_PSA_STATUS_COVERAGE_LOG)
Gilles Peskine449bd832023-01-11 14:50:10 +0100144psa_status_t mbedtls_test_record_status(psa_status_t status,
145 const char *func,
146 const char *file, int line,
147 const char *expr);
Gilles Peskine51681552019-05-20 19:35:37 +0200148
149/** Return value logging wrapper macro.
150 *
151 * Evaluate \p expr. Write a line recording its value to the log file
152 * #STATUS_LOG_FILE_NAME and return the value. The line is a colon-separated
153 * list of fields:
154 * ```
155 * value of expr:string:__FILE__:__LINE__:expr
156 * ```
157 *
158 * The test code does not call this macro explicitly because that would
159 * be very invasive. Instead, we instrument the source code by defining
160 * a bunch of wrapper macros like
161 * ```
162 * #define psa_crypto_init() RECORD_STATUS("psa_crypto_init", psa_crypto_init())
163 * ```
164 * These macro definitions must be present in `instrument_record_status.h`
165 * when building the test suites.
166 *
167 * \param string A string, normally a function name.
168 * \param expr An expression to evaluate, normally a call of the function
169 * whose name is in \p string. This expression must return
170 * a value of type #psa_status_t.
171 * \return The value of \p expr.
172 */
Gilles Peskine449bd832023-01-11 14:50:10 +0100173#define RECORD_STATUS(string, expr) \
174 mbedtls_test_record_status((expr), string, __FILE__, __LINE__, #expr)
Gilles Peskine51681552019-05-20 19:35:37 +0200175
176#include "instrument_record_status.h"
177
178#endif /* defined(RECORD_PSA_STATUS_COVERAGE_LOG) */
179
gabor-mezei-arm4ff73032021-05-13 12:05:01 +0200180/** Return extended key usage policies.
181 *
182 * Do a key policy permission extension on key usage policies always involves
183 * permissions of other usage policies
Tom Cosgrove1797b052022-12-04 17:19:59 +0000184 * (like PSA_KEY_USAGE_SIGN_HASH involves PSA_KEY_USAGE_SIGN_MESSAGE).
gabor-mezei-arm4ff73032021-05-13 12:05:01 +0200185 */
Gilles Peskine449bd832023-01-11 14:50:10 +0100186psa_key_usage_t mbedtls_test_update_key_usage_flags(psa_key_usage_t usage_flags);
gabor-mezei-arm4ff73032021-05-13 12:05:01 +0200187
Yanray Wange64b4052022-10-28 18:12:01 +0800188/** Check that no PSA Crypto key slots are in use.
189 *
190 * If any slots are in use, mark the current test as failed.
191 *
192 * \return 0 if the key store is empty, 1 otherwise.
193 */
194int mbedtls_test_fail_if_psa_leaking(int line_no, const char *filename);
195
Gilles Peskinea08def92023-04-28 21:01:49 +0200196
197
198#if defined(MBEDTLS_PSA_INJECT_ENTROPY)
199/* The #MBEDTLS_PSA_INJECT_ENTROPY feature requires two extra platform
200 * functions, which must be configured as #MBEDTLS_PLATFORM_NV_SEED_READ_MACRO
201 * and #MBEDTLS_PLATFORM_NV_SEED_WRITE_MACRO. The job of these functions
202 * is to read and write from the entropy seed file, which is located
203 * in the PSA ITS file whose uid is #PSA_CRYPTO_ITS_RANDOM_SEED_UID.
204 * (These could have been provided as library functions, but for historical
205 * reasons, they weren't, and so each integrator has to provide a copy
206 * of these functions.)
207 *
208 * Provide implementations of these functions for testing. */
209int mbedtls_test_inject_entropy_seed_read(unsigned char *buf, size_t len);
210int mbedtls_test_inject_entropy_seed_write(unsigned char *buf, size_t len);
Gilles Peskinec2d16b22023-04-28 23:39:45 +0200211
212
213/** Make sure that the injected entropy is present.
214 *
215 * When MBEDTLS_PSA_INJECT_ENTROPY is enabled, psa_crypto_init()
216 * will fail if the PSA entropy seed is not present.
217 * This function must be called at least once in a test suite or other
218 * program before any call to psa_crypto_init().
219 * It does not need to be called in each test case.
220 *
221 * The test framework calls this function before running any test case.
222 *
223 * The few tests that might remove the entropy file must call this function
224 * in their cleanup.
225 */
226int mbedtls_test_inject_entropy_restore(void);
Gilles Peskinea08def92023-04-28 21:01:49 +0200227#endif /* MBEDTLS_PSA_INJECT_ENTROPY */
228
Kusumit Ghoderaoac7a04a2023-08-18 13:47:47 +0530229/** Parse binary string and convert it to a long integer
230 */
Kusumit Ghoderao7c61ffc2023-09-05 19:29:47 +0530231uint64_t mbedtls_test_parse_binary_string(data_t *bin_string);
Gilles Peskinea08def92023-04-28 21:01:49 +0200232
Steven Cooreman1e9c0422021-02-10 17:02:05 +0100233/** Skip a test case if the given key is a 192 bits AES key and the AES
234 * implementation is at least partially provided by an accelerator or
Ronald Cron28a45ed2021-02-09 20:35:42 +0100235 * alternative implementation.
236 *
Steven Cooreman1e9c0422021-02-10 17:02:05 +0100237 * Call this macro in a test case when a cryptographic operation that may
238 * involve an AES operation returns a #PSA_ERROR_NOT_SUPPORTED error code.
239 * The macro call will skip and not fail the test case in case the operation
240 * involves a 192 bits AES key and the AES implementation is at least
241 * partially provided by an accelerator or alternative implementation.
242 *
243 * Hardware AES implementations not supporting 192 bits keys commonly exist.
Ronald Cron28a45ed2021-02-09 20:35:42 +0100244 * Consequently, PSA test cases aim at not failing when an AES operation with
Steven Cooreman1e9c0422021-02-10 17:02:05 +0100245 * a 192 bits key performed by an alternative AES implementation returns
246 * with the #PSA_ERROR_NOT_SUPPORTED error code. The purpose of this macro
247 * is to facilitate this and make the test case code more readable.
Ronald Cron28a45ed2021-02-09 20:35:42 +0100248 *
249 * \param key_type Key type
250 * \param key_bits Key length in number of bits.
251 */
252#if defined(MBEDTLS_AES_ALT) || \
253 defined(MBEDTLS_AES_SETKEY_ENC_ALT) || \
254 defined(MBEDTLS_PSA_ACCEL_KEY_TYPE_AES)
255#define MBEDTLS_TEST_HAVE_ALT_AES 1
256#else
257#define MBEDTLS_TEST_HAVE_ALT_AES 0
258#endif
259
Gilles Peskine449bd832023-01-11 14:50:10 +0100260#define MBEDTLS_TEST_PSA_SKIP_IF_ALT_AES_192(key_type, key_bits) \
Ronald Cron28a45ed2021-02-09 20:35:42 +0100261 do \
262 { \
Gilles Peskine449bd832023-01-11 14:50:10 +0100263 if ((MBEDTLS_TEST_HAVE_ALT_AES) && \
264 ((key_type) == PSA_KEY_TYPE_AES) && \
265 (key_bits == 192)) \
Ronald Cron28a45ed2021-02-09 20:35:42 +0100266 { \
Gilles Peskine449bd832023-01-11 14:50:10 +0100267 mbedtls_test_skip("AES-192 not supported", __LINE__, __FILE__); \
Ronald Cron28a45ed2021-02-09 20:35:42 +0100268 goto exit; \
269 } \
270 } \
Gilles Peskine449bd832023-01-11 14:50:10 +0100271 while (0)
Ronald Cron28a45ed2021-02-09 20:35:42 +0100272
Steven Cooreman1e9c0422021-02-10 17:02:05 +0100273/** Skip a test case if a GCM operation with a nonce length different from
274 * 12 bytes fails and was performed by an accelerator or alternative
275 * implementation.
Ronald Cron28a45ed2021-02-09 20:35:42 +0100276 *
277 * Call this macro in a test case when an AEAD cryptography operation that
Steven Cooreman1e9c0422021-02-10 17:02:05 +0100278 * may involve the GCM mode returns with a #PSA_ERROR_NOT_SUPPORTED error
279 * code. The macro call will skip and not fail the test case in case the
280 * operation involves the GCM mode, a nonce with a length different from
281 * 12 bytes and the GCM mode implementation is an alternative one.
Ronald Cron28a45ed2021-02-09 20:35:42 +0100282 *
Steven Cooreman1e9c0422021-02-10 17:02:05 +0100283 * Hardware GCM implementations not supporting nonce lengths different from
284 * 12 bytes commonly exist, as supporting a non-12-byte nonce requires
285 * additional computations involving the GHASH function.
286 * Consequently, PSA test cases aim at not failing when an AEAD operation in
287 * GCM mode with a nonce length different from 12 bytes is performed by an
288 * alternative GCM implementation and returns with a #PSA_ERROR_NOT_SUPPORTED
289 * error code. The purpose of this macro is to facilitate this check and make
290 * the test case code more readable.
Ronald Cron28a45ed2021-02-09 20:35:42 +0100291 *
Steven Cooreman1e9c0422021-02-10 17:02:05 +0100292 * \param alg The AEAD algorithm.
293 * \param nonce_length The nonce length in number of bytes.
Ronald Cron28a45ed2021-02-09 20:35:42 +0100294 */
Ronald Cron28a45ed2021-02-09 20:35:42 +0100295#if defined(MBEDTLS_GCM_ALT) || \
296 defined(MBEDTLS_PSA_ACCEL_ALG_GCM)
297#define MBEDTLS_TEST_HAVE_ALT_GCM 1
298#else
299#define MBEDTLS_TEST_HAVE_ALT_GCM 0
300#endif
301
Gilles Peskine449bd832023-01-11 14:50:10 +0100302#define MBEDTLS_TEST_PSA_SKIP_IF_ALT_GCM_NOT_12BYTES_NONCE(alg, \
303 nonce_length) \
Ronald Cron28a45ed2021-02-09 20:35:42 +0100304 do \
305 { \
Gilles Peskine449bd832023-01-11 14:50:10 +0100306 if ((MBEDTLS_TEST_HAVE_ALT_GCM) && \
307 (PSA_ALG_AEAD_WITH_SHORTENED_TAG((alg), 0) == \
308 PSA_ALG_AEAD_WITH_SHORTENED_TAG(PSA_ALG_GCM, 0)) && \
309 ((nonce_length) != 12)) \
Ronald Cron28a45ed2021-02-09 20:35:42 +0100310 { \
Gilles Peskine449bd832023-01-11 14:50:10 +0100311 mbedtls_test_skip("GCM with non-12-byte IV is not supported", __LINE__, __FILE__); \
Ronald Cron28a45ed2021-02-09 20:35:42 +0100312 goto exit; \
313 } \
314 } \
Gilles Peskine449bd832023-01-11 14:50:10 +0100315 while (0)
Ronald Cron28a45ed2021-02-09 20:35:42 +0100316
Gilles Peskine9de97e22021-02-02 21:00:11 +0100317#endif /* MBEDTLS_PSA_CRYPTO_C */
318
319/** \def USE_PSA_INIT
320 *
321 * Call this macro to initialize the PSA subsystem if #MBEDTLS_USE_PSA_CRYPTO
Ronald Cron3cec8e82022-03-27 14:34:09 +0200322 * or #MBEDTLS_SSL_PROTO_TLS1_3 (In contrast to TLS 1.2 implementation, the
323 * TLS 1.3 one uses PSA independently of the definition of
Manuel Pégourié-Gonnardfa99afa2023-03-17 11:59:12 +0100324 * #MBEDTLS_USE_PSA_CRYPTO) is enabled and do nothing otherwise.
325 *
326 * If the initialization fails, mark the test case as failed and jump to the
327 * \p exit label.
Gilles Peskine9de97e22021-02-02 21:00:11 +0100328 */
329/** \def USE_PSA_DONE
330 *
331 * Call this macro at the end of a test case if you called #USE_PSA_INIT.
Manuel Pégourié-Gonnardfa99afa2023-03-17 11:59:12 +0100332 *
333 * This is like #PSA_DONE except it does nothing under the same conditions as
334 * #USE_PSA_INIT.
Gilles Peskine9de97e22021-02-02 21:00:11 +0100335 */
Ronald Cron3cec8e82022-03-27 14:34:09 +0200336#if defined(MBEDTLS_USE_PSA_CRYPTO) || defined(MBEDTLS_SSL_PROTO_TLS1_3)
Gilles Peskine449bd832023-01-11 14:50:10 +0100337#define USE_PSA_INIT() PSA_INIT()
338#define USE_PSA_DONE() PSA_DONE()
Ronald Cron3cec8e82022-03-27 14:34:09 +0200339#else /* MBEDTLS_USE_PSA_CRYPTO || MBEDTLS_SSL_PROTO_TLS1_3 */
Gilles Peskine9de97e22021-02-02 21:00:11 +0100340/* Define empty macros so that we can use them in the preamble and teardown
341 * of every test function that uses PSA conditionally based on
342 * MBEDTLS_USE_PSA_CRYPTO. */
Gilles Peskine449bd832023-01-11 14:50:10 +0100343#define USE_PSA_INIT() ((void) 0)
344#define USE_PSA_DONE() ((void) 0)
Ronald Cron3cec8e82022-03-27 14:34:09 +0200345#endif /* !MBEDTLS_USE_PSA_CRYPTO && !MBEDTLS_SSL_PROTO_TLS1_3 */
Gilles Peskine9de97e22021-02-02 21:00:11 +0100346
Manuel Pégourié-Gonnardfa99afa2023-03-17 11:59:12 +0100347/** \def MD_PSA_INIT
348 *
349 * Call this macro to initialize the PSA subsystem if MD uses a driver,
350 * and do nothing otherwise.
351 *
352 * If the initialization fails, mark the test case as failed and jump to the
353 * \p exit label.
354 */
355/** \def MD_PSA_DONE
356 *
357 * Call this macro at the end of a test case if you called #MD_PSA_INIT.
358 *
359 * This is like #PSA_DONE except it does nothing under the same conditions as
360 * #MD_PSA_INIT.
361 */
362#if defined(MBEDTLS_MD_SOME_PSA)
363#define MD_PSA_INIT() PSA_INIT()
364#define MD_PSA_DONE() PSA_DONE()
365#else /* MBEDTLS_MD_SOME_PSA */
366#define MD_PSA_INIT() ((void) 0)
367#define MD_PSA_DONE() ((void) 0)
368#endif /* MBEDTLS_MD_SOME_PSA */
369
370/** \def MD_OR_USE_PSA_INIT
371 *
372 * Call this macro to initialize the PSA subsystem if MD uses a driver,
Manuel Pégourié-Gonnard161dca62023-03-21 16:22:59 +0100373 * or if #MBEDTLS_USE_PSA_CRYPTO or #MBEDTLS_SSL_PROTO_TLS1_3 is enabled,
Manuel Pégourié-Gonnardfa99afa2023-03-17 11:59:12 +0100374 * and do nothing otherwise.
375 *
376 * If the initialization fails, mark the test case as failed and jump to the
377 * \p exit label.
378 */
379/** \def MD_OR_USE_PSA_DONE
380 *
381 * Call this macro at the end of a test case if you called #MD_OR_USE_PSA_INIT.
382 *
383 * This is like #PSA_DONE except it does nothing under the same conditions as
384 * #MD_OR_USE_PSA_INIT.
385 */
386#if defined(MBEDTLS_MD_SOME_PSA) || \
387 defined(MBEDTLS_USE_PSA_CRYPTO) || defined(MBEDTLS_SSL_PROTO_TLS1_3)
388#define MD_OR_USE_PSA_INIT() PSA_INIT()
389#define MD_OR_USE_PSA_DONE() PSA_DONE()
390#else
391#define MD_OR_USE_PSA_INIT() ((void) 0)
392#define MD_OR_USE_PSA_DONE() ((void) 0)
393#endif
394
Gilles Peskine1838e822019-06-20 12:40:56 +0200395#endif /* PSA_CRYPTO_HELPERS_H */