Package org.bouncycastle.crypto.tls
Class Chacha20Poly1305
- java.lang.Object
-
- org.bouncycastle.crypto.tls.Chacha20Poly1305
-
-
Field Summary
Fields Modifier and Type Field Description protected TlsContextcontextDeprecated.protected ChaCha7539EnginedecryptCipherDeprecated.protected byte[]decryptIVDeprecated.protected ChaCha7539EngineencryptCipherDeprecated.protected byte[]encryptIVDeprecated.
-
Constructor Summary
Constructors Constructor Description Chacha20Poly1305(TlsContext context)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected byte[]calculateNonce(long seqNo, byte[] iv)Deprecated.protected byte[]calculateRecordMAC(KeyParameter macKey, byte[] additionalData, byte[] buf, int off, int len)Deprecated.byte[]decodeCiphertext(long seqNo, short type, byte[] ciphertext, int offset, int len)Deprecated.byte[]encodePlaintext(long seqNo, short type, byte[] plaintext, int offset, int len)Deprecated.protected KeyParametergenerateRecordMACKey(StreamCipher cipher)Deprecated.protected byte[]getAdditionalData(long seqNo, short type, int len)Deprecated.intgetPlaintextLimit(int ciphertextLimit)Deprecated.protected KeyParameterinitRecord(StreamCipher cipher, boolean forEncryption, long seqNo, byte[] iv)Deprecated.protected voidupdateRecordMACLength(Mac mac, int len)Deprecated.protected voidupdateRecordMACText(Mac mac, byte[] buf, int off, int len)Deprecated.
-
-
-
Field Detail
-
context
protected TlsContext context
Deprecated.
-
encryptCipher
protected ChaCha7539Engine encryptCipher
Deprecated.
-
decryptCipher
protected ChaCha7539Engine decryptCipher
Deprecated.
-
encryptIV
protected byte[] encryptIV
Deprecated.
-
decryptIV
protected byte[] decryptIV
Deprecated.
-
-
Constructor Detail
-
Chacha20Poly1305
public Chacha20Poly1305(TlsContext context) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
-
Method Detail
-
getPlaintextLimit
public int getPlaintextLimit(int ciphertextLimit)
Deprecated.- Specified by:
getPlaintextLimitin interfaceTlsCipher
-
encodePlaintext
public byte[] encodePlaintext(long seqNo, short type, byte[] plaintext, int offset, int len) throws java.io.IOExceptionDeprecated.- Specified by:
encodePlaintextin interfaceTlsCipher- Throws:
java.io.IOException
-
decodeCiphertext
public byte[] decodeCiphertext(long seqNo, short type, byte[] ciphertext, int offset, int len) throws java.io.IOExceptionDeprecated.- Specified by:
decodeCiphertextin interfaceTlsCipher- Throws:
java.io.IOException
-
initRecord
protected KeyParameter initRecord(StreamCipher cipher, boolean forEncryption, long seqNo, byte[] iv)
Deprecated.
-
calculateNonce
protected byte[] calculateNonce(long seqNo, byte[] iv)Deprecated.
-
generateRecordMACKey
protected KeyParameter generateRecordMACKey(StreamCipher cipher)
Deprecated.
-
calculateRecordMAC
protected byte[] calculateRecordMAC(KeyParameter macKey, byte[] additionalData, byte[] buf, int off, int len)
Deprecated.
-
updateRecordMACLength
protected void updateRecordMACLength(Mac mac, int len)
Deprecated.
-
updateRecordMACText
protected void updateRecordMACText(Mac mac, byte[] buf, int off, int len)
Deprecated.
-
getAdditionalData
protected byte[] getAdditionalData(long seqNo, short type, int len) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
-