org.bouncycastle.crypto.tls
Class TlsNullCipher
java.lang.Object
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.
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 |
TlsNullCipher
public TlsNullCipher()
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)