1
1
mirror of https://github.com/BLAKE2/BLAKE2 synced 2024-11-22 02:31:57 +01:00
Commit Graph

124 Commits

Author SHA1 Message Date
JP Aumasson
ed1974ea83 fix key length check 2023-02-12 10:51:34 +01:00
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
Samuel Neves
54f4faa4c1
Merge pull request #71 from kkoehne/master
Avoid MSVC warning C4804
2021-05-28 16:07:06 +01: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
Samuel Neves
b52178a376
Merge pull request #67 from noloader/aarch64
Add Aarch64 makefile
2020-07-04 00:11:10 +01:00
Samuel Neves
5587e70c22
Merge pull request #66 from noloader/travis
Add Travis testing
2020-07-04 00:03:03 +01:00
Jeffrey Walton
a9facd9051
Add Travis testing 2020-07-03 18:17:45 -04:00
Jeffrey Walton
087dd6dec0
Add Aarch64 makefile 2020-07-02 22:43:01 -04:00
Samuel Neves
d4615d8473 update README.md 2020-06-30 23:41:43 +01:00
Samuel Neves
8c6526f992
Merge pull request #65 from noloader/power8
Add BLAKE2b for POWER8
2020-06-29 22:53:30 +01:00
Samuel Neves
ce5bfc80f8 rename power8 directory 2020-06-29 22:49:52 +01:00
Jeffrey Walton
40527ef47f Add BLAKE2b POWER8 implementation 2020-06-29 11:08:57 -04:00
Samuel Neves
997fa5ba1e
Merge pull request #57 from sean-sn/master
Updated Blake2s code to match diagonal shuffle tweak done in blake2-a…
20190724
2019-07-23 21:13:49 +01:00
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
Samuel Neves
320c325437
Merge pull request #50 from mjvk/bitwise-cast
Bitwise cast
2018-07-11 13:05:17 +01:00
mjvk
467c5446ac
Update blake2-impl.h 2018-05-09 11:49:17 +01:00
mjvk
3d6155ab16
Update blake2-impl.h 2018-05-09 11:47:33 +01: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
ca4c89314a
Merge pull request #49 from leighbb/arm-neon
Add ARM NEON versions of blake2s and blake2b
2018-04-19 12:41:33 +01:00
Leigh Brown
7965d3e6e1 Add ARM NEON versions of blake2s and blake2b
NOTE! The NEON version of blake2s is currently NO FASTER than the
reference implementations.  However, it is retained for reference
and in case it can be further improved.

The NEON version of blake2b is more than twice as fast as the
reference implementation on the Raspberry PI 2 Model B.
2018-04-02 20:07:05 +01:00
Samuel Neves
beb75f4512
Merge pull request #47 from CB-Rambo/master
syntax correction
2018-02-15 20:54:56 +00: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
Samuel Neves
7ba0f268ee Merge pull request #37 from pixelb/cleanups
maint: strip various trailing whitespace
2016-11-09 21:48:08 +00: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
JP Aumasson
d4418edab4 Merge pull request #35 from BLAKE2/b2x
B2x
2016-10-28 09:29:15 +02: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
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