SUNRPC: Add encryption self-tests
authorChuck Lever <chuck.lever@oracle.com>
Sun, 15 Jan 2023 17:24:38 +0000 (12:24 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 20 Feb 2023 14:20:51 +0000 (09:20 -0500)
commitc4a9f0552cf682489d370adccf2f3ee11a8ff272
tree050a7bd96e0c1d5f7687eae7a505d3052cc2ca1f
parent4d2d15c0f1e05ef2478d4891b79570a87c5dd1a6
SUNRPC: Add encryption self-tests

With the KUnit infrastructure recently added, we are free to define
other unit tests particular to our implementation. As an example,
I've added a self-test that encrypts then decrypts a string, and
checks the result.

Tested-by: Scott Mayhew <smayhew@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/auth_gss/gss_krb5_crypto.c
net/sunrpc/auth_gss/gss_krb5_internal.h
net/sunrpc/auth_gss/gss_krb5_test.c