|
Bouncy Castle Cryptography Library 1.64 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.crypto.tls.Chacha20Poly1305
draft-ietf-tls-chacha20-poly1305-04
Field Summary | |
protected TlsContext |
context
Deprecated. |
protected ChaCha7539Engine |
decryptCipher
Deprecated. |
protected byte[] |
decryptIV
Deprecated. |
protected ChaCha7539Engine |
encryptCipher
Deprecated. |
protected byte[] |
encryptIV
Deprecated. |
Constructor Summary | |
Chacha20Poly1305(TlsContext context)
Deprecated. |
Method Summary | |
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 KeyParameter |
generateRecordMACKey(StreamCipher cipher)
Deprecated. |
protected byte[] |
getAdditionalData(long seqNo,
short type,
int len)
Deprecated. |
int |
getPlaintextLimit(int ciphertextLimit)
Deprecated. |
protected KeyParameter |
initRecord(StreamCipher cipher,
boolean forEncryption,
long seqNo,
byte[] iv)
Deprecated. |
protected void |
updateRecordMACLength(Mac mac,
int len)
Deprecated. |
protected void |
updateRecordMACText(Mac mac,
byte[] buf,
int off,
int len)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected TlsContext context
protected ChaCha7539Engine encryptCipher
protected ChaCha7539Engine decryptCipher
protected byte[] encryptIV
protected byte[] decryptIV
Constructor Detail |
public Chacha20Poly1305(TlsContext context) throws java.io.IOException
Method Detail |
public int getPlaintextLimit(int ciphertextLimit)
getPlaintextLimit
in interface TlsCipher
public byte[] encodePlaintext(long seqNo, short type, byte[] plaintext, int offset, int len) throws java.io.IOException
encodePlaintext
in interface TlsCipher
java.io.IOException
public byte[] decodeCiphertext(long seqNo, short type, byte[] ciphertext, int offset, int len) throws java.io.IOException
decodeCiphertext
in interface TlsCipher
java.io.IOException
protected KeyParameter initRecord(StreamCipher cipher, boolean forEncryption, long seqNo, byte[] iv)
protected byte[] calculateNonce(long seqNo, byte[] iv)
protected KeyParameter generateRecordMACKey(StreamCipher cipher)
protected byte[] calculateRecordMAC(KeyParameter macKey, byte[] additionalData, byte[] buf, int off, int len)
protected void updateRecordMACLength(Mac mac, int len)
protected void updateRecordMACText(Mac mac, byte[] buf, int off, int len)
protected byte[] getAdditionalData(long seqNo, short type, int len) throws java.io.IOException
java.io.IOException
|
Bouncy Castle Cryptography Library 1.64 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |