1
1
mirror of https://github.com/BLAKE2/BLAKE2 synced 2024-09-18 08:51:39 +02:00
Commit Graph

13 Commits

Author SHA1 Message Date
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
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
5522bb2325 unkeyed api 2016-10-12 17:55:15 +01:00
JP Aumasson
25f38cbc5e b2x added to sse/ 2016-10-11 22:54:18 +02: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
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
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
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
b6525c7fa1 Remove unnecessary alignment directives 2015-06-11 21:58:15 +01:00
CodesInChaos
fb714d2c83 Release 2013-01-31 2013-02-01 16:44:36 +01:00