Lines Matching +full:for +full:- +full:context
7 * in <em>NIST SP 800-90A: Recommendation for Random Number Generation Using
12 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
30 #define MBEDTLS_ERR_HMAC_DRBG_REQUEST_TOO_BIG -0x0003
32 #define MBEDTLS_ERR_HMAC_DRBG_INPUT_TOO_BIG -0x0005
34 #define MBEDTLS_ERR_HMAC_DRBG_FILE_IO_ERROR -0x0007
36 #define MBEDTLS_ERR_HMAC_DRBG_ENTROPY_SOURCE_FAILED -0x0009
41 * The configuration options you can set for this module are in this section.
72 * HMAC_DRBG context.
76 * but is implied by the HMAC context */
77 mbedtls_md_context_t MBEDTLS_PRIVATE(md_ctx); /*!< HMAC context (inc. K) */
89 void *MBEDTLS_PRIVATE(p_entropy); /*!< context for the entropy function */
93 * md_ctx->md_info != NULL. This means that the mutex is initialized
105 * \brief HMAC_DRBG context initialization.
107 * This function makes the context ready for mbedtls_hmac_drbg_seed(),
114 * \param ctx HMAC_DRBG context to be initialized.
121 * Set the initial seed and set up the entropy source for future reseeds.
123 * A typical choice for the \p f_entropy and \p p_entropy parameters is
125 * - \p f_entropy is mbedtls_entropy_func();
126 * - \p p_entropy is an instance of ::mbedtls_entropy_context initialized
134 * - 128 bits if \p md_info is SHA-1;
135 * - 192 bits if \p md_info is SHA-224;
136 * - 256 bits if \p md_info is SHA-256, SHA-384 or SHA-512.
137 * Note that SHA-256 is just as efficient as SHA-224.
156 * reseeding, are not thread-safe.
160 * \param ctx HMAC_DRBG context to be seeded.
161 * \param md_info MD algorithm to use for HMAC_DRBG.
163 * \p p_entropy context, the buffer to fill, and the
167 * \param p_entropy The entropy context to pass to \p f_entropy.
174 * #MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT - \c entropy_len * 3 / 2
182 * memory to allocate context data.
196 * This function is meant for use in algorithms that need a pseudorandom
205 * reseeding, are not thread-safe.
209 * \param ctx HMAC_DRBG context to be initialised.
210 * \param md_info MD algorithm to use for HMAC_DRBG.
219 * memory to allocate context data.
235 * \param ctx The HMAC_DRBG context.
245 * See the documentation of mbedtls_hmac_drbg_seed() for the default value.
247 * \param ctx The HMAC_DRBG context.
262 * \param ctx The HMAC_DRBG context.
269 * \brief This function updates the state of the HMAC_DRBG context.
271 * \note This function is not thread-safe. It is not safe
274 * context or updating or reseeding the same context.
276 * \param ctx The HMAC_DRBG context.
289 * \brief This function reseeds the HMAC_DRBG context, that is
292 * \note This function is not thread-safe. It is not safe
295 * context or updating or reseeding the same context.
297 * \param ctx The HMAC_DRBG context.
304 * #MBEDTLS_HMAC_DRBG_MAX_SEED_INPUT - \c entropy_len
322 * \note This function is not thread-safe. It is not safe
325 * context or updating or reseeding the same context.
327 * \param p_rng The HMAC_DRBG context. This must be a pointer to a
362 * reseeding, are not thread-safe.
366 * \param p_rng The HMAC_DRBG context. This must be a pointer to a
381 * \brief This function resets HMAC_DRBG context to the state immediately
384 * \param ctx The HMAC_DRBG context to free.
392 * \param ctx The HMAC_DRBG context.
406 * \param ctx The HMAC_DRBG context.