Bouncy Castle Cryptography Library 1.64

org.bouncycastle.crypto.tls
Class TlsStreamCipher

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

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

public class TlsStreamCipher
extends java.lang.Object
implements TlsCipher


Field Summary
protected  TlsContext context
          Deprecated.  
protected  StreamCipher decryptCipher
          Deprecated.  
protected  StreamCipher encryptCipher
          Deprecated.  
protected  TlsMac readMac
          Deprecated.  
protected  boolean usesNonce
          Deprecated.  
protected  TlsMac writeMac
          Deprecated.  
 
Constructor Summary
TlsStreamCipher(TlsContext context, StreamCipher clientWriteCipher, StreamCipher serverWriteCipher, Digest clientWriteDigest, Digest serverWriteDigest, int cipherKeySize, boolean usesNonce)
          Deprecated.  
 
Method Summary
protected  void checkMAC(long seqNo, short type, byte[] recBuf, int recStart, int recEnd, byte[] calcBuf, int calcOff, int calcLen)
          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.  
 int getPlaintextLimit(int ciphertextLimit)
          Deprecated.  
protected  void updateIV(StreamCipher cipher, boolean forEncryption, long seqNo)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected TlsContext context
Deprecated. 

encryptCipher

protected StreamCipher encryptCipher
Deprecated. 

decryptCipher

protected StreamCipher decryptCipher
Deprecated. 

writeMac

protected TlsMac writeMac
Deprecated. 

readMac

protected TlsMac readMac
Deprecated. 

usesNonce

protected boolean usesNonce
Deprecated. 
Constructor Detail

TlsStreamCipher

public TlsStreamCipher(TlsContext context,
                       StreamCipher clientWriteCipher,
                       StreamCipher serverWriteCipher,
                       Digest clientWriteDigest,
                       Digest serverWriteDigest,
                       int cipherKeySize,
                       boolean usesNonce)
                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)
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

checkMAC

protected void checkMAC(long seqNo,
                        short type,
                        byte[] recBuf,
                        int recStart,
                        int recEnd,
                        byte[] calcBuf,
                        int calcOff,
                        int calcLen)
                 throws java.io.IOException
Deprecated. 

updateIV

protected void updateIV(StreamCipher cipher,
                        boolean forEncryption,
                        long seqNo)
Deprecated. 

Bouncy Castle Cryptography Library 1.64