Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:48:32

0001 /**
0002  * \file psa/crypto_driver_random.h
0003  * \brief Definitions for PSA random and entropy drivers
0004  *
0005  * This file is part of the PSA Crypto Driver Model, containing functions for
0006  * driver developers to implement to enable hardware to be called in a
0007  * standardized way by a PSA Cryptographic API implementation. The functions
0008  * comprising the driver model, which driver authors implement, are not
0009  * intended to be called by application developers.
0010  */
0011 
0012 /*
0013  *  Copyright The Mbed TLS Contributors
0014  *  SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
0015  */
0016 #ifndef PSA_CRYPTO_DRIVER_RANDOM_H
0017 #define PSA_CRYPTO_DRIVER_RANDOM_H
0018 
0019 #include "crypto_driver_common.h"
0020 
0021 #ifdef __cplusplus
0022 extern "C" {
0023 #endif
0024 
0025 /** \defgroup driver_random Random and entropy drivers
0026  * @{
0027  */
0028 
0029 /** The type of the \p flags argument to `"get_entropy"` driver entry points.
0030  *
0031  * This implementation does not support any flags yet.
0032  *
0033  */
0034 typedef uint32_t psa_driver_get_entropy_flags_t;
0035 
0036 /** Flags requesting the default behavior for a `"get_entropy"` driver entry
0037  * point. This is equivalent to \c 0.
0038  *
0039  * \see ::psa_driver_get_entropy_flags_t
0040  */
0041 #define PSA_DRIVER_GET_ENTROPY_FLAGS_NONE ((psa_driver_get_entropy_flags_t) 0)
0042 
0043 /**@}*/
0044 
0045 #ifdef __cplusplus
0046 }
0047 #endif
0048 
0049 #endif /* PSA_CRYPTO_DRIVER_COMMON_H */