-
- Downloads
SUNRPC: Add RFC 8009 encryption KUnit tests
RFC 8009 provides sample encryption results. Add KUnit tests to ensure our implementation derives the expected results for the provided sample input. I hate how large this test is, but using non-standard key usage values means rfc8009_encrypt_case() can't simply reuse ->import_ctx to allocate and key its ciphers; and the test provides its own confounders, which means krb5_etm_encrypt() can't be used directly. Tested-by:Scott Mayhew <smayhew@redhat.com> Reviewed-by:
Simo Sorce <simo@redhat.com> Signed-off-by:
Chuck Lever <chuck.lever@oracle.com>
Showing
- net/sunrpc/auth_gss/gss_krb5_crypto.c 22 additions, 4 deletionsnet/sunrpc/auth_gss/gss_krb5_crypto.c
- net/sunrpc/auth_gss/gss_krb5_internal.h 3 additions, 0 deletionsnet/sunrpc/auth_gss/gss_krb5_internal.h
- net/sunrpc/auth_gss/gss_krb5_test.c 329 additions, 0 deletionsnet/sunrpc/auth_gss/gss_krb5_test.c
Loading
Please register or sign in to comment