SHAKE128/256 hash function. More...
Go to the source code of this file.
Macros | |
| #define | SHAKE128_256_BLOCK_SIZE 168 |
| #define | SHAKE128_256_DIGEST_SIZE 32 |
| #define | SHAKE128_256_MIN_PAD_SIZE 1 |
| #define | SHAKE128_256_HASH_ALGO (&shake128_256HashAlgo) |
Typedefs | |
| typedef ShakeContext | Shake128_256Context |
| SHAKE128/256 algorithm context. More... | |
Functions | |
| error_t | shake128_256Compute (const void *data, size_t length, uint8_t *digest) |
| Digest a message using SHAKE128/256. More... | |
| void | shake128_256Init (Shake128_256Context *context) |
| Initialize SHAKE128/256 message digest context. More... | |
| void | shake128_256Update (Shake128_256Context *context, const void *data, size_t length) |
| Update the SHAKE128/256 context with a portion of the message being hashed. More... | |
| void | shake128_256Final (Shake128_256Context *context, uint8_t *digest) |
| Finish the SHAKE128/256 message digest. More... | |
Variables | |
| const HashAlgo | shake128_256HashAlgo |
Detailed Description
SHAKE128/256 hash function.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2026 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneCRYPTO Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version
- 2.6.6
Definition in file shake128_256.h.
Macro Definition Documentation
◆ SHAKE128_256_BLOCK_SIZE
| #define SHAKE128_256_BLOCK_SIZE 168 |
Definition at line 39 of file shake128_256.h.
◆ SHAKE128_256_DIGEST_SIZE
| #define SHAKE128_256_DIGEST_SIZE 32 |
Definition at line 41 of file shake128_256.h.
◆ SHAKE128_256_HASH_ALGO
| #define SHAKE128_256_HASH_ALGO (&shake128_256HashAlgo) |
Definition at line 45 of file shake128_256.h.
◆ SHAKE128_256_MIN_PAD_SIZE
| #define SHAKE128_256_MIN_PAD_SIZE 1 |
Definition at line 43 of file shake128_256.h.
Typedef Documentation
◆ Shake128_256Context
| typedef ShakeContext Shake128_256Context |
SHAKE128/256 algorithm context.
Definition at line 57 of file shake128_256.h.
Function Documentation
◆ shake128_256Compute()
| error_t shake128_256Compute | ( | const void * | data, |
| size_t | length, | ||
| uint8_t * | digest | ||
| ) |
Digest a message using SHAKE128/256.
- Parameters
-
[in] data Pointer to the message being hashed [in] length Length of the message [out] digest Pointer to the calculated digest
- Returns
- Error code
Definition at line 68 of file shake128_256.c.
◆ shake128_256Final()
| void shake128_256Final | ( | Shake128_256Context * | context, |
| uint8_t * | digest | ||
| ) |
Finish the SHAKE128/256 message digest.
- Parameters
-
[in] context Pointer to the SHAKE128/256 context [out] digest Calculated digest
Definition at line 140 of file shake128_256.c.
◆ shake128_256Init()
| void shake128_256Init | ( | Shake128_256Context * | context | ) |
Initialize SHAKE128/256 message digest context.
- Parameters
-
[in] context Pointer to the SHAKE128/256 context to initialize
Definition at line 113 of file shake128_256.c.
◆ shake128_256Update()
| void shake128_256Update | ( | Shake128_256Context * | context, |
| const void * | data, | ||
| size_t | length | ||
| ) |
Update the SHAKE128/256 context with a portion of the message being hashed.
- Parameters
-
[in] context Pointer to the SHAKE128/256 context [in] data Pointer to the buffer being hashed [in] length Length of the buffer
Definition at line 127 of file shake128_256.c.
Variable Documentation
◆ shake128_256HashAlgo
|
extern |
Definition at line 42 of file shake128_256.c.
