auth/cephx/CephxSessionHandler: implement CEPHX_V2 calculation mode
authorSage Weil <sage@redhat.com>
Fri, 25 May 2018 14:32:13 +0000 (09:32 -0500)
committerSage Weil <sage@redhat.com>
Fri, 25 May 2018 14:32:13 +0000 (09:32 -0500)
commit546d15b25eb2af8b27ec509344c1a45387f77a57
tree625774856999220c264194e99bb385490a7d96a1
parenta1b8df4aebb813f6b80f33fa32fea779181302ac
auth/cephx/CephxSessionHandler: implement CEPHX_V2 calculation mode

Derive the signature from the entire buffer (both cipher blocks).

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 8f396cf35a3826044b089141667a196454c0a587)

# Conflicts:
# src/auth/cephx/CephxSessionHandler.cc

- master and mimic use no_bl crypto interface, which doesn't exist here,
so fall back to using bufferlist-based calls into encrypt().

(cherry picked from commit a2b04cc337a6f6f7b7a8b02bf31a8f3448670645)

# Conflicts:
# src/auth/cephx/CephxSessionHandler.cc

- mswab differences
src/auth/cephx/CephxSessionHandler.cc