crypto/krb5: Implement the Kerberos5 rfc3961 get_mic and verify_mic
authorDavid Howells <dhowells@redhat.com>
Thu, 24 Sep 2020 09:23:48 +0000 (10:23 +0100)
committerDavid Howells <dhowells@redhat.com>
Sun, 2 Mar 2025 21:51:47 +0000 (21:51 +0000)
commit348f5669d1f6c1c210b9017ebb8b82282eca6f25
tree94fb4c231e6be350c6f4600faedb05bd0a220cfc
parent00244da40f7821b242c4612428d4192230dba27f
crypto/krb5: Implement the Kerberos5 rfc3961 get_mic and verify_mic

Add functions that sign and verify a message according to rfc3961 sec 5.4,
using Kc to generate a checksum and insert it into the MIC field in the
skbuff in the sign phase then checksum the data and compare it to the MIC
in the verify phase.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Herbert Xu <herbert@gondor.apana.org.au>
cc: "David S. Miller" <davem@davemloft.net>
cc: Chuck Lever <chuck.lever@oracle.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: Eric Dumazet <edumazet@google.com>
cc: Jakub Kicinski <kuba@kernel.org>
cc: Paolo Abeni <pabeni@redhat.com>
cc: Simon Horman <horms@kernel.org>
cc: linux-afs@lists.infradead.org
cc: linux-nfs@vger.kernel.org
cc: linux-crypto@vger.kernel.org
cc: netdev@vger.kernel.org
crypto/krb5/internal.h
crypto/krb5/rfc3961_simplified.c