APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.security.ssl

pack-priv abstract Class QuicCipher

extends Object
Class Inheritance
Known Direct Subclasses
sun.security.ssl.QuicCipher.QuicReadCipher, sun.security.ssl.QuicCipher.QuicWriteCipher
Imports
java.nio.ByteBuffer, .ByteOrder, java.security.GeneralSecurityException, .Security, java.util.Collections, .HashMap, .Map, java.util.concurrent.atomic.AtomicLong, javax.crypto.AEADBadTagException, .Cipher, .SecretKey, .ShortBufferException, javax.crypto.spec.ChaCha20ParameterSpec, .GCMParameterSpec, .IvParameterSpec, jdk.internal.net.quic.QuicTransportErrors, .QuicTransportException, sun.security.util.KeyUtil

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv abstract static class
pack-priv abstract static class
pack-priv abstract static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final SecretKey
private final CipherSuite
private final QuicCipher.QuicHeaderProtectionCipher
private static final Map<String, Long>
private final int
private static final String

Constructor Summary

AccessConstructor and Description
protected
QuicCipher(final CipherSuite cipherSuite, final SecretKey baseSecret, final QuicCipher.QuicHeaderProtectionCipher hpCipher, final int keyPhase)

Method Summary

Modifier and TypeMethod and Description
pack-priv final ByteBuffer
pack-priv static QuicCipher.QuicReadCipher
createReadCipher(final CipherSuite cipherSuite, final SecretKey baseSecret, final SecretKey key, final byte[] iv, final SecretKey hp, final int keyPhase)

pack-priv static QuicCipher.QuicWriteCipher
createWriteCipher(final CipherSuite cipherSuite, final SecretKey baseSecret, final SecretKey key, final byte[] iv, final SecretKey hp, final int keyPhase)

pack-priv final void
discard(boolean destroyHP)

protected abstract void
pack-priv final SecretKey
pack-priv final CipherSuite
pack-priv final SecretKey
pack-priv final int
pack-priv static void
safeDiscard(final SecretKey secretKey)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

baseSecretback to summary
private final SecretKey baseSecret
cipherSuiteback to summary
private final CipherSuite cipherSuite
hpCipherback to summary
private final QuicCipher.QuicHeaderProtectionCipher hpCipher
KEY_LIMITSback to summary
private static final Map<String, Long> KEY_LIMITS
keyPhaseback to summary
private final int keyPhase
SEC_PROP_QUIC_TLS_KEY_LIMITSback to summary
private static final String SEC_PROP_QUIC_TLS_KEY_LIMITS

Constructor Detail

QuicCipherback to summary
protected QuicCipher(final CipherSuite cipherSuite, final SecretKey baseSecret, final QuicCipher.QuicHeaderProtectionCipher hpCipher, final int keyPhase)

Method Detail

computeHeaderProtectionMaskback to summary
pack-priv final ByteBuffer computeHeaderProtectionMask(ByteBuffer sample) throws QuicTransportException
createReadCipherback to summary
pack-priv static QuicCipher.QuicReadCipher createReadCipher(final CipherSuite cipherSuite, final SecretKey baseSecret, final SecretKey key, final byte[] iv, final SecretKey hp, final int keyPhase) throws GeneralSecurityException
createWriteCipherback to summary
pack-priv static QuicCipher.QuicWriteCipher createWriteCipher(final CipherSuite cipherSuite, final SecretKey baseSecret, final SecretKey key, final byte[] iv, final SecretKey hp, final int keyPhase) throws GeneralSecurityException
discardback to summary
pack-priv final void discard(boolean destroyHP)
doDiscardback to summary
protected abstract void doDiscard()
getBaseSecretback to summary
pack-priv final SecretKey getBaseSecret()
getCipherSuiteback to summary
pack-priv final CipherSuite getCipherSuite()
getHeaderProtectionKeyback to summary
pack-priv final SecretKey getHeaderProtectionKey()
getKeyPhaseback to summary
pack-priv final int getKeyPhase()
safeDiscardback to summary
pack-priv static void safeDiscard(final SecretKey secretKey)
sun.security.ssl back to summary

pack-priv abstract Class QuicCipher.QuicHeaderProtectionCipher

