tiger.h File Reference

Tiger hash function. More...

#include "core/crypto.h"

Go to the source code of this file.

Data Structures

struct  TigerContext
 Tiger algorithm context. More...
 

Macros

#define TIGER_BLOCK_SIZE   64
 
#define TIGER_DIGEST_SIZE   24
 
#define TIGER_OID   tigerOid
 
#define TIGER_HASH_ALGO   (&tigerHashAlgo)
 

Functions

error_t tigerCompute (const void *data, size_t length, uint8_t *digest)
 Digest a message using Tiger. More...
 
void tigerInit (TigerContext *context)
 Initialize Tiger message digest context. More...
 
void tigerUpdate (TigerContext *context, const void *data, size_t length)
 Update the Tiger context with a portion of the message being hashed. More...
 
void tigerFinal (TigerContext *context, uint8_t *digest)
 Finish the Tiger message digest. More...
 
void tigerProcessBlock (TigerContext *context)
 Process message in 16-word blocks. More...
 

Variables

const uint8_t tigerOid [9]
 
const HashAlgo tigerHashAlgo
 

Detailed Description

Tiger hash function.

License

Copyright (C) 2010-2018 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
1.9.0

Definition in file tiger.h.

Macro Definition Documentation

◆ TIGER_BLOCK_SIZE

#define TIGER_BLOCK_SIZE   64

Definition at line 36 of file tiger.h.

◆ TIGER_DIGEST_SIZE

#define TIGER_DIGEST_SIZE   24

Definition at line 38 of file tiger.h.

◆ TIGER_HASH_ALGO

#define TIGER_HASH_ALGO   (&tigerHashAlgo)

Definition at line 42 of file tiger.h.

◆ TIGER_OID

#define TIGER_OID   tigerOid

Definition at line 40 of file tiger.h.

Function Documentation

◆ tigerCompute()

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

Digest a message using Tiger.

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 381 of file tiger.c.

◆ tigerFinal()

void tigerFinal ( TigerContext context,
uint8_t *  digest 
)

Finish the Tiger message digest.

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

Definition at line 468 of file tiger.c.

◆ tigerInit()

void tigerInit ( TigerContext context)

Initialize Tiger message digest context.

Parameters
[in]contextPointer to the Tiger context to initialize

Definition at line 408 of file tiger.c.

◆ tigerProcessBlock()

void tigerProcessBlock ( TigerContext context)

Process message in 16-word blocks.

Parameters
[in]contextPointer to the Tiger context

Definition at line 507 of file tiger.c.

◆ tigerUpdate()

void tigerUpdate ( TigerContext context,
const void *  data,
size_t  length 
)

Update the Tiger context with a portion of the message being hashed.

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

Definition at line 429 of file tiger.c.

Variable Documentation

◆ tigerHashAlgo

const HashAlgo tigerHashAlgo

Definition at line 358 of file tiger.c.

◆ tigerOid

const uint8_t tigerOid[9]

Definition at line 355 of file tiger.c.