moe clang-format
This commit is contained in:
parent
51f6b063d6
commit
1b5ae955d2
src
@ -22,22 +22,19 @@ enum blake2s_constant {
|
||||
BLAKE2S_PERSONALBYTES = 8
|
||||
};
|
||||
|
||||
|
||||
struct blake2s_param {
|
||||
unsigned char digest_length;
|
||||
unsigned char key_length;
|
||||
unsigned char fanout;
|
||||
unsigned char depth;
|
||||
ulong32 leaf_length;
|
||||
unsigned char node_offset[6];
|
||||
unsigned char node_depth;
|
||||
unsigned char inner_length;
|
||||
unsigned char salt[BLAKE2S_SALTBYTES];
|
||||
unsigned char personal[BLAKE2S_PERSONALBYTES];
|
||||
unsigned char digest_length;
|
||||
unsigned char key_length;
|
||||
unsigned char fanout;
|
||||
unsigned char depth;
|
||||
ulong32 leaf_length;
|
||||
unsigned char node_offset[6];
|
||||
unsigned char node_depth;
|
||||
unsigned char inner_length;
|
||||
unsigned char salt[BLAKE2S_SALTBYTES];
|
||||
unsigned char personal[BLAKE2S_PERSONALBYTES];
|
||||
};
|
||||
|
||||
|
||||
|
||||
const struct ltc_hash_descriptor blake2s_256_desc =
|
||||
{
|
||||
"blake2s_256",
|
||||
@ -53,7 +50,6 @@ const struct ltc_hash_descriptor blake2s_256_desc =
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
const struct ltc_hash_descriptor blake2s_224_desc =
|
||||
{
|
||||
"blake2s_224",
|
||||
@ -84,7 +80,6 @@ const struct ltc_hash_descriptor blake2s_160_desc =
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
const struct ltc_hash_descriptor blake2s_128_desc =
|
||||
{
|
||||
"blake2s_128",
|
||||
@ -100,8 +95,6 @@ const struct ltc_hash_descriptor blake2s_128_desc =
|
||||
NULL
|
||||
};
|
||||
|
||||
|
||||
|
||||
static const ulong32 blake2s_IV[8] = {
|
||||
0x6A09E667UL, 0xBB67AE85UL, 0x3C6EF372UL, 0xA54FF53AUL,
|
||||
0x510E527FUL, 0x9B05688CUL, 0x1F83D9ABUL, 0x5BE0CD19UL
|
||||
|
@ -115,8 +115,7 @@ struct chc_state {
|
||||
|
||||
|
||||
#ifdef LTC_BLAKE2S
|
||||
|
||||
struct blake2s_state {
|
||||
struct blake2s_state {
|
||||
ulong32 h[8];
|
||||
ulong32 t[2];
|
||||
ulong32 f[2];
|
||||
@ -124,8 +123,7 @@ struct chc_state {
|
||||
ulong32 curlen;
|
||||
unsigned char outlen;
|
||||
unsigned char last_node;
|
||||
};
|
||||
|
||||
};
|
||||
#endif
|
||||
|
||||
typedef union Hash_state {
|
||||
|
Loading…
Reference in New Issue
Block a user