BLAKE2s-224 hash function. More...
Go to the source code of this file.
Macros | |
#define | BLAKE2S224_BLOCK_SIZE 64 |
#define | BLAKE2S224_DIGEST_SIZE 28 |
#define | BLAKE2S224_MIN_PAD_SIZE 0 |
#define | BLAKE2S224_HASH_ALGO (&blake2s224HashAlgo) |
Typedefs | |
typedef Blake2sContext | Blake2s224Context |
BLAKE2s-224 algorithm context. More... | |
Functions | |
error_t | blake2s224Compute (const void *data, size_t length, uint8_t *digest) |
Digest a message using BLAKE2s-224. More... | |
void | blake2s224Init (Blake2s224Context *context) |
Initialize BLAKE2s-224 hash computation. More... | |
void | blake2s224Update (Blake2s224Context *context, const void *data, size_t length) |
Update BLAKE2s-224 hash computation. More... | |
void | blake2s224Final (Blake2s224Context *context, uint8_t *digest) |
Finish BLAKE2s-224 hash computation. More... | |
Variables | |
const uint8_t | BLAKE2S224_OID [11] |
const HashAlgo | blake2s224HashAlgo |
Detailed Description
BLAKE2s-224 hash function.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2024 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.4.4
Definition in file blake2s224.h.
Macro Definition Documentation
◆ BLAKE2S224_BLOCK_SIZE
#define BLAKE2S224_BLOCK_SIZE 64 |
Definition at line 39 of file blake2s224.h.
◆ BLAKE2S224_DIGEST_SIZE
#define BLAKE2S224_DIGEST_SIZE 28 |
Definition at line 41 of file blake2s224.h.
◆ BLAKE2S224_HASH_ALGO
#define BLAKE2S224_HASH_ALGO (&blake2s224HashAlgo) |
Definition at line 45 of file blake2s224.h.
◆ BLAKE2S224_MIN_PAD_SIZE
#define BLAKE2S224_MIN_PAD_SIZE 0 |
Definition at line 43 of file blake2s224.h.
Typedef Documentation
◆ Blake2s224Context
typedef Blake2sContext Blake2s224Context |
BLAKE2s-224 algorithm context.
Definition at line 57 of file blake2s224.h.
Function Documentation
◆ blake2s224Compute()
error_t blake2s224Compute | ( | const void * | data, |
size_t | length, | ||
uint8_t * | digest | ||
) |
Digest a message using BLAKE2s-224.
- 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 71 of file blake2s224.c.
◆ blake2s224Final()
void blake2s224Final | ( | Blake2s224Context * | context, |
uint8_t * | digest | ||
) |
Finish BLAKE2s-224 hash computation.
- Parameters
-
[in] context Pointer to the BLAKE2s context [out] digest Calculated digest (optional parameter)
Definition at line 110 of file blake2s224.c.
◆ blake2s224Init()
void blake2s224Init | ( | Blake2s224Context * | context | ) |
Initialize BLAKE2s-224 hash computation.
- Parameters
-
[in] context Pointer to the BLAKE2s context to initialize
Definition at line 83 of file blake2s224.c.
◆ blake2s224Update()
void blake2s224Update | ( | Blake2s224Context * | context, |
const void * | data, | ||
size_t | length | ||
) |
Update BLAKE2s-224 hash computation.
- Parameters
-
[in] context Pointer to the BLAKE2s context [in] data Pointer to the buffer being hashed [in] length Length of the buffer
Definition at line 97 of file blake2s224.c.
Variable Documentation
◆ BLAKE2S224_OID
|
extern |
Definition at line 42 of file blake2s224.c.
◆ blake2s224HashAlgo
|
extern |
Definition at line 45 of file blake2s224.c.