extends Object
Class Inheritance
Known Direct Subclasses
sun.security.ssl.QuicCipher.T13AESHPCipher, sun.security.ssl.QuicCipher.T13CC20HPCipher

Field Summary

Modifier and TypeField and Description
protected final SecretKey

Constructor Summary

AccessConstructor and Description
protected
QuicHeaderProtectionCipher(final SecretKey headerProtectionKey)

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract ByteBuffer
pack-priv final void
pack-priv int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

headerProtectionKeyback to summary
protected final SecretKey headerProtectionKey

Constructor Detail

QuicHeaderProtectionCipherback to summary
protected QuicHeaderProtectionCipher(final SecretKey headerProtectionKey)

Method Detail

computeHeaderProtectionMaskback to summary
pack-priv abstract ByteBuffer computeHeaderProtectionMask(ByteBuffer sample) throws QuicTransportException
discardback to summary
pack-priv final void discard()
getHeaderProtectionSampleSizeback to summary
pack-priv int getHeaderProtectionSampleSize()
sun.security.ssl back to summary

pack-priv abstract Class QuicCipher.QuicReadCipher

extends QuicCipher
Class Inheritance
Known Direct Subclasses
sun.security.ssl.QuicCipher.T13GCMReadCipher, sun.security.ssl.QuicCipher.T13CC20P1305ReadCipher

Field Summary

Modifier and TypeField and Description
private final AtomicLong

Constructor Summary

AccessConstructor and Description
pack-priv
QuicReadCipher(CipherSuite cipherSuite, SecretKey baseSecret, QuicCipher.QuicHeaderProtectionCipher hpCipher, int keyPhase)

Method Summary

Modifier and TypeMethod and Description
pack-priv final void
decryptPacket(long packetNumber, ByteBuffer packet, int headerLength, ByteBuffer output)

protected abstract void
doDecrypt(long packetNumber, ByteBuffer packet, int headerLength, ByteBuffer output)

pack-priv final boolean

Returns:

true if this QuicReadCipher has successfully decrypted any packet sent by the peer, else returns false
hasDecryptedAny
()

Returns true if this QuicReadCipher has successfully decrypted any packet sent by the peer, else returns false.

pack-priv abstract long

Returns:

the limit
integrityLimit
()

Returns the maximum limit on the number of packets that fail decryption, across all key (updates), using this QuicReadCipher.

pack-priv final long

Returns:

the lowest packet number that this QuicReadCipher has decrypted. If no packets have yet been decrypted by this instance, then this method returns -1
lowestDecryptedPktNum
()

Returns the lowest packet number that this QuicReadCipher has decrypted.

Inherited from sun.security.ssl.QuicCipher:
computeHeaderProtectionMaskcreateReadCiphercreateWriteCipherdiscarddoDiscardgetBaseSecretgetCipherSuitegetHeaderProtectionKeygetKeyPhasesafeDiscard

Field Detail

lowestDecryptedPktNumback to summary
private final AtomicLong lowestDecryptedPktNum

Constructor Detail

QuicReadCipherback to summary
pack-priv QuicReadCipher(CipherSuite cipherSuite, SecretKey baseSecret, QuicCipher.QuicHeaderProtectionCipher hpCipher, int keyPhase)

Method Detail

decryptPacketback to summary
pack-priv final void decryptPacket(long packetNumber, ByteBuffer packet, int headerLength, ByteBuffer output) throws AEADBadTagException, ShortBufferException, QuicTransportException
doDecryptback to summary
protected abstract void doDecrypt(long packetNumber, ByteBuffer packet, int headerLength, ByteBuffer output) throws AEADBadTagException, ShortBufferException, QuicTransportException
hasDecryptedAnyback to summary
pack-priv final boolean hasDecryptedAny()

Returns true if this QuicReadCipher has successfully decrypted any packet sent by the peer, else returns false.

Returns:boolean

true if this QuicReadCipher has successfully decrypted any packet sent by the peer, else returns false

integrityLimitback to summary
pack-priv abstract long integrityLimit()

Returns the maximum limit on the number of packets that fail decryption, across all key (updates), using this QuicReadCipher. This method must not return a value less than 0.

Returns:long

the limit

lowestDecryptedPktNumback to summary
pack-priv final long lowestDecryptedPktNum()

Returns the lowest packet number that this QuicReadCipher has decrypted. If no packets have yet been decrypted by this instance, then this method returns -1.

Returns:long

the lowest packet number that this QuicReadCipher has decrypted. If no packets have yet been decrypted by this instance, then this method returns -1

sun.security.ssl back to summary

pack-priv abstract Class QuicCipher.QuicWriteCipher

extends QuicCipher
Class Inheritance
Known Direct Subclasses
sun.security.ssl.QuicCipher.T13GCMWriteCipher, sun.security.ssl.QuicCipher.T13CC20P1305WriteCipher

Field Summary

Modifier and TypeField and Description
private final AtomicLong
private final AtomicLong

Constructor Summary

AccessConstructor and Description
pack-priv
QuicWriteCipher(CipherSuite cipherSuite, SecretKey baseSecret, QuicCipher.QuicHeaderProtectionCipher hpCipher, int keyPhase)

Method Summary

Modifier and TypeMethod and Description
pack-priv abstract long

Returns:

the limit or -1
confidentialityLimit
()

Returns the maximum limit on the number of packets that are allowed to be encrypted with this instance of QuicWriteCipher.

pack-priv abstract void
doEncryptPacket(long packetNumber, ByteBuffer packetHeader, ByteBuffer packetPayload, ByteBuffer output)

pack-priv final void
encryptPacket(final long packetNumber, final ByteBuffer packetHeader, final ByteBuffer packetPayload, final ByteBuffer output)

pack-priv final long

Returns:

the number of packets encrypted by this QuicWriteCipher
getNumEncrypted
()

Returns the number of packets encrypted by this QuicWriteCipher.

pack-priv final boolean

Returns:

true if this QuicWriteCipher has successfully encrypted any packet to send to the peer, else returns false
hasEncryptedAny
()

Returns true if this QuicWriteCipher has successfully encrypted any packet to send to the peer, else returns false.

pack-priv final long

Returns:

the lowest packet number that this QuicWriteCipher has encrypted. If no packets have yet been encrypted by this instance, then this method returns -1
lowestEncryptedPktNum
()

Returns the lowest packet number that this QuicWriteCipher has encrypted.

Inherited from sun.security.ssl.QuicCipher:
computeHeaderProtectionMaskcreateReadCiphercreateWriteCipherdiscarddoDiscardgetBaseSecretgetCipherSuitegetHeaderProtectionKeygetKeyPhasesafeDiscard

Field Detail

lowestEncryptedPktNumback to summary
private final AtomicLong lowestEncryptedPktNum
numPacketsEncryptedback to summary
private final AtomicLong numPacketsEncrypted

Constructor Detail

QuicWriteCipherback to summary
pack-priv QuicWriteCipher(CipherSuite cipherSuite, SecretKey baseSecret, QuicCipher.QuicHeaderProtectionCipher hpCipher, int keyPhase)

Method Detail

confidentialityLimitback to summary
pack-priv abstract long confidentialityLimit()

Returns the maximum limit on the number of packets that are allowed to be encrypted with this instance of QuicWriteCipher. A value less than 0 implies that there's no limit.

Returns:long

the limit or -1

doEncryptPacketback to summary
pack-priv abstract void doEncryptPacket(long packetNumber, ByteBuffer packetHeader, ByteBuffer packetPayload, ByteBuffer output) throws ShortBufferException, QuicTransportException
encryptPacketback to summary
pack-priv final void encryptPacket(final long packetNumber, final ByteBuffer packetHeader, final ByteBuffer packetPayload, final ByteBuffer output) throws QuicTransportException, ShortBufferException
getNumEncryptedback to summary
pack-priv final long getNumEncrypted()

Returns the number of packets encrypted by this QuicWriteCipher.

Returns:long

the number of packets encrypted by this QuicWriteCipher

hasEncryptedAnyback to summary
pack-priv final boolean hasEncryptedAny()

Returns true if this QuicWriteCipher has successfully encrypted any packet to send to the peer, else returns false.

Returns:boolean

true if this QuicWriteCipher has successfully encrypted any packet to send to the peer, else returns false

lowestEncryptedPktNumback to summary
pack-priv final long lowestEncryptedPktNum()

Returns the lowest packet number that this QuicWriteCipher has encrypted. If no packets have yet been encrypted by this instance, then this method returns -1.

