cryptnox-sdk-esp32 1.0.0
ESP32 SDK for Cryptnox Hardware Wallet
Loading...
Searching...
No Matches
keccak256.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: LGPL-3.0-or-later
3 * Copyright (c) 2026 Cryptnox SA
4 */
5
6#pragma once
7
8#include <stdint.h>
9#include <stddef.h>
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15/* Ethereum uses the original Keccak-256 (0x01 padding), NOT SHA3-256 (0x06). */
16void keccak256(const uint8_t *input, size_t length, uint8_t digest[32]);
17
18#ifdef __cplusplus
19}
20#endif
void keccak256(const uint8_t *input, size_t length, uint8_t digest[32])
Definition keccak256.cpp:85