Skip to content

Commit bf2d9c8

Browse files
author
limxdev
committed
Travis
1 parent a552c19 commit bf2d9c8

3 files changed

Lines changed: 29 additions & 30 deletions

File tree

src/crypto/gost_streebog.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ extern "C"{
7070

7171
typedef struct {
7272
#ifndef DOXYGEN_IGNORE
73-
unsigned char buf[32]; /* first field, for alignment */
74-
size_t ptr;
75-
sph_u32 V[3][8];
73+
unsigned char buf[32]; /* first field, for alignment */
74+
size_t ptr;
75+
sph_u32 V[3][8];
7676
#endif
7777
} sph_gost256_context;
7878

@@ -81,9 +81,9 @@ typedef struct {
8181
*/
8282
typedef struct {
8383
#ifndef DOXYGEN_IGNORE
84-
unsigned char buf[64]; /* first field, for alignment */
85-
size_t ptr;
86-
sph_u32 V[5][8];
84+
unsigned char buf[64]; /* first field, for alignment */
85+
size_t ptr;
86+
sph_u32 V[5][8];
8787
#endif
8888
} sph_gost512_context;
8989

@@ -131,7 +131,7 @@ void sph_gost256_close(void *cc, void *dst);
131131
* @param dst the destination buffer
132132
*/
133133
void sph_gost256_addbits_and_close(
134-
void *cc, unsigned ub, unsigned n, void *dst);
134+
void *cc, unsigned ub, unsigned n, void *dst);
135135

136136
/**
137137
* Initialize a Gost-512 context. This process performs no memory allocation.
@@ -176,7 +176,7 @@ void sph_gost512_close(void *cc, void *dst);
176176
* @param dst the destination buffer
177177
*/
178178
void sph_gost512_addbits_and_close(
179-
void *cc, unsigned ub, unsigned n, void *dst);
179+
void *cc, unsigned ub, unsigned n, void *dst);
180180

181181
#ifdef __cplusplus
182182
}

src/crypto/mega-btx.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,12 @@ inline uint256 Mega_Btx(const T1 pbegin, const T1 pend,uint32_t timestamp)
6767
sph_gost512_context ctx_gost;
6868
sph_haval256_5_context ctx_haval;
6969
//sph_tiger_context ctx_tiger;
70-
// static std::chrono::duration<double>[16];
70+
//static std::chrono::duration<double>[16];
7171
static unsigned char pblank[1];
7272
arith_uint512 hash[23];
7373
uint32_t permutation_1[HASH_FUNC_COUNT_1];
7474
uint32_t permutation_2[HASH_FUNC_COUNT_2 + HASH_FUNC_COUNT_1];
7575
uint32_t permutation_3[HASH_FUNC_COUNT_3 + HASH_FUNC_COUNT_2 + HASH_FUNC_COUNT_1];
76-
7776
//Init1
7877
for (uint32_t i = 1; i < HASH_FUNC_COUNT_1; i++) {
7978
permutation_1[i] = i;

src/crypto/sph_haval.h

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ extern "C"{
155155
*/
156156
typedef struct {
157157
#ifndef DOXYGEN_IGNORE
158-
unsigned char buf[128]; /* first field, for alignment */
159-
sph_u32 s0, s1, s2, s3, s4, s5, s6, s7;
160-
unsigned olen, passes;
158+
unsigned char buf[128]; /* first field, for alignment */
159+
sph_u32 s0, s1, s2, s3, s4, s5, s6, s7;
160+
unsigned olen, passes;
161161
#if SPH_64
162-
sph_u64 count;
162+
sph_u64 count;
163163
#else
164-
sph_u32 count_high, count_low;
164+
sph_u32 count_high, count_low;
165165
#endif
166166
#endif
167167
} sph_haval_context;
@@ -285,7 +285,7 @@ void sph_haval128_3_close(void *cc, void *dst);
285285
* @param dst the output buffer
286286
*/
287287
void sph_haval128_3_addbits_and_close(void *cc,
288-
unsigned ub, unsigned n, void *dst);
288+
unsigned ub, unsigned n, void *dst);
289289

290290
/**
291291
* Initialize the context for HAVAL-128/4.
@@ -331,7 +331,7 @@ void sph_haval128_4_close(void *cc, void *dst);
331331
* @param dst the output buffer
332332
*/
333333
void sph_haval128_4_addbits_and_close(void *cc,
334-
unsigned ub, unsigned n, void *dst);
334+
unsigned ub, unsigned n, void *dst);
335335

336336
/**
337337
* Initialize the context for HAVAL-128/5.
@@ -377,7 +377,7 @@ void sph_haval128_5_close(void *cc, void *dst);
377377
* @param dst the output buffer
378378
*/
379379
void sph_haval128_5_addbits_and_close(void *cc,
380-
unsigned ub, unsigned n, void *dst);
380+
unsigned ub, unsigned n, void *dst);
381381