Returns:long

the lowest packet number that this QuicWriteCipher has encrypted. If no packets have yet been encrypted by this instance, then this method returns -1

sun.security.ssl back to summary

pack-priv final Class QuicCipher.T13AESHPCipher

extends QuicHeaderProtectionCipher
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Cipher
Inherited from sun.security.ssl.QuicCipher.QuicHeaderProtectionCipher:
headerProtectionKey

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ByteBuffer
Inherited from sun.security.ssl.QuicCipher.QuicHeaderProtectionCipher:
discardgetHeaderProtectionSampleSize

Field Detail

cipherback to summary
private final Cipher cipher

Constructor Detail

T13AESHPCipherback to summary
pack-priv T13AESHPCipher(SecretKey hp) throws GeneralSecurityException

Method Detail

computeHeaderProtectionMaskback to summary
public ByteBuffer computeHeaderProtectionMask(ByteBuffer sample) throws QuicTransportException

Implements abstract sun.security.ssl.QuicCipher.QuicHeaderProtectionCipher.computeHeaderProtectionMask.

Annotations
@Override
sun.security.ssl back to summary

pack-priv final Class QuicCipher.T13CC20HPCipher

extends QuicHeaderProtectionCipher
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Cipher
Inherited from sun.security.ssl.QuicCipher.QuicHeaderProtectionCipher:
headerProtectionKey

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public ByteBuffer
Inherited from sun.security.ssl.QuicCipher.QuicHeaderProtectionCipher:
discardgetHeaderProtectionSampleSize

Field Detail

cipherback to summary
private final Cipher cipher

Constructor Detail

T13CC20HPCipherback to summary
pack-priv T13CC20HPCipher(final SecretKey hp) throws GeneralSecurityException

Method Detail

computeHeaderProtectionMaskback to summary
public ByteBuffer computeHeaderProtectionMask(ByteBuffer sample) throws QuicTransportException

Implements abstract sun.security.ssl.QuicCipher.QuicHeaderProtectionCipher.computeHeaderProtectionMask.

Annotations
@Override
sun.security.ssl back to summary

pack-priv final Class QuicCipher.T13CC20P1305ReadCipher

extends QuicReadCipher
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Cipher
private static final long
private final byte[]
private final SecretKey

Constructor Summary

AccessConstructor and Description
pack-priv
T13CC20P1305ReadCipher(final CipherSuite cipherSuite, final SecretKey baseSecret, final SecretKey key, final byte[] iv, final SecretKey hp, final int keyPhase)

Method Summary

Modifier and TypeMethod and Description
protected void
doDecrypt(long packetNumber, ByteBuffer packet, int headerLength, ByteBuffer output)

Implements abstract sun.security.ssl.QuicCipher.QuicReadCipher.doDecrypt.

protected final void
pack-priv long
integrityLimit()

Implements abstract sun.security.ssl.QuicCipher.QuicReadCipher.integrityLimit.

Returns the maximum limit on the number of packets that fail decryption, across all key (updates), using this QuicReadCipher.

Inherited from sun.security.ssl.QuicCipher.QuicReadCipher:
decryptPackethasDecryptedAnylowestDecryptedPktNum

Field Detail

cipherback to summary
private final Cipher cipher
INTEGRITY_LIMITback to summary
private static final long INTEGRITY_LIMIT
ivback to summary
private final byte[] iv
keyback to summary
private final SecretKey key

Constructor Detail

T13CC20P1305ReadCipherback to summary
pack-priv T13CC20P1305ReadCipher(final CipherSuite cipherSuite, final SecretKey baseSecret, final SecretKey key, final byte[] iv, final SecretKey hp, final int keyPhase) throws GeneralSecurityException

Method Detail

doDecryptback to summary
protected void doDecrypt(long packetNumber, ByteBuffer packet, int headerLength, ByteBuffer output) throws AEADBadTagException, ShortBufferException, QuicTransportException

Implements abstract sun.security.ssl.QuicCipher.QuicReadCipher.doDecrypt.

Annotations
@Override
doDiscardback to summary
protected final void doDiscard()

Implements abstract sun.security.ssl.QuicCipher.doDiscard.

Annotations
@Override
integrityLimitback to summary
pack-priv long integrityLimit()

