Searched hist:f5f2c9a0 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/ceph/ |
H A D | messenger_v2.c | f5f2c9a0 Tue Dec 15 09:49:07 CST 2020 Ilya Dryomov <idryomov@gmail.com> 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>
|