Commit c7aac00
libceph: Remove obsolete session key alignment logic
Since the call to crypto_shash_setkey() was replaced with
hmac_sha256_preparekey() which doesn't allocate memory regardless of the
alignment of the input key, remove the session key alignment logic from
process_auth_done(). Also remove the inclusion of crypto/hash.h, which
is no longer needed since crypto_shash is no longer used.
[ idryomov: rewrap comment ]
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>1 parent a0d9555 commit c7aac00
1 file changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
2352 | 2351 | | |
2353 | 2352 | | |
2354 | 2353 | | |
2355 | | - | |
2356 | | - | |
2357 | | - | |
2358 | | - | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
2359 | 2357 | | |
2360 | 2358 | | |
2361 | 2359 | | |
2362 | | - | |
| 2360 | + | |
2363 | 2361 | | |
2364 | | - | |
2365 | 2362 | | |
2366 | 2363 | | |
2367 | 2364 | | |
| |||
2415 | 2412 | | |
2416 | 2413 | | |
2417 | 2414 | | |
2418 | | - | |
| 2415 | + | |
2419 | 2416 | | |
2420 | 2417 | | |
2421 | 2418 | | |
| |||
0 commit comments