Bouncy Castle Cryptography Library 1.64

org.bouncycastle.crypto.tls
Class TlsNullCipher

java.lang.Object
  extended byorg.bouncycastle.crypto.tls.TlsNullCipher
All Implemented Interfaces:
TlsCipher

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

public class TlsNullCipher
extends java.lang.Object
implements TlsCipher

A NULL CipherSuite with optional MAC


Field Summary
protected  TlsContext context
          Deprecated.  
protected  TlsMac readMac
          Deprecated.  
protected  TlsMac writeMac
          Deprecated.  
 
Constructor Summary
TlsNullCipher(TlsContext context)
          Deprecated.  
TlsNullCipher(TlsContext context, Digest clientWriteDigest, Digest serverWriteDigest)
          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.  
 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

context

protected TlsContext context
Deprecated. 

writeMac

protected TlsMac writeMac
Deprecated. 

readMac

protected TlsMac readMac
Deprecated. 
Constructor Detail

TlsNullCipher

public TlsNullCipher(TlsContext context)
Deprecated. 

TlsNullCipher

public TlsNullCipher(TlsContext context,
                     Digest clientWriteDigest,
                     Digest serverWriteDigest)
              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
Throws:
java.io.IOException

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
Throws:
java.io.IOException

Bouncy Castle Cryptography Library 1.64