blake2b384.h File Reference

BLAKE2b-384 hash function. More...

#include "core/crypto.h"
#include "hash/blake2b.h"

Go to the source code of this file.

Macros

#define BLAKE2B384_BLOCK_SIZE   128
 
#define BLAKE2B384_DIGEST_SIZE   48
 
#define BLAKE2B384_MIN_PAD_SIZE   0
 
#define BLAKE2B384_HASH_ALGO   (&blake2b384HashAlgo)
 

Typedefs

typedef Blake2bContext Blake2b384Context
 BLAKE2b-384 algorithm context. More...
 

Functions

error_t blake2b384Compute (const void *data, size_t length, uint8_t *digest)
 Digest a message using BLAKE2b-384. More...
 
void blake2b384Init (Blake2b384Context *context)
 Initialize BLAKE2b-384 hash computation. More...
 
void blake2b384Update (Blake2b384Context *context, const void *data, size_t length)
 Update BLAKE2b-384 hash computation. More...
 
void blake2b384Final (Blake2b384Context *context, uint8_t *digest)
 Finish BLAKE2b-384 hash computation. More...
 

Variables

const uint8_t BLAKE2B384_OID [11]
 
const HashAlgo blake2b384HashAlgo
 

Detailed Description

BLAKE2b-384 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.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
Version
2.4.0

Definition in file blake2b384.h.

Macro Definition Documentation

◆ BLAKE2B384_BLOCK_SIZE

#define BLAKE2B384_BLOCK_SIZE   128

Definition at line 39 of file blake2b384.h.

◆ BLAKE2B384_DIGEST_SIZE

#define BLAKE2B384_DIGEST_SIZE   48

Definition at line 41 of file blake2b384.h.

◆ BLAKE2B384_HASH_ALGO

#define BLAKE2B384_HASH_ALGO   (&blake2b384HashAlgo)

Definition at line 45 of file blake2b384.h.

◆ BLAKE2B384_MIN_PAD_SIZE

#define BLAKE2B384_MIN_PAD_SIZE   0

Definition at line 43 of file blake2b384.h.

Typedef Documentation

◆ Blake2b384Context

BLAKE2b-384 algorithm context.

Definition at line 57 of file blake2b384.h.

Function Documentation

◆ blake2b384Compute()

error_t blake2b384Compute ( const void *  data,
size_t  length,
uint8_t *  digest 
)

Digest a message using BLAKE2b-384.

Parameters
[in]dataPointer to the message being hashed
[in]lengthLength of the message
[out]digestPointer to the calculated digest
Returns
Error code

Definition at line 71 of file blake2b384.c.

◆ blake2b384Final()

void blake2b384Final ( Blake2b384Context context,
uint8_t *  digest 
)

Finish BLAKE2b-384 hash computation.

Parameters
[in]contextPointer to the BLAKE2b context
[out]digestCalculated digest (optional parameter)

Definition at line 110 of file blake2b384.c.

◆ blake2b384Init()

void blake2b384Init ( Blake2b384Context context)

Initialize BLAKE2b-384 hash computation.

Parameters
[in]contextPointer to the BLAKE2b context to initialize

Definition at line 83 of file blake2b384.c.

◆ blake2b384Update()

void blake2b384Update ( Blake2b384Context context,
const void *  data,
size_t  length 
)

Update BLAKE2b-384 hash computation.

Parameters
[in]contextPointer to the BLAKE2b context
[in]dataPointer to the buffer being hashed
[in]lengthLength of the buffer

Definition at line 97 of file blake2b384.c.

Variable Documentation

◆ BLAKE2B384_OID

const uint8_t BLAKE2B384_OID[11]
extern

Definition at line 42 of file blake2b384.c.

◆ blake2b384HashAlgo

const HashAlgo blake2b384HashAlgo
extern

Definition at line 45 of file blake2b384.c.