Skip to content
Snippets Groups Projects
Commit f5f2c9a0 authored by Ilya Dryomov's avatar Ilya Dryomov
Browse files

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: cd1a677c ("libceph, ceph: implement msgr2.1 protocol (crc and secure modes)")
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent ad32fe88
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment