Uses of Record Class
io.github.mahmoudimus.quic.crypto.DirectionalKeys
Packages that use DirectionalKeys
Package
Description
QUIC packet protection (RFC 9001 section 5): AEAD payload keys, header protection keys, Initial
keys per version, key updates and the Retry integrity tag.
QUIC packets (RFC 9000 section 17, RFC 9369): header encoding and partial decoding, packet
number truncation and recovery, coalesced datagrams, and protecting and unprotecting whole
packets in place.
-
Uses of DirectionalKeys in io.github.mahmoudimus.quic.crypto
Methods in io.github.mahmoudimus.quic.crypto that return DirectionalKeysModifier and TypeMethodDescriptionstatic DirectionalKeysDirectionalKeys.fromSecret(CipherSuite suite, byte[] secret, QuicVersion version) Derives both keys from one traffic secret (RFC 9001 section 5.1).Keys.local()Returns the value of thelocalrecord component.Keys.remote()Returns the value of theremoterecord component.Constructors in io.github.mahmoudimus.quic.crypto with parameters of type DirectionalKeysModifierConstructorDescriptionKeys(DirectionalKeys local, DirectionalKeys remote) Keys from their parts. -
Uses of DirectionalKeys in io.github.mahmoudimus.quic.packet
Methods in io.github.mahmoudimus.quic.packet with parameters of type DirectionalKeysModifier and TypeMethodDescriptionPacketBuilder.begin(PacketHeader.Numbered header, DirectionalKeys keys) Starts a packet after any already finished in this datagram.static intPacketProtection.protect(ByteBuffer packet, HeaderLayout layout, int payloadEnd, long packetNumber, DirectionalKeys keys) Protects an encoded packet in place.ProtectedPacket.unprotect(DirectionalKeys keys, long largestPacketNumber) Removes header and payload protection in one step, for levels without key phases.