diff options
Diffstat (limited to 'tinySAK/src/tsk_sha1.h')
-rwxr-xr-x | tinySAK/src/tsk_sha1.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/tinySAK/src/tsk_sha1.h b/tinySAK/src/tsk_sha1.h index ff1e3d3..7c09005 100755 --- a/tinySAK/src/tsk_sha1.h +++ b/tinySAK/src/tsk_sha1.h @@ -2,19 +2,19 @@ * Copyright (C) 2010-2011 Mamadou Diop. * * Contact: Mamadou Diop <diopmamadou(at)doubango[dot]org> -* +* * This file is part of Open Source Doubango Framework. * * DOUBANGO 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 3 of the License, or * (at your option) any later version. -* +* * DOUBANGO 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 DOUBANGO. * @@ -37,8 +37,7 @@ TSK_BEGIN_DECLS /**@ingroup tsk_sha1_group * SHA-1 error codes. */ -typedef enum tsk_sha1_errcode_e -{ +typedef enum tsk_sha1_errcode_e { shaSuccess = 0, /**< Success */ shaNull, /**< Null pointer parameter */ shaInputTooLong, /**< input data too long */ @@ -90,20 +89,19 @@ typedef uint8_t tsk_sha1digest_t[TSK_SHA1_DIGEST_SIZE]; /**< SHA-1 digest bytes. * This structure will hold context information for the SHA-1 * hashing SSESSION */ -typedef struct tsk_sha1context_s -{ +typedef struct tsk_sha1context_s { uint32_t Intermediate_Hash[TSK_SHA1_DIGEST_SIZE/4]; /* Message Digest */ uint32_t Length_Low; /**< Message length in bits */ uint32_t Length_High; /**< Message length in bits */ - + int_least16_t Message_Block_Index;/**< Index into message block array */ uint8_t Message_Block[64]; /**< 512-bit message blocks */ int32_t Computed; /**< Is the digest computed? */ int32_t Corrupted; /**< Is the message digest corrupted? */ -} +} tsk_sha1context_t; /* |