aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/test_sort.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2023-01-15 12:22:11 -0500
committerChuck Lever <chuck.lever@oracle.com>2023-02-20 09:20:42 -0500
commit2691a27d9b3e6a48adeb87a9dcf4e8a0ca84a26e (patch)
treee15b5cc285c7dca14a55872545d808829ea5f987 /lib/test_sort.c
parentSUNRPC: Rename .encrypt_v2 and .decrypt_v2 methods (diff)
downloadwireguard-linux-2691a27d9b3e6a48adeb87a9dcf4e8a0ca84a26e.tar.xz
wireguard-linux-2691a27d9b3e6a48adeb87a9dcf4e8a0ca84a26e.zip
SUNRPC: Hoist KDF into struct gss_krb5_enctype
Each Kerberos enctype can have a different KDF. Refactor the key derivation path to support different KDFs for the enctypes introduced in subsequent patches. In particular, expose the key derivation function in struct gss_krb5_enctype instead of the enctype's preferred random-to-key function. The latter is usually the identity function and is only ever called during key derivation, so have each KDF call it directly. A couple of extra clean-ups: - Deduplicate the set_cdata() helper - Have ->derive_key return negative errnos, in accordance with usual kernel coding conventions This patch is a little bigger than I'd like, but these are all mechanical changes and they are all to the same areas of code. No behavior change is intended. Tested-by: Scott Mayhew <smayhew@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'lib/test_sort.c')
0 files changed, 0 insertions, 0 deletions