HAL_SHA1_ALT ¶
MBEDTLS IMPLEMENTATION HAL SHA1 ALT FUNCTIONS ¶
- group MBEDTLS_IMPLEMENTATION_HAL_SHA1_ALT_FUNCTIONS
-
Public API functions for HAL SHA1 alternate implementation.
Functions
-
void
mbedtls_sha1_init
(
mbedtls_sha1_context
*
ctx
)
¶
-
void
mbedtls_sha1_free
(
mbedtls_sha1_context
*
ctx
)
¶
-
void
mbedtls_sha1_clone
(
mbedtls_sha1_context
*
dst
,
const
mbedtls_sha1_context
*
src
)
¶
-
int
mbedtls_sha1_starts
(
mbedtls_sha1_context
*
ctx
)
¶
-
int
mbedtls_sha1_update
(
mbedtls_sha1_context
*
ctx
,
const
unsigned
char
*
input
,
size_t
ilen
)
¶
-
int
mbedtls_sha1_finish
(
mbedtls_sha1_context
*
ctx
,
unsigned
char
output
[
20
]
)
¶
-
void
mbedtls_sha1_init
(
mbedtls_sha1_context
*
ctx
)
¶
MBEDTLS IMPLEMENTATION HAL SHA1 TYPES ¶
- group MBEDTLS_IMPLEMENTATION_HAL_SHA1_TYPES
-
This file contains SHA-1 definitions and functions based on STM32 HASH hardware crypto accelerator.
The Secure Hash Algorithm 1 (SHA-1) cryptographic hash function is defined in FIPS 180-4: Secure Hash Standard (SHS) .
SHA-1 context structure definitions for mbedTLS HAL.
Warning
SHA-1 is considered a weak message digest and its use constitutes a security risk. We recommend considering stronger message digests instead.