mirror of
https://github.com/GOSTSec/gostcoin
synced 2025-01-19 19:20:02 +00:00
faster hash calculation
This commit is contained in:
parent
07e092a570
commit
4255d57943
1368
src/Gost.cpp
1368
src/Gost.cpp
File diff suppressed because it is too large
Load Diff
15
src/Gost.h
15
src/Gost.h
@ -1,3 +1,10 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2013-2017, The PurpleI2P Project
|
||||||
|
*
|
||||||
|
* This file is part of Purple i2pd project and licensed under BSD3
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef GOST_H__
|
#ifndef GOST_H__
|
||||||
#define GOST_H__
|
#define GOST_H__
|
||||||
|
|
||||||
@ -48,14 +55,6 @@ namespace crypto
|
|||||||
// Big Endian
|
// Big Endian
|
||||||
void GOSTR3411_2012_256 (const uint8_t * buf, size_t len, uint8_t * digest);
|
void GOSTR3411_2012_256 (const uint8_t * buf, size_t len, uint8_t * digest);
|
||||||
void GOSTR3411_2012_512 (const uint8_t * buf, size_t len, uint8_t * digest);
|
void GOSTR3411_2012_512 (const uint8_t * buf, size_t len, uint8_t * digest);
|
||||||
|
|
||||||
// Little Endian
|
|
||||||
struct GOSTR3411_2012_CTX;
|
|
||||||
GOSTR3411_2012_CTX * GOSTR3411_2012_CTX_new ();
|
|
||||||
void GOSTR3411_2012_CTX_Init (GOSTR3411_2012_CTX * ctx, bool is512 = true);
|
|
||||||
void GOSTR3411_2012_CTX_Update (const uint8_t * buf, size_t len, GOSTR3411_2012_CTX * ctx);
|
|
||||||
void GOSTR3411_2012_CTX_Finish (uint8_t * digest, GOSTR3411_2012_CTX * ctx);
|
|
||||||
void GOSTR3411_2012_CTX_free (GOSTR3411_2012_CTX * ctx);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user