You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* \note HAL_HASH_SHA1_Accumulate cannot handle less than 4 bytes, unless it is the last call to the function
39
-
* A MBEDTLS_SHA1_BLOCK_SIZE bytes buffer is used to save values and handle the processing
40
-
* MBEDTLS_SHA1_BLOCK_SIZE bytes per MBEDTLS_SHA1_BLOCK_SIZE bytes
38
+
* \note HAL_HASH_SHA1_Accumulate will accumulate 512 bits packets, unless it is the last call to the function
39
+
* A ST_SHA1_BLOCK_SIZE bytes buffer is used to save values and handle the processing
40
+
* multiples of ST_SHA1_BLOCK_SIZE bytes
41
41
* If SHA1_finish is called and sbuf_len>0, the remaining bytes are accumulated prior to the call to HAL_HASH_SHA1_Finish
42
42
*/
43
43
typedefstruct
44
44
{
45
-
unsigned charsbuf[MBEDTLS_SHA1_BLOCK_SIZE]; /*!< MBEDTLS_SHA1_BLOCK_SIZE buffer to store values so that algorithm is caled once the buffer is filled */
45
+
unsigned charsbuf[ST_SHA1_BLOCK_SIZE]; /*!< MBEDTLS_SHA1_BLOCK_SIZE buffer to store values so that algorithm is caled once the buffer is filled */
46
46
unsigned charsbuf_len; /*!< number of bytes remaining in sbuf to be processed */
47
47
HASH_HandleTypeDefhhash_sha1; /*!< ST HAL HASH struct */
0 commit comments