BLAKE2b-160 hash function. More...
Go to the source code of this file.
Macros | |
#define | TRACE_LEVEL CRYPTO_TRACE_LEVEL |
Functions | |
error_t | blake2b160Compute (const void *data, size_t length, uint8_t *digest) |
Digest a message using BLAKE2b-160. More... | |
void | blake2b160Init (Blake2b160Context *context) |
Initialize BLAKE2b-160 hash computation. More... | |
void | blake2b160Update (Blake2b160Context *context, const void *data, size_t length) |
Update BLAKE2b-160 hash computation. More... | |
void | blake2b160Final (Blake2b160Context *context, uint8_t *digest) |
Finish BLAKE2b-160 hash computation. More... | |
Variables | |
const uint8_t | BLAKE2B160_OID [11] = {0x43, 0x06, 0x01, 0x04, 0x01, 0x8D, 0x3A, 0x0C, 0x02, 0x01, 0x05} |
const HashAlgo | blake2b160HashAlgo |
Detailed Description
BLAKE2b-160 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 blake2b160.c.
Macro Definition Documentation
◆ TRACE_LEVEL
#define TRACE_LEVEL CRYPTO_TRACE_LEVEL |
Definition at line 32 of file blake2b160.c.
Function Documentation
◆ blake2b160Compute()
error_t blake2b160Compute | ( | const void * | data, |
size_t | length, | ||
uint8_t * | digest | ||
) |
Digest a message using BLAKE2b-160.
- 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 blake2b160.c.
◆ blake2b160Final()
void blake2b160Final | ( | Blake2b160Context * | context, |
uint8_t * | digest | ||
) |
Finish BLAKE2b-160 hash computation.
- Parameters
-
[in] context Pointer to the BLAKE2b context [out] digest Calculated digest (optional parameter)
Definition at line 110 of file blake2b160.c.
◆ blake2b160Init()
void blake2b160Init | ( | Blake2b160Context * | context | ) |
Initialize BLAKE2b-160 hash computation.
- Parameters
-
[in] context Pointer to the BLAKE2b context to initialize
Definition at line 83 of file blake2b160.c.
◆ blake2b160Update()
void blake2b160Update | ( | Blake2b160Context * | context, |
const void * | data, | ||
size_t | length | ||
) |
Update BLAKE2b-160 hash computation.
- Parameters
-
[in] context Pointer to the BLAKE2b context [in] data Pointer to the buffer being hashed [in] length Length of the buffer
Definition at line 97 of file blake2b160.c.
Variable Documentation
◆ BLAKE2B160_OID
const uint8_t BLAKE2B160_OID[11] = {0x43, 0x06, 0x01, 0x04, 0x01, 0x8D, 0x3A, 0x0C, 0x02, 0x01, 0x05} |
Definition at line 42 of file blake2b160.c.
◆ blake2b160HashAlgo
const HashAlgo blake2b160HashAlgo |
Definition at line 45 of file blake2b160.c.