summaryrefslogtreecommitdiff
path: root/blake2.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-04-19 11:59:21 -0400
committerJeffrey Walton <noloader@gmail.com>2016-04-19 11:59:21 -0400
commit50881b3fb35a9102195726a05be1b0b02070d54f (patch)
treea477db540e161239e5f0d4d9954b146f630a0338 /blake2.h
parentacd43c212f8afefa9dfeff00ef7a644b228eb076 (diff)
downloadcryptopp-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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/blake2.h b/blake2.h
index 12b4efb4..fe4628dd 100644
--- a/blake2.h
+++ b/blake2.h
@@ -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];
};