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

3  * \brief This file contains SHA-384 and SHA-512 definitions and functions.
5 * The Secure Hash Algorithms 384 and 512 (SHA-384 and SHA-512) cryptographic
6 * hash functions are defined in <em>FIPS 180-4: Secure Hash Standard (SHS)</em>.
10 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
21 /** SHA-512 input data was malformed. */
22 #define MBEDTLS_ERR_SHA512_BAD_INPUT_DATA -0x0075
33 * \brief The SHA-512 context structure.
35 * The structure is used both for SHA-384 and for SHA-512
45 0: Use SHA-512, or 1: Use SHA-384. */
55 * \brief This function initializes a SHA-512 context.
57 * \param ctx The SHA-512 context to initialize. This must
63 * \brief This function clears a SHA-512 context.
65 * \param ctx The SHA-512 context to clear. This may be \c NULL,
68 * SHA-512 context.
73 * \brief This function clones the state of a SHA-512 context.
75 * \param dst The destination context. This must be initialized.
76 * \param src The context to clone. This must be initialized.
82 * \brief This function starts a SHA-384 or SHA-512 checksum
85 * \param ctx The SHA-512 context to use. This must be initialized.
87 * either \c 0 for SHA-512, or \c 1 for SHA-384.
100 * SHA-512 checksum calculation.
102 * \param ctx The SHA-512 context. This must be initialized
116 * \brief This function finishes the SHA-512 operation, and writes
119 * \param ctx The SHA-512 context. This must be initialized
121 * \param output The SHA-384 or SHA-512 checksum result.
123 * for SHA-512, \c 48 bytes for SHA-384.
133 * the ongoing SHA-512 computation.
134 * This function is for internal use only.
136 * \param ctx The SHA-512 context. This must be initialized.
147 * \brief This function calculates the SHA-512 or SHA-384
150 * The function allocates the context, performs the
151 * calculation, and frees the context.
153 * The SHA-512 result is calculated as
154 * output = SHA-512(input buffer).
159 * \param output The SHA-384 or SHA-512 checksum result.
161 * for SHA-512, \c 48 bytes for SHA-384.
163 * \c 0 for SHA-512, or \c 1 for SHA-384.
167 * - is384 is 0, but \c MBEDTLS_SHA384_C is not defined, or
168 * - is384 is 1, but \c MBEDTLS_SHA512_C is not defined
184 * \brief The SHA-384 checkup routine.
194 * \brief The SHA-512 checkup routine.