1
1
mirror of https://github.com/BLAKE2/BLAKE2 synced 2024-11-23 02:42:10 +01:00
Commit Graph

41 Commits

Author SHA1 Message Date
sean-sn
75c6ae28fb Updated Blake2s code to match diagonal shuffle tweak done in blake2-avx for Blake2b 2019-07-22 15:02:28 -04:00
mjvk
cf068aafd6
Update cast of load16
Bitwise operations promote the cast to uint16_t to int. So to be consistent, first cast to uint to keep unsignedness and prevent implicit promotion. Then cast back to uint16_t after all bitwise operations are completed. 

This prevents compiler warnings, unneccessary casts and in the case of right shifting (not the case here) unexpected behaviour.
2018-05-09 11:47:06 +01:00
Samuel Neves
5cbb39c9ef issue #41 2017-03-07 18:42:27 +00:00
JP Aumasson
7728c30896 keylength=0 in B2 instances in b2x* 2016-12-03 10:50:38 +01:00
Pádraig Brady
2407e7a40a maint: strip various trailing whitespace
This falls afoul of various commit git commit hooks,
so strip trailing whitespace at EOL and EOF.
2016-11-09 21:34:46 +00:00
Samuel Neves
a90684ab3f Address bug with small blake2*p output sizes (see #36) 2016-11-09 20:41:14 +00:00
Samuel Neves
5522bb2325 unkeyed api 2016-10-12 17:55:15 +01:00
JP Aumasson
ee9e22ba34 consistency 2016-10-12 18:08:51 +02:00
JP Aumasson
2a22fad500 check final return value 2016-10-12 18:05:37 +02:00
Samuel Neves
c19dd2bd83 formatting, more c89 2016-10-12 15:19:55 +01:00
JP Aumasson
7a39ee4736 c89 compliance 2016-10-12 10:22:17 +02:00
JP Aumasson
f5c56ea028 -Wall, clean kats 2016-10-12 10:15:41 +02:00
Samuel Neves
de31f550f3 replace some c99isms 2016-10-11 22:12:43 +01:00
Samuel Neves
cb19577245 missing adjustments 2016-10-11 22:03:29 +01:00
JP Aumasson
8b6442c3af sse genkats 2016-10-11 22:55:35 +02:00
JP Aumasson
25f38cbc5e b2x added to sse/ 2016-10-11 22:54:18 +02:00
Samuel Neves
88df903283 remove unused code, vars 2016-06-11 17:58:17 +01:00
Samuel Neves
ab60beb7a1 adjust api in kats 2016-06-11 12:47:20 +01:00
Samuel Neves
932be4e9f5 outlen in blake2xx_final should be the output buffer size, not the hash length 2016-06-11 12:42:46 +01:00
Samuel Neves
64cafcff16 test streaming api 2016-06-11 12:22:35 +01:00
Samuel Neves
8a007c8cbb consistent counter type 2016-06-11 12:05:52 +01:00
Samuel Neves
86f24fed10 api cleanup, sse edition 2016-06-11 11:11:20 +01:00
Samuel Neves
259e61dede api cleanup 2016-06-11 10:29:09 +01:00
Samuel Neves
e971a0428f more tyding up 2016-06-11 00:06:51 +01:00
Samuel Neves
ef9d717e46 tidy up 2016-06-10 23:56:26 +01:00
Samuel Neves
24d4cc2ea6 fix conflicts 2016-06-10 22:27:28 +01:00
Samuel Neves
d511746787 fix kat paths; better sse2 detection 2016-06-10 11:37:44 +01:00
JP Aumasson
eec32b7170 sse kats, reorg 2016-04-22 22:12:08 +02:00
Christian Heimes
81a1bcf245 Make BLAKE2 code C89 and MSVC friendly
This patch makes the BLAKE2 reference implementation compatible with C89
compilers and MSVC.

1) Use C comments (/* */) instead of C++ comments.
2) No declarations after statements. All variables are declared on the
   top of a block.
3) Optional inline with BLAKE2_LOCAL_INLINE() macro.

Signed-off-by: Christian Heimes <christian@python.org>
2016-04-22 12:07:57 +02:00
Frank Denis
bcc99c1b6a blake2*_final() should return an error if called twice 2016-04-06 01:40:45 +02:00
Bill Cox
58eab9690e Changed copyright of Samuel's code to 3-license version suggested by Zooko 2016-02-28 20:42:23 -08:00
Jason A. Donenfeld
a6bd49a6ef Do not pack blake2_state structs
While the param structs need to be packed, because they're compressed as
a byte stream, the state structs do not have this requirement. As such,
the compiler likely can emit more efficient code in certain
circumstances when it can apply the ordinary struct alignment rules.
2016-02-09 03:39:53 +01:00
Samuel Neves
cfc536848a replace secure_zero_memory 2015-12-12 20:45:01 +00:00
JP Aumasson
a18d2b03fb consistent checks 2015-10-14 23:03:14 +02:00
Samuel Neves
94d1fefcb4 fix issues reported by Yutaka Sawada 2015-10-14 14:02:14 +01:00
Samuel Neves
b6525c7fa1 Remove unnecessary alignment directives 2015-06-11 21:58:15 +01:00
Samuel Neves
105d4e49c6 fix flags on architectures with < 32-bit int 2015-05-29 12:44:26 +01:00
Samuel Neves
b8024d53e7 Check for overflow of outlen in blake2{s,b}_final
Fix warnings with -Wcast-qual

Fix blake2{sp,bp}_final's return value
2014-08-06 11:42:44 +01:00
Samuel Neves
22a1ce9b2f Use unaligned instructions for non speed-critical memory accesses 2014-01-14 19:02:48 +00:00
Samuel Neves
802c795b43 Fix BLAKE2sp and BLAKEbp's inner_length bug. 2014-01-14 18:59:52 +00:00
CodesInChaos
fb714d2c83 Release 2013-01-31 2013-02-01 16:44:36 +01:00