Bouncy Castle Cryptography Library 1.64

org.bouncycastle.crypto.tls
Class TlsAEADCipher

java.lang.Object
  |
  +--org.bouncycastle.crypto.tls.TlsAEADCipher
All Implemented Interfaces:
TlsCipher

Deprecated. Migrate to the (D)TLS API in org.bouncycastle.tls (bctls jar).

public class TlsAEADCipher
extends java.lang.Object
implements TlsCipher


Field Summary
protected  TlsContext context
          Deprecated.  
protected  AEADBlockCipher decryptCipher
          Deprecated.  
protected  byte[] decryptImplicitNonce
          Deprecated.  
protected  AEADBlockCipher encryptCipher
          Deprecated.  
protected  byte[] encryptImplicitNonce
          Deprecated.  
protected  int macSize
          Deprecated.  
static int NONCE_RFC5288
          Deprecated.  
protected  int nonceMode
          Deprecated.  
protected  int record_iv_length
          Deprecated.  
 
Constructor Summary
TlsAEADCipher(TlsContext context, AEADBlockCipher clientWriteCipher, AEADBlockCipher serverWriteCipher, int cipherKeySize, int macSize)
          Deprecated.  
 
Method Summary
 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  byte[] getAdditionalData(long seqNo, short type, int len)
          Deprecated.  
 int getPlaintextLimit(int ciphertextLimit)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONCE_RFC5288

public static final int NONCE_RFC5288
Deprecated. 

context

protected TlsContext context
Deprecated. 

macSize

protected int macSize
Deprecated. 

record_iv_length

protected int record_iv_length
Deprecated. 

encryptCipher

protected AEADBlockCipher encryptCipher
Deprecated. 

decryptCipher

protected AEADBlockCipher decryptCipher
Deprecated. 

encryptImplicitNonce

protected byte[] encryptImplicitNonce
Deprecated. 

decryptImplicitNonce

protected byte[] decryptImplicitNonce
Deprecated. 

nonceMode

protected int nonceMode
Deprecated. 
Constructor Detail

TlsAEADCipher

public TlsAEADCipher(TlsContext context,
                     AEADBlockCipher clientWriteCipher,
                     AEADBlockCipher serverWriteCipher,
                     int cipherKeySize,
                     int macSize)
              throws java.io.IOException
Deprecated. 
Method Detail

getPlaintextLimit

public int getPlaintextLimit(int ciphertextLimit)
Deprecated. 
Specified by:
getPlaintextLimit in interface TlsCipher

encodePlaintext

public byte[] encodePlaintext(long seqNo,
                              short type,
                              byte[] plaintext,
                              int offset,
                              int len)
                       throws java.io.IOException
Deprecated. 
Specified by:
encodePlaintext in interface TlsCipher

decodeCiphertext

public byte[] decodeCiphertext(long seqNo,
                               short type,
                               byte[] ciphertext,
                               int offset,
                               int len)
                        throws java.io.IOException
Deprecated. 
Specified by:
decodeCiphertext in interface TlsCipher

getAdditionalData

protected byte[] getAdditionalData(long seqNo,
                                   short type,
                                   int len)
                            throws java.io.IOException
Deprecated. 

Bouncy Castle Cryptography Library 1.64