-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull hash state into a structure, refactor include files
- Loading branch information
rongarret
committed
Jul 26, 2016
1 parent
622f1fe
commit 7692956
Showing
3 changed files
with
36 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#define FOR(i, n) for (i = 0; (int)i < (int)n; ++i) | ||
#define sv static void | ||
|
||
typedef unsigned char u8; | ||
typedef unsigned long u32; | ||
typedef unsigned long long u64; | ||
typedef long long i64; | ||
typedef i64 gf[16]; | ||
|
||
typedef const unsigned char * string; | ||
|
||
typedef struct { | ||
u8 h[64]; | ||
u64 msglen; | ||
u64 a[8], z[8]; | ||
u8 x[256]; | ||
} hash_state; | ||
|
||
int crypto_hash_stream(u8 *out, hash_state *hs); | ||
void spk2epk(u8 *epk, u8 *spk); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters