Lines Matching +full:for +full:- +full:context

4  * \brief This file contains SHA-224 and SHA-256 definitions and functions.
6 * The Secure Hash Algorithms 224 and 256 (SHA-224 and SHA-256) cryptographic
7 * hash functions are defined in <em>FIPS 180-4: Secure Hash Standard (SHS)</em>.
11 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
22 /** SHA-256 input data was malformed. */
23 #define MBEDTLS_ERR_SHA256_BAD_INPUT_DATA -0x0074
34 * \brief The SHA-256 context structure.
36 * The structure is used both for SHA-256 and for SHA-224
46 0: Use SHA-256, or 1: Use SHA-224. */
56 * \brief This function initializes a SHA-256 context.
58 * \param ctx The SHA-256 context to initialize. This must not be \c NULL.
63 * \brief This function clears a SHA-256 context.
65 * \param ctx The SHA-256 context to clear. This may be \c NULL, in which
67 * it must point to an initialized SHA-256 context.
72 * \brief This function clones the state of a SHA-256 context.
74 * \param dst The destination context. This must be initialized.
75 * \param src The context to clone. This must be initialized.
81 * \brief This function starts a SHA-224 or SHA-256 checksum
84 * \param ctx The context to use. This must be initialized.
86 * either \c 0 for SHA-256, or \c 1 for SHA-224.
99 * SHA-256 checksum calculation.
101 * \param ctx The SHA-256 context. This must be initialized
115 * \brief This function finishes the SHA-256 operation, and writes
118 * \param ctx The SHA-256 context. This must be initialized
120 * \param output The SHA-224 or SHA-256 checksum result.
122 * for SHA-256, \c 28 bytes for SHA-224.
132 * the ongoing SHA-256 computation. This function is for
135 * \param ctx The SHA-256 context. This must be initialized.
146 * \brief This function calculates the SHA-224 or SHA-256
149 * The function allocates the context, performs the
150 * calculation, and frees the context.
152 * The SHA-256 result is calculated as
153 * output = SHA-256(input buffer).
158 * \param output The SHA-224 or SHA-256 checksum result.
160 * for SHA-256, \c 28 bytes for SHA-224.
162 * either \c 0 for SHA-256, or \c 1 for SHA-224.
176 * \brief The SHA-224 checkup routine.
186 * \brief The SHA-256 checkup routine.