Implements abstract sun.security.ssl.QuicCipher.QuicReadCipher.integrityLimit.

Doc from sun.security.ssl.QuicCipher.QuicReadCipher.integrityLimit.

Returns the maximum limit on the number of packets that fail decryption, across all key (updates), using this QuicReadCipher. This method must not return a value less than 0.

Annotations
@Override
sun.security.ssl back to summary

pack-priv final Class QuicCipher.T13CC20P1305WriteCipher

extends QuicWriteCipher
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Cipher
private static final String
private static final long
private final byte[]
private final SecretKey

Constructor Summary

AccessConstructor and Description
pack-priv
T13CC20P1305WriteCipher(final CipherSuite cipherSuite, final SecretKey baseSecret, final SecretKey key, final byte[] iv, final SecretKey hp, final int keyPhase)

Method Summary

Modifier and TypeMethod and Description
pack-priv long
confidentialityLimit()

Implements abstract sun.security.ssl.QuicCipher.QuicWriteCipher.confidentialityLimit.

Returns the maximum limit on the number of packets that are allowed to be encrypted with this instance of QuicWriteCipher.

protected final void
pack-priv void
doEncryptPacket(final long packetNumber, final ByteBuffer packetHeader, final ByteBuffer packetPayload, final ByteBuffer output)

Implements abstract sun.security.ssl.QuicCipher.QuicWriteCipher.doEncryptPacket.

Inherited from sun.security.ssl.QuicCipher.QuicWriteCipher:
encryptPacketgetNumEncryptedhasEncryptedAnylowestEncryptedPktNum

Field Detail

cipherback to summary
private final Cipher cipher
CIPHER_ALGORITHM_NAMEback to summary
private static final String CIPHER_ALGORITHM_NAME
CONFIDENTIALITY_LIMITback to summary
private static final long CONFIDENTIALITY_LIMIT
ivback to summary
private final byte[] iv
keyback to summary
private final SecretKey key

Constructor Detail

T13CC20P1305WriteCipherback to summary
pack-priv T13CC20P1305WriteCipher(final CipherSuite cipherSuite, final SecretKey baseSecret, final SecretKey key, final byte[] iv, final SecretKey hp, final int keyPhase) throws GeneralSecurityException

Method Detail

confidentialityLimitback to summary
pack-priv long confidentialityLimit()

Implements abstract sun.security.ssl.QuicCipher.QuicWriteCipher.confidentialityLimit.

Doc from sun.security.ssl.QuicCipher.QuicWriteCipher.confidentialityLimit.

Returns the maximum limit on the number of packets that are allowed to be encrypted with this instance of QuicWriteCipher. A value less than 0 implies that there's no limit.

Annotations
@Override
doDiscardback to summary
protected final void doDiscard()

Implements abstract sun.security.ssl.QuicCipher.doDiscard.

Annotations
@Override
doEncryptPacketback to summary
pack-priv void doEncryptPacket(final long packetNumber, final ByteBuffer packetHeader, final ByteBuffer packetPayload, final ByteBuffer output) throws ShortBufferException, QuicTransportException

Implements abstract sun.security.ssl.QuicCipher.QuicWriteCipher.doEncryptPacket.

Annotations
@Override
sun.security.ssl back to summary

pack-priv final Class QuicCipher.T13GCMReadCipher

extends QuicReadCipher
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Cipher
private static final long
private final byte[]
private final SecretKey

Constructor Summary

AccessConstructor and Description
pack-priv
T13GCMReadCipher(final CipherSuite cipherSuite, final SecretKey baseSecret, final SecretKey key, final byte[] iv, final SecretKey hp, final int keyPhase)

Method Summary

Modifier and TypeMethod and Description
protected void
doDecrypt(long packetNumber, ByteBuffer packet, int headerLength, ByteBuffer output)

Implements abstract sun.security.ssl.QuicCipher.QuicReadCipher.doDecrypt.

protected final void
pack-priv long
integrityLimit()

Implements abstract sun.security.ssl.QuicCipher.QuicReadCipher.integrityLimit.

Returns the maximum limit on the number of packets that fail decryption, across all key (updates), using this QuicReadCipher.

Inherited from sun.security.ssl.QuicCipher.QuicReadCipher:
decryptPackethasDecryptedAnylowestDecryptedPktNum

