1
1
mirror of https://github.com/BLAKE2/BLAKE2 synced 2024-09-16 08:31:34 +02:00
Commit Graph

57 Commits

Author SHA1 Message Date
Samuel Neves
fb4b09b495
blake2xs: fix key length check
This does not result in a buffer overflow, because luckily `BLAKE2B_KEYBYTES == BLAKE2S_BLOCKBYTES`.
2023-02-07 16:12:58 +00:00
Kai Köhne
659129c861 Avoid MSVC warning C4804
Fixes warnings like

 blake2.h(140): warning C4804: '/': unsafe use of type 'bool' in operation
 blake2.h(141): warning C4804: '/': unsafe use of type 'bool' in operation
2021-04-21 09:10:59 +02:00
mjvk
3d6155ab16
Update blake2-impl.h 2018-05-09 11:47:33 +01:00
Krishna
d43735ad6d
syntax correction 2018-02-14 12:41:17 -05: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
JP Aumasson
e4de156be0 typos 2016-12-02 18:35:13 +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
JP Aumasson
6493c5862c fixed json input display 2016-10-11 22:37:14 +02:00
JP Aumasson
1f26297f81 bug in key-less b2x 2016-10-11 22:32:53 +02:00
JP Aumasson
c44e34b3a5 copyright notice 2016-10-11 22:00:39 +02:00
JP Aumasson
2994ec582c json kats 2016-10-11 21:55:56 +02:00
JP Aumasson
d113d9c26d streaming api prototypes 2016-10-11 21:38:20 +02:00
JP Aumasson
09f8e4f99e b2xb and tests 2016-10-11 21:36:56 +02:00
JP Aumasson
c09fb30361 b2xs tests ok 2016-10-11 21:08:09 +02:00
JP Aumasson
73dd9e9038 b2s xof unkeyed kats 2016-10-11 20:48:16 +02:00
JP Aumasson
ae633ca8e2 b2xs test procedures 2016-10-11 20:25:14 +02:00
Samuel Neves
73bd0dc652 length bug 2016-10-11 16:18:48 +01:00
Samuel Neves
1dd6358997 style, consistency, wip 2016-10-11 15:04:29 +01:00
JP Aumasson
c038f88aec basic b2xs and b2xb 2016-10-11 15:06:44 +02:00
JP Aumasson
97c8a0cd55 adding xof_length for b2x support 2016-10-11 14:54:09 +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
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
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
d0bf1ed303 Consistent checks at blake2x_final (reported by Bill Cox) 2016-01-20 00:53:36 +00:00
Samuel Neves
cfc536848a replace secure_zero_memory 2015-12-12 20:45:01 +00:00
Samuel Neves
2d362fbb68 Merge pull request #3 from neheb/master
Fix makefiles + bench fix
2015-11-05 07:38:38 +00:00
Samuel Neves
3d1a79158d fix issue #11 2015-11-05 07:13:52 +00:00
JP Aumasson
a18d2b03fb consistent checks 2015-10-14 23:03:14 +02: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