|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.crypto.assembly.Stage gnu.crypto.assembly.ModeStage
An IMode
Stage
in a Cascade
Cipher chain.
Such a stage wraps an implementation of a Block Cipher Mode of Operation
(IMode
) to allow inclusion of such an instance in a cascade of block
ciphers.
Field Summary |
Fields inherited from class gnu.crypto.assembly.Stage |
DIRECTION, forward, wired |
Constructor Summary | |
(package private) |
ModeStage(IMode mode,
Direction forwardDirection)
|
Method Summary | |
java.util.Set |
blockSizes()
Returns the Set of supported block sizes for this
Stage . |
int |
currentBlockSize()
Returns the currently set block size for the stage. |
(package private) void |
initDelegate(java.util.Map attributes)
|
(package private) void |
resetDelegate()
|
boolean |
selfTest()
Conducts a simple correctness test that consists of basic symmetric encryption / decryption test(s) for all supported block and key sizes of underlying block cipher(s) wrapped by Mode leafs. |
(package private) void |
updateDelegate(byte[] in,
int inOffset,
byte[] out,
int outOffset)
|
Methods inherited from class gnu.crypto.assembly.Stage |
getInstance, getInstance, init, reset, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
ModeStage(IMode mode, Direction forwardDirection)
Method Detail |
public java.util.Set blockSizes()
Stage
Set
of supported block sizes for this
Stage
. Each element in the returned Set
is an
instance of Integer
.
blockSizes
in class Stage
Set
of supported block sizes.void initDelegate(java.util.Map attributes) throws java.security.InvalidKeyException
initDelegate
in class Stage
java.security.InvalidKeyException
public int currentBlockSize() throws java.lang.IllegalStateException
Stage
currentBlockSize
in class Stage
java.lang.IllegalStateException
- if the instance is not initialised.void resetDelegate()
resetDelegate
in class Stage
void updateDelegate(byte[] in, int inOffset, byte[] out, int outOffset)
updateDelegate
in class Stage
public boolean selfTest()
Stage
selfTest
in class Stage
true
if the implementation passes simple
correctness tests. Returns false
otherwise.
|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |