Go to the source code of this file.
◆ LC_SHA256_CTX_ON_STACK
#define LC_SHA256_CTX_ON_STACK |
( |
| name | ) |
|
Value: _Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Wvla\"") _Pragma( \
"GCC diagnostic ignored \"-Wdeclaration-after-statement\"") \
LC_HASH_COMMON_ALIGNMENT); \
struct lc_hash_ctx *name = (struct lc_hash_ctx *)name##_ctx_buf; \
LC_SHA256_CTX(name); \
_Pragma("GCC diagnostic pop")
#define LC_ALIGNED_BUFFER(name, size, alignment)
Allocate aligned stack memory.
Allocate stack memory for the SHA256 context without VLA.
- Parameters
-
[in] | name | Name of the stack variable |
Definition at line 58 of file lc_sha256.h.
◆ lc_sha256
SHA2-256 algorithm reference.