gnu.crypto.assembly
Class ModeStage
(package private) class 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.
Version:
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(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)
|
blockSizes , currentBlockSize , getInstance , getInstance , init , initDelegate , reset , resetDelegate , selfTest , update , updateDelegate |
ModeStage
(package private) ModeStage(IMode mode,
Direction forwardDirection)
blockSizes
public Set blockSizes()
Returns the Set
of supported block sizes for this
Stage
. Each element in the returned Set
is an
instance of Integer
.
- blockSizes in interface Stage
- a
Set
of supported block sizes.
currentBlockSize
public int currentBlockSize()
throws IllegalStateException
Returns the currently set block size for the stage.
- currentBlockSize in interface Stage
- the current block size for this stage.
initDelegate
(package private) void initDelegate(Map attributes)
throws InvalidKeyException
- initDelegate in interface Stage
resetDelegate
(package private) void resetDelegate()
- resetDelegate in interface Stage
selfTest
public 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. The test also includes
one (1) variable key Known Answer Test (KAT) for each block cipher.
- selfTest in interface Stage
true
if the implementation passes simple
correctness tests. Returns false
otherwise.
updateDelegate
(package private) void updateDelegate(byte[] in,
int inOffset,
byte[] out,
int outOffset)
- updateDelegate in interface Stage
Copyright © 2001, 2002, 2003
Free Software Foundation,
Inc. All Rights Reserved.