BLAKE2 cryptographic hash and MAC (BLAKE2b variant) More...
#include "core/crypto.h"
Go to the source code of this file.
Data Structures | |
struct | Blake2bContext |
BLAKE2b algorithm context. More... | |
Macros | |
#define | BLAKE2B_BLOCK_SIZE 128 |
Functions | |
error_t | blake2bCompute (const void *key, size_t keyLen, const void *data, size_t dataLen, uint8_t *digest, size_t digestLen) |
Digest a message using BLAKE2b. More... | |
error_t | blake2bInit (Blake2bContext *context, const void *key, size_t keyLen, size_t digestLen) |
Initialize BLAKE2b message digest context. More... | |
void | blake2bUpdate (Blake2bContext *context, const void *data, size_t length) |
Update the BLAKE2b context with a portion of the message being hashed. More... | |
void | blake2bFinal (Blake2bContext *context, uint8_t *digest) |
Finish the BLAKE2b message digest. More... | |
void | blake2bProcessBlock (Blake2bContext *context, bool_t last) |
Compression function F. More... | |
Detailed Description
BLAKE2 cryptographic hash and MAC (BLAKE2b variant)
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 blake2b.h.
Macro Definition Documentation
◆ BLAKE2B_BLOCK_SIZE
Function Documentation
◆ blake2bCompute()
error_t blake2bCompute | ( | const void * | key, |
size_t | keyLen, | ||
const void * | data, | ||
size_t | dataLen, | ||
uint8_t * | digest, | ||
size_t | digestLen | ||
) |
Digest a message using BLAKE2b.
- Parameters
-
[in] key Pointer to the key [in] keyLen Length of the key [in] data Pointer to the message being hashed [in] dataLen Length of the message [out] digest Pointer to the calculated digest [in] digestLen Expected length of the digest
- Returns
- Error code
◆ blake2bFinal()
void blake2bFinal | ( | Blake2bContext * | context, |
uint8_t * | digest | ||
) |
◆ blake2bInit()
error_t blake2bInit | ( | Blake2bContext * | context, |
const void * | key, | ||
size_t | keyLen, | ||
size_t | digestLen | ||
) |
◆ blake2bProcessBlock()
void blake2bProcessBlock | ( | Blake2bContext * | context, |
bool_t | last | ||
) |
◆ blake2bUpdate()
void blake2bUpdate | ( | Blake2bContext * | context, |
const void * | data, | ||
size_t | length | ||
) |