Eric Biggers
9f480faec5
crypto: chacha20 - Fix keystream alignment for chacha20_block()
...
When chacha20_block() outputs the keystream block, it uses 'u32' stores
directly. However, the callers (crypto/chacha20_generic.c and
drivers/char/random.c) declare the keystream buffer as a 'u8' array,
which is not guaranteed to have the needed alignment.
Fix it by having both callers declare the keystream as a 'u32' array.
For now this is preferable to switching over to the unaligned access
macros because chacha20_block() is only being used in cases where we can
easily control the alignment (stack buffers).
Signed-off-by: Eric Biggers <ebiggers@google.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2017-11-29 17:33:33 +11:00
..
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-03 17:54:25 -07:00
2017-11-02 11:10:55 +01:00
2017-11-14 10:52:09 -08:00
2017-11-02 11:10:55 +01:00
2017-10-12 15:10:12 +02:00
2017-08-15 09:02:08 -07:00
2017-11-02 11:10:55 +01:00
2017-09-25 15:50:57 -07:00
2017-09-25 15:50:57 -07:00
2017-11-09 00:38:21 +11:00
2017-11-07 10:32:44 +01:00
2017-07-14 15:05:13 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-19 13:01:40 -06:00
2017-07-10 16:32:35 -07:00
2017-11-17 16:10:01 -08:00
2017-11-02 11:10:55 +01:00
2017-11-29 17:33:33 +11:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-09-08 18:26:49 -07:00
2017-09-25 15:50:57 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-09-26 15:01:20 -06:00
2017-09-26 15:01:20 -06:00
2017-09-26 15:01:20 -06:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-14 16:51:01 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-12 17:16:40 +01:00
2017-11-13 08:25:06 -08:00
2017-11-17 16:10:00 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-17 16:10:01 -08:00
2017-11-15 11:56:19 -08:00
2017-11-02 11:10:55 +01:00
2017-07-10 16:32:35 -07:00
2017-08-10 15:54:06 -07:00
2017-11-02 11:10:55 +01:00
2017-10-07 10:45:14 -06:00
2017-11-02 11:10:55 +01:00
2017-11-17 16:10:02 -08:00
2017-09-08 18:26:49 -07:00
2017-11-02 11:10:55 +01:00
2017-11-15 18:21:06 -08:00
2017-11-02 11:10:55 +01:00
2017-11-17 16:10:01 -08:00
2017-11-17 16:10:02 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 10:04:46 -07:00
2017-10-11 22:36:54 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-22 20:46:06 -10:00
2017-11-17 16:10:04 -08:00
2017-10-05 18:19:22 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-25 11:01:08 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-09-25 15:50:57 -07:00
2017-11-17 16:10:02 -08:00
2017-11-02 11:10:55 +01:00
2017-09-25 15:50:57 -07:00
2017-11-02 11:10:55 +01:00
2017-11-11 15:14:38 +09:00
2017-11-17 16:10:02 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-09-08 18:26:49 -07:00
2017-11-04 09:26:51 +09:00
2017-11-02 11:10:55 +01:00
2017-11-15 18:21:06 -08:00
2017-11-21 15:57:05 -08:00
2017-10-03 17:54:26 -07:00
2017-11-02 11:10:55 +01:00
2017-11-17 16:10:02 -08:00
2017-09-08 18:26:48 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-09-19 15:18:33 -07:00
2017-09-07 10:48:29 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-09-13 18:53:16 -07:00
2017-11-17 16:10:01 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-07 15:35:58 +01:00
2017-11-02 11:10:55 +01:00
2017-09-13 18:53:15 -07:00
2017-08-09 16:53:56 -07:00
2017-09-08 18:26:49 -07:00
2017-11-17 16:10:02 -08:00
2017-08-10 13:58:41 -07:00
2017-11-17 16:10:01 -08:00
2017-11-17 16:10:01 -08:00
2017-11-17 16:10:01 -08:00
2017-09-21 20:40:55 -07:00
2017-11-17 16:10:01 -08:00
2017-07-12 16:26:00 -07:00
2017-07-21 09:38:30 +02:00
2017-10-22 03:14:07 +01:00
2017-10-22 03:14:07 +01:00
2017-11-02 11:10:55 +01:00
2017-09-25 15:50:57 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-25 11:01:08 +02:00
2017-11-02 11:10:55 +01:00
2017-08-15 09:02:07 -07:00