summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2020-12-15 16:49:07 +0100
committerIlya Dryomov <idryomov@gmail.com>2020-12-28 20:34:33 +0100
commitf5f2c9a0e3073debc6bc0ecc855ced0158526ee8 (patch)
treec3228cfecbf0c0b16ed3ab86bef2cd4a66177f0e /include
parentad32fe8801c38f7b1a8b3814bd1f006cb2b5e781 (diff)
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions