Class Overview
A generic TLS 1.0 block cipher. This can be used for AES or 3DES for example.
Summary
Public Methods |
byte[]
|
decodeCiphertext(short type, byte[] ciphertext, int offset, int len)
|
byte[]
|
encodePlaintext(short type, byte[] plaintext, int offset, int len)
|
Fields
Public Constructors
Public Methods
public
byte[]
decodeCiphertext
(short type, byte[] ciphertext, int offset, int len)
public
byte[]
encodePlaintext
(short type, byte[] plaintext, int offset, int len)
Protected Methods
protected
int
chooseExtraPadBlocks
(SecureRandom r, int max)
protected
void
initCipher
(boolean forEncryption, BlockCipher cipher, byte[] key_block, int key_size, int key_offset, int iv_offset)
protected
int
lowestBitSet
(int x)