Bouncy Castle Cryptography Library 1.46

org.bouncycastle.crypto.tls
Class TlsNullCipher

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

public class TlsNullCipher
extends java.lang.Object
implements TlsCipher

A NULL CipherSuite in java, this should only be used during handshake.


Constructor Summary
TlsNullCipher()
           
 
Method Summary
protected  byte[] copyData(byte[] text, int offset, int len)
           
 byte[] decodeCiphertext(short type, byte[] ciphertext, int offset, int len)
           
 byte[] encodePlaintext(short type, byte[] plaintext, int offset, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TlsNullCipher

public TlsNullCipher()
Method Detail

encodePlaintext

public byte[] encodePlaintext(short type,
                              byte[] plaintext,
                              int offset,
                              int len)
Specified by:
encodePlaintext in interface TlsCipher

decodeCiphertext

public byte[] decodeCiphertext(short type,
                               byte[] ciphertext,
                               int offset,
                               int len)
Specified by:
decodeCiphertext in interface TlsCipher

copyData

protected byte[] copyData(byte[] text,
                          int offset,
                          int len)

Bouncy Castle Cryptography Library 1.46