Ilya Dryomov f5f2c9a0e3 libceph: align session_key and con_secret to 16 bytes
crypto_shash_setkey() and crypto_aead_setkey() will do a (small)
GFP_ATOMIC allocation to align the key if it isn't suitably aligned.
It's not a big deal, but at the same time easy to avoid.

The actual alignment requirement is dynamic, queryable with
crypto_shash_alignmask() and crypto_aead_alignmask(), but shouldn't
be stricter than 16 bytes for our algorithms.

Fixes: cd1a677cad99 ("libceph, ceph: implement msgr2.1 protocol (crc and secure modes)")
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2020-12-28 20:34:33 +01:00
..
2020-12-21 10:28:02 -08:00
2020-10-30 11:59:54 -07:00
2020-12-16 11:01:04 -08:00
2020-12-16 11:01:04 -08:00
2020-12-16 11:01:04 -08:00
2020-10-30 11:43:42 -07:00
2020-10-30 11:34:09 -07:00
2020-12-12 10:07:56 -08:00
2020-12-17 10:24:47 -08:00
2020-11-12 17:00:13 -08:00
2020-12-16 11:01:04 -08:00
2020-11-17 15:22:06 -04:00
2020-11-23 17:44:11 -08:00
2020-12-17 12:15:03 -08:00
2020-12-12 10:07:56 -08:00
2020-12-16 11:01:04 -08:00
2020-10-29 19:27:45 +01:00
2020-10-29 19:27:45 +01:00
2020-12-16 12:44:05 -08:00