David Sterba
91d689337f
crypto: blake2b - add blake2b generic implementation
...
The patch brings support of several BLAKE2 variants (2b with various
digest lengths). The keyed digest is supported, using tfm->setkey call.
The in-tree user will be btrfs (for checksumming), we're going to use
the BLAKE2b-256 variant.
The code is reference implementation taken from the official sources and
modified in terms of kernel coding style (whitespace, comments, uintXX_t
-> uXX types, removed unused prototypes and #ifdefs, removed testing
code, changed secure_zero_memory -> memzero_explicit, used own helpers
for unaligned reads/writes and rotations).
Further changes removed sanity checks of key length or output size,
these values are verified in the crypto API callbacks or hardcoded in
shash_alg and not exposed to users.
Signed-off-by: David Sterba <dsterba@suse.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2019-11-01 13:38:31 +08:00
..
2019-09-28 08:14:15 -07:00
2019-06-05 17:37:06 +02:00
2019-05-30 11:26:37 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-04-25 15:38:12 +08:00
2019-08-15 21:52:14 +10:00
2019-10-26 02:06:05 +11:00
2019-10-26 02:06:05 +11:00
2019-10-26 02:06:05 +11:00
2019-08-30 18:05:30 +10:00
2019-08-15 21:52:14 +10:00
2019-07-26 14:55:33 +10:00
2019-10-10 23:42:45 +11:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-07-08 20:57:08 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2018-05-26 09:16:44 +02:00
2019-10-05 01:04:31 +10:00
2019-05-24 17:27:12 +02:00
2019-06-13 14:31:39 +08:00
2019-05-30 11:26:32 -07:00
2019-07-08 20:57:08 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-11-01 13:38:31 +08:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 11:28:45 +02:00
2019-05-30 11:25:16 -07:00
2019-05-30 11:25:16 -07:00
2019-05-24 17:27:12 +02:00
2019-05-30 11:26:32 -07:00
2019-06-18 08:52:34 +02:00
2019-04-18 22:15:03 +08:00
2019-07-08 20:57:08 -07:00
2019-07-08 20:57:08 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-04-18 22:15:03 +08:00
2019-05-30 11:26:32 -07:00
2013-09-12 15:31:34 +10:00
2019-04-18 22:15:03 +08:00
2019-08-15 21:52:13 +10:00
2019-08-09 15:11:52 +10:00
2019-07-08 20:57:08 -07:00
2019-10-10 23:42:45 +11:00
2019-10-10 23:42:45 +11:00
2019-05-30 11:26:32 -07:00
2019-04-18 22:15:03 +08:00
2019-07-08 20:57:08 -07:00
2019-08-22 14:57:33 +10:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-23 14:01:06 +08:00
2019-05-30 11:26:32 -07:00
2019-04-18 22:15:02 +08:00
2019-11-01 13:38:31 +08:00
2019-04-18 22:15:02 +08:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-04-18 22:15:02 +08:00
2019-04-18 22:15:02 +08:00
2019-04-18 22:15:02 +08:00
2019-04-18 22:15:02 +08:00
2019-09-03 16:44:57 -04:00
2019-06-13 14:31:39 +08:00
2019-07-26 14:51:57 +10:00
2019-08-09 15:11:58 +10:00
2017-12-22 19:52:40 +11:00
2019-07-27 21:08:38 +10:00
2019-05-30 11:26:32 -07:00
2019-06-06 13:10:49 -07:00
2019-05-30 11:26:32 -07:00
2019-10-18 18:49:40 +11:00
2019-10-18 18:49:40 +11:00
2019-10-18 18:49:40 +11:00
2019-11-01 13:38:31 +08:00
2019-04-18 22:15:03 +08:00
2019-06-13 14:31:39 +08:00
2019-05-30 11:26:32 -07:00
2019-07-08 20:57:08 -07:00
2019-07-08 20:57:08 -07:00
2019-07-08 20:57:08 -07:00
2019-07-08 20:57:08 -07:00
2019-07-08 20:57:08 -07:00
2019-11-01 13:38:31 +08:00
2019-06-13 14:31:39 +08:00
2019-06-13 14:31:39 +08:00
2013-12-09 20:09:12 +08:00
2019-07-08 20:57:08 -07:00
2019-04-18 22:15:03 +08:00
2019-04-18 22:15:03 +08:00
2019-05-30 11:26:32 -07:00
2019-09-13 21:15:40 +10:00
2019-04-18 22:15:03 +08:00
2019-05-30 11:26:32 -07:00
2017-11-02 11:10:55 +01:00
2019-07-08 20:57:08 -07:00
2019-07-08 20:57:08 -07:00
2019-07-08 20:57:08 -07:00
2019-07-08 20:57:08 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-24 17:27:11 +02:00
2016-07-05 23:05:26 +08:00
2015-10-14 22:23:16 +08:00
2019-04-18 22:15:03 +08:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-07-08 20:57:08 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-09-05 14:54:54 +10:00
2019-05-24 17:27:12 +02:00
2019-05-30 11:26:32 -07:00
2019-05-21 11:28:45 +02:00
2019-09-09 17:35:27 +10:00
2019-06-19 17:09:07 +02:00
2019-04-18 22:15:03 +08:00
2019-08-15 21:52:14 +10:00
2019-08-30 18:05:27 +10:00
2019-05-30 11:26:32 -07:00
2019-07-08 20:57:08 -07:00
2019-10-05 01:06:05 +10:00
2019-10-05 01:06:05 +10:00
2019-07-08 20:57:08 -07:00
2019-05-21 11:28:45 +02:00
2019-05-21 11:28:45 +02:00
2019-04-18 22:15:03 +08:00
2019-06-13 14:31:39 +08:00
2019-05-21 11:28:45 +02:00
2019-05-24 17:27:13 +02:00
2019-08-15 21:52:14 +10:00
2019-06-06 14:38:57 +08:00
2019-07-08 20:57:08 -07:00