gnu.crypto.assembly

Class ModeStage


(package private) class ModeStage
extends Stage

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:
$Revision: 1.3 $

Field Summary

Fields inherited from class gnu.crypto.assembly.Stage

DIRECTION, forward, wired

Constructor Summary

ModeStage(IMode mode, Direction forwardDirection)

Method Summary

Set
blockSizes()
int
currentBlockSize()
(package private) void
initDelegate(Map attributes)
(package private) void
resetDelegate()
boolean
selfTest()
(package private) void
updateDelegate(byte[] in, int inOffset, byte[] out, int outOffset)

Methods inherited from class gnu.crypto.assembly.Stage

blockSizes, currentBlockSize, getInstance, getInstance, init, initDelegate, reset, resetDelegate, selfTest, update, updateDelegate

Constructor Details

ModeStage

(package private)  ModeStage(IMode mode,
                             Direction forwardDirection)

Method Details

blockSizes

public Set blockSizes()
Overrides:
blockSizes in interface Stage

currentBlockSize

public int currentBlockSize()
            throws IllegalStateException
Overrides:
currentBlockSize in interface Stage

initDelegate

(package private)  void initDelegate(Map attributes)
            throws InvalidKeyException
Overrides:
initDelegate in interface Stage

resetDelegate

(package private)  void resetDelegate()
Overrides:
resetDelegate in interface Stage

selfTest

public boolean selfTest()
Overrides:
selfTest in interface Stage

updateDelegate

(package private)  void updateDelegate(byte[] in,
                                       int inOffset,
                                       byte[] out,
                                       int outOffset)
Overrides:
updateDelegate in interface Stage

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.