|
cryptnox-pos 1.0.0
Standalone USDC payment terminal firmware (ESP32 + Cryptnox smart card)
|
Original Keccak-256 digest as used by Ethereum. More...
#include <stdint.h>#include <stddef.h>Go to the source code of this file.
Functions | |
| void | keccak256 (const uint8_t *input, size_t length, uint8_t digest[32]) |
| Compute the Keccak-256 digest of a buffer. | |
Original Keccak-256 digest as used by Ethereum.
Definition in file keccak256.h.
| void keccak256 | ( | const uint8_t * | input, |
| size_t | length, | ||
| uint8_t | digest[32] ) |
Compute the Keccak-256 digest of a buffer.
Ethereum uses the original Keccak-256 (0x01 padding), NOT the NIST-finalised SHA3-256 (0x06 padding).
| [in] | input | Input bytes (may be NULL only if length is 0). |
| [in] | length | Number of input bytes. |
| [out] | digest | 32-byte output digest. |
Definition at line 120 of file keccak256.cpp.
References keccak_f1600(), KECCAK_RATE, and KECCAK_STATE_LANE.
Referenced by admin_derive(), card_read_payouts(), eth_addr_format(), eth_addr_parse(), and sign_and_broadcast().