Ondrej MosnáÄek
4d57910eab
crypto: gcm - Fix IV buffer size in crypto_gcm_setkey
...
commit 50d2e6dc1f83db0563c7d6603967bf9585ce934b upstream.
The cipher block size for GCM is 16 bytes, and thus the CTR transform
used in crypto_gcm_setkey() will also expect a 16-byte IV. However,
the code currently reserves only 8 bytes for the IV, causing
an out-of-bounds access in the CTR transform. This patch fixes
the issue by setting the size of the IV buffer to 16 bytes.
Fixes: 84c9115230 ("[CRYPTO] gcm: Add support for async ciphers")
Signed-off-by: Ondrej Mosnacek <omosnacek@gmail.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
Signed-off-by: Willy Tarreau <w@1wt.eu >
2017-02-06 09:04:07 +01:00
..
2013-12-04 10:57:33 -08:00
2013-04-29 18:28:42 -07:00
2015-01-29 17:40:57 -08:00
2017-02-06 09:04:07 +01:00
2013-02-19 20:27:03 +08:00
2015-01-29 17:40:57 -08:00
2017-02-06 09:04:07 +01:00
2017-02-06 09:04:07 +01:00
2015-11-09 10:12:59 -08:00
2013-06-25 19:15:17 +08:00
2017-02-06 09:04:07 +01:00
2017-02-06 09:04:07 +01:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-11-09 10:12:59 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2017-02-06 09:04:07 +01:00
2011-09-22 21:25:25 +10:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2012-12-06 17:16:26 +08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-02-11 14:48:18 +08:00
2017-02-06 09:04:07 +01:00
2015-01-29 17:40:57 -08:00
2016-02-19 14:22:41 -08:00
2014-06-07 13:25:35 -07:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2017-02-06 09:04:07 +01:00
2011-07-08 17:21:21 +08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2013-06-25 19:15:17 +08:00
2013-06-05 16:33:23 +08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2013-04-25 21:01:47 +08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2013-02-19 20:27:03 +08:00
2015-01-29 17:40:57 -08:00
2011-10-31 19:31:11 -04:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2013-02-19 20:27:03 +08:00
2015-01-29 17:40:57 -08:00
2016-08-27 11:40:19 +02:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2017-02-06 09:04:07 +01:00
2013-04-25 21:09:03 +08:00
2013-01-08 07:03:04 +01:00
2015-01-29 17:40:57 -08:00
2013-04-25 21:09:07 +08:00
2013-05-02 14:53:12 -07:00
2015-01-29 17:40:57 -08:00
2011-11-09 11:53:32 +08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00
2012-10-11 13:42:32 +11:00
2015-01-29 17:40:57 -08:00
2015-01-29 17:40:57 -08:00