38#define ST_SHA256_NB_HASH_REG ((uint32_t)57) /*!< Number of HASH HW context Registers:
39 CR + STR + IMR + CSR[54] */
40
41/**
42 * \brief SHA-256 context structure
43 *
44 * The structure is used both for SHA-256 and for SHA-224
45 * checksum calculations. The choice between these two is
46 * made in the call to mbedtls_sha256_starts_ret().
47 */
48typedefstruct mbedtls_sha256_context {
49int is224; /*!< 0 = use SHA256, 1 = use SHA224 */
50 HASH_HandleTypeDef hhash; /*!< Handle of HASH HAL */
51 uint8_t sbuf[ST_SHA256_BLOCK_SIZE]; /*!< Buffer to store input data until ST_SHA256_BLOCK_SIZE
52 is reached, or until last input data is reached */
53 uint8_t sbuf_len; /*!< Number of bytes stored in sbuf */
54 uint32_t ctx_save_regs[ST_SHA256_NB_HASH_REG];
55 }
56 mbedtls_sha256_context;
57
58
59#endif /* MBEDTLS_SHA256_ALT */
60#endif /* MBEDTLS_SHA256_ALT_H */
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.