mbedTLS
+
0
/2 examples
SourceVu will show references to
mbedtls_sha256()
from the following samples and libraries:
ESP-IDF
aligenie_demo sample
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Arguments
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
mbedTLS
mbedtls_sha256()
mbedtls_sha256() function
This function calculates the SHA-224 or SHA-256 checksum of a buffer. The function allocates the context, performs the calculation, and frees the context. The SHA-256 result is calculated as output = SHA-256(input buffer).
Syntax
Show:
Summary
Declaration
Definition
from
sha256.h:167
int
mbedtls_sha256
(
const
unsigned
char
*
input
,
size_t
ilen
,
unsigned
char
*
output
,
int
is224
)
;
Implemented in
sha256.c:773
Arguments
Argument
Description
input
The buffer holding the data. This must be a readable buffer of length \p ilen Bytes.
ilen
The length of the input data in Bytes.
output
The SHA-224 or SHA-256 checksum result. This must be a writable buffer of length \c 32 bytes for SHA-256, \c 28 bytes for SHA-224.
is224
Determines which function to use. This must be either \c 0 for SHA-256, or \c 1 for SHA-224.
Return value
\c 0 on success. A negative error code on failure.
Examples
mbedtls_sha256()
is referenced by 2 libraries and example projects:
References
from
examples
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out