382382
/**
383383
* Initialize the context for HAVAL-160/3.
@@ -423,7 +423,7 @@ void sph_haval160_3_close(void *cc, void *dst);
423423
* @param dst the output buffer
424424
*/
425425
void sph_haval160_3_addbits_and_close(void *cc,
426-
unsigned ub, unsigned n, void *dst);
426+
unsigned ub, unsigned n, void *dst);
427427

428428
/**
429429
* Initialize the context for HAVAL-160/4.
@@ -469,7 +469,7 @@ void sph_haval160_4_close(void *cc, void *dst);
469469
* @param dst the output buffer
470470
*/
471471
void sph_haval160_3_addbits_and_close(void *cc,
472-
unsigned ub, unsigned n, void *dst);
472+
unsigned ub, unsigned n, void *dst);
473473

474474
/**
475475
* Initialize the context for HAVAL-160/5.
@@ -515,7 +515,7 @@ void sph_haval160_5_close(void *cc, void *dst);
515515
* @param dst the output buffer
516516
*/
517517
void sph_haval160_5_addbits_and_close(void *cc,
518-
unsigned ub, unsigned n, void *dst);
518+
unsigned ub, unsigned n, void *dst);
519519

520520
/**
521521
* Initialize the context for HAVAL-192/3.
@@ -561,7 +561,7 @@ void sph_haval192_3_close(void *cc, void *dst);
561561
* @param dst the output buffer
562562
*/
563563
void sph_haval192_3_addbits_and_close(void *cc,
564-
unsigned ub, unsigned n, void *dst);
564+
unsigned ub, unsigned n, void *dst);
565565

566566
/**
567567
* Initialize the context for HAVAL-192/4.
@@ -607,7 +607,7 @@ void sph_haval192_4_close(void *cc, void *dst);
607607
* @param dst the output buffer
608608
*/
609609
void sph_haval192_4_addbits_and_close(void *cc,
610-
unsigned ub, unsigned n, void *dst);
610+
unsigned ub, unsigned n, void *dst);
611611

612612
/**
613613
* Initialize the context for HAVAL-192/5.
@@ -653,7 +653,7 @@ void sph_haval192_5_close(void *cc, void *dst);
653653
* @param dst the output buffer
654654
*/
655655
void sph_haval192_5_addbits_and_close(void *cc,
656-
unsigned ub, unsigned n, void *dst);
656+
unsigned ub, unsigned n, void *dst);
657657

658658
/**
659659
* Initialize the context for HAVAL-224/3.
@@ -699,7 +699,7 @@ void sph_haval224_3_close(void *cc, void *dst);
699699
* @param dst the output buffer
700700
*/
701701
void sph_haval224_3_addbits_and_close(void *cc,
702-
unsigned ub, unsigned n, void *dst);
702+
unsigned ub, unsigned n, void *dst);
703703

704704
/**
705705
* Initialize the context for HAVAL-224/4.
@@ -745,7 +745,7 @@ void sph_haval224_4_close(void *cc, void *dst);
745745
* @param dst the output buffer
746746
*/
747747
void sph_haval224_4_addbits_and_close(void *cc,
748-
unsigned ub, unsigned n, void *dst);
748+
unsigned ub, unsigned n, void *dst);
749749

750750
/**
751751
* Initialize the context for HAVAL-224/5.
@@ -791,7 +791,7 @@ void sph_haval224_5_close(void *cc, void *dst);
791791
* @param dst the output buffer
792792
*/
793793
void sph_haval224_5_addbits_and_close(void *cc,
794-
unsigned ub, unsigned n, void *dst);
794+
unsigned ub, unsigned n, void *dst);
795795

796796
/**
797797
* Initialize the context for HAVAL-256/3.
@@ -837,7 +837,7 @@ void sph_haval256_3_close(void *cc, void *dst);
837837
* @param dst the output buffer
838838
*/
839839
void sph_haval256_3_addbits_and_close(void *cc,
840-
unsigned ub, unsigned n, void *dst);
840+
unsigned ub, unsigned n, void *dst);
841841

842842
/**
843843
* Initialize the context for HAVAL-256/4.
@@ -883,7 +883,7 @@ void sph_haval256_4_close(void *cc, void *dst);
883883
* @param dst the output buffer
884884
*/
885885
void sph_haval256_4_addbits_and_close(void *cc,
886-
unsigned ub, unsigned n, void *dst);
886+
unsigned ub, unsigned n, void *dst);
887887

888888
/**
889889
* Initialize the context for HAVAL-256/5.
@@ -929,7 +929,7 @@ void sph_haval256_5_close(void *cc, void *dst);
929929
* @param dst the output buffer
930930
*/
931931
void sph_haval256_5_addbits_and_close(void *cc,
932-
unsigned ub, unsigned n, void *dst);
932+
unsigned ub, unsigned n, void *dst);
933933

934934
/**
935935
* Apply the HAVAL compression function on the provided data. The

0 commit comments

Comments
 (0)