public abstract class BlockCipher
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
blockSizeInBytes |
protected static byte |
TERMINATOR |
| Modifier | Constructor and Description |
|---|---|
protected |
BlockCipher(int blockSize) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] encryptedContent)
Decrypts the whole content, block by block.
|
protected abstract byte[] |
decryptBlock(byte[] encryptedContent,
int offset)
Decrypts single block of encrypted content.
|
byte[] |
encrypt(byte[] content)
Encrypts complete content, block by block.
|
protected abstract byte[] |
encryptBlock(byte[] content,
int offset)
Encrypts single block of plain content.
|
protected static final byte TERMINATOR
protected final int blockSizeInBytes
protected abstract byte[] encryptBlock(byte[] content,
int offset)
protected abstract byte[] decryptBlock(byte[] encryptedContent,
int offset)
public byte[] encrypt(byte[] content)
public byte[] decrypt(byte[] encryptedContent)
Copyright © 2003-present Jodd Team