diff options
author | Jeffrey Walton <noloader@gmail.com> | 2016-04-19 11:59:21 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2016-04-19 11:59:21 -0400 |
commit | 50881b3fb35a9102195726a05be1b0b02070d54f (patch) | |
tree | a477db540e161239e5f0d4d9954b146f630a0338 /blake2.h | |
parent | acd43c212f8afefa9dfeff00ef7a644b228eb076 (diff) | |
download | cryptopp-git-50881b3fb35a9102195726a05be1b0b02070d54f.tar.gz |
Enable BLAKE2_SSE2_Compress32 and BLAKE2_SSE4_Compress32. Add static function pointer for one-time initialization
Diffstat (limited to 'blake2.h')
-rw-r--r-- | blake2.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,5 @@ -// blake2.cpp - written and placed in the public domain by Jeffrey Walton and Zooko Wilcox-O'Hearn
+// blake2.cpp - written and placed in the public domain by Jeffrey Walton and Zooko
+// Wilcox-O'Hearn. Copyright assigned to the Crypto++ project.
// Based on Aumasson, Neves, Wilcox-O’Hearn and Winnerlein's reference BLAKE2
// implementation at http://github.com/BLAKE2/BLAKE2.
@@ -165,7 +166,8 @@ struct CRYPTOPP_NO_VTABLE BLAKE2_State memset(this, 0x00, sizeof(*this)-sizeof(buffer));
}
- W t[2], h[8], f[2];
+ // SSE2 and SSE4 depend upon t[] and f[] being side-by-side
+ W h[8], t[2], f[2];
size_t length;
byte buffer[BLOCKSIZE];
};
|