Field Detail

cipherback to summary
private final Cipher cipher
INTEGRITY_LIMITback to summary
private static final long INTEGRITY_LIMIT
ivback to summary
private final byte[] iv
keyback to summary
private final SecretKey key

Constructor Detail

T13GCMReadCipherback to summary
pack-priv T13GCMReadCipher(final CipherSuite cipherSuite, final SecretKey baseSecret, final SecretKey key, final byte[] iv, final SecretKey hp, final int keyPhase) throws GeneralSecurityException

Method Detail

doDecryptback to summary
protected void doDecrypt(long packetNumber, ByteBuffer packet, int headerLength, ByteBuffer output) throws AEADBadTagException, ShortBufferException, QuicTransportException

Implements abstract sun.security.ssl.QuicCipher.QuicReadCipher.doDecrypt.

Annotations
@Override
doDiscardback to summary
protected final void doDiscard()

Implements abstract sun.security.ssl.QuicCipher.doDiscard.

Annotations
@Override
integrityLimitback to summary
pack-priv long integrityLimit()

Implements abstract sun.security.ssl.QuicCipher.QuicReadCipher.integrityLimit.

Doc from sun.security.ssl.QuicCipher.QuicReadCipher.integrityLimit.

Returns the maximum limit on the number of packets that fail decryption, across all key (updates), using this QuicReadCipher. This method must not return a value less than 0.

Annotations
@Override
sun.security.ssl back to summary

pack-priv final Class QuicCipher.T13GCMWriteCipher

extends QuicWriteCipher
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Cipher
private static final String
private static final long
private final byte[]
private final SecretKey

Constructor Summary

AccessConstructor and Description
pack-priv
T13GCMWriteCipher(final CipherSuite cipherSuite, final SecretKey baseSecret, final SecretKey key, final byte[] iv, final SecretKey hp, final int keyPhase)

Method Summary

Modifier and TypeMethod and Description
pack-priv long
confidentialityLimit()

Implements abstract sun.security.ssl.QuicCipher.QuicWriteCipher.confidentialityLimit.

Returns the maximum limit on the number of packets that are allowed to be encrypted with this instance of QuicWriteCipher.

protected final void
pack-priv void
doEncryptPacket(long packetNumber, ByteBuffer packetHeader, ByteBuffer packetPayload, ByteBuffer output)

Implements abstract sun.security.ssl.QuicCipher.QuicWriteCipher.doEncryptPacket.

Inherited from sun.security.ssl.QuicCipher.QuicWriteCipher:
encryptPacketgetNumEncryptedhasEncryptedAnylowestEncryptedPktNum

Field Detail

cipherback to summary
private final Cipher cipher
CIPHER_ALGORITHM_NAMEback to summary
private static final String CIPHER_ALGORITHM_NAME
CONFIDENTIALITY_LIMITback to summary
private static final long CONFIDENTIALITY_LIMIT
ivback to summary
private final byte[] iv
keyback to summary
private final SecretKey key

Constructor Detail

T13GCMWriteCipherback to summary
pack-priv T13GCMWriteCipher(final CipherSuite cipherSuite, final SecretKey baseSecret, final SecretKey key, final byte[] iv, final SecretKey hp, final int keyPhase) throws GeneralSecurityException

Method Detail

confidentialityLimitback to summary
pack-priv long confidentialityLimit()

Implements abstract sun.security.ssl.QuicCipher.QuicWriteCipher.confidentialityLimit.

Doc from sun.security.ssl.QuicCipher.QuicWriteCipher.confidentialityLimit.

Returns the maximum limit on the number of packets that are allowed to be encrypted with this instance of QuicWriteCipher. A value less than 0 implies that there's no limit.

Annotations
@Override
doDiscardback to summary
protected final void doDiscard()

Implements abstract sun.security.ssl.QuicCipher.doDiscard.

Annotations
@Override
doEncryptPacketback to summary
pack-priv void doEncryptPacket(long packetNumber, ByteBuffer packetHeader, ByteBuffer packetPayload, ByteBuffer output) throws ShortBufferException, QuicTransportException

Implements abstract sun.security.ssl.QuicCipher.QuicWriteCipher.doEncryptPacket.

Annotations
@Override