EVP_MD-SHAKE, EVP_MD-KECCAK-KMAC - The SHAKE / KECCAK family EVP_MD implementations
| Use Case | Command | Description |
|---|---|---|
| ๐งช Create SHAKE-128 context | EVP_MD_CTX_new() | Allocate new digest context |
| ๐ง Initialize digest | EVP_DigestInit_ex(ctx, EVP_shake128(), NULL) | Set SHAKE-128 algorithm |
| ๐ Set XOF output length | EVP_MD_CTX_set_params(ctx, params) with "xoflen" | Define variable output length |
| ๐ Update digest | EVP_DigestUpdate(ctx, data, len) | Feed data into digest |
| โ Finalize and get digest | EVP_DigestFinalXOF(ctx, md, &mdlen) | Obtain the extendable-output digest |
Support for computing SHAKE or KECCAK-KMAC digests through the EVP_MD API.
KECCAK-KMAC is a special digest that's used by the KMAC EVP_MAC implementation (see EVP_MAC-KMAC(7)).
KECCAK-KMAC-128 โ Known names are "KECCAK-KMAC-128" and "KECCAK-KMAC128"KECCAK-KMAC-256 โ Known names are "KECCAK-KMAC-256" and "KECCAK-KMAC256"SHAKE-128 โ Known names are "SHAKE-128" and "SHAKE128"SHAKE-256 โ Known names are "SHAKE-256" and "SHAKE256"This implementation supports the common gettable parameters described in EVP_MD-common(7).
These implementations support the following OSSL_PARAM(3) entries, settable for an EVP_MD_CTX with EVP_MD_CTX_set_params(3):
"xoflen" (OSSL_DIGEST_PARAM_XOFLEN) <unsigned integer> โ Sets the digest length for extendable output functions. The length of the "xoflen" parameter should not exceed that of a size_t.Copyright 2020 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
Generated by phpman v4.9.29 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-21 06:54 @2600:1f28:365:80b0:e9a9:ac35:f5fe:ea62
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format