]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rxrpc: rxgk: Implement connection rekeying
authorDavid Howells <dhowells@redhat.com>
Fri, 11 Apr 2025 09:52:54 +0000 (10:52 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Apr 2025 00:36:42 +0000 (17:36 -0700)
commit7a7513a3081c6a2729d8570c77bbed1978277dc9
treec424d4f1625c98366b8d406bffe33fb3fe3b685f
parent9d1d2b59341f58126a69b51f9f5f8ccb9f12e54a
rxrpc: rxgk: Implement connection rekeying

Implement rekeying of connections with the RxGK security class.  This
involves regenerating the keys with a different key number as part of the
input data after a certain amount of time or a certain amount of bytes
encrypted.  Rekeying may be triggered by either end.

The LSW of the key number is inserted into the security-specific field in
the RX header, and we try and expand it to 32-bits to make it last longer.

Signed-off-by: David Howells <dhowells@redhat.com>
cc: Marc Dionne <marc.dionne@auristor.com>
cc: Herbert Xu <herbert@gondor.apana.org.au>
cc: Chuck Lever <chuck.lever@oracle.com>
cc: Simon Horman <horms@kernel.org>
cc: linux-afs@lists.infradead.org
Link: https://patch.msgid.link/20250411095303.2316168-10-dhowells@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/trace/events/rxrpc.h
net/rxrpc/ar-internal.h
net/rxrpc/conn_object.c
net/rxrpc/rxgk.c