All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----java.security.IJCE_Traceable | +----java.security.Cipher | +----cryptix.provider.rpk.BlockCipher
java.security.Cipher
to implement the
RPK block cipher algorithm in Java.
An RPK block cipher operates on blocks of data 256 bytes long. At the beginning of each cipher operation, a new 256-entry swap table is generated which is then used to alter the ordering of the data. The contents of these swap tables are obtained from the session key's mixer-generator.
As it is the case with the RPK stream cipher, a skipCountMask
property is used to compute how many bytes from the keystream
sequence will be discarded after processing each block. The exact
value of the number of bytes to discard is computed by masking the
crc value of the whole preceding data processed so far.
References:
Copyright © 1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.4 $
skipCountMask
to use.
public BlockCipher()
public int engineBlockSize()
public void engineInitEncrypt(Key key) throws KeyException
public void engineInitDecrypt(Key key) throws KeyException
public int engineUpdate(byte in[], int inOffset, int inLen, byte out[], int outOffset)
public void setSkipCountMask(int m)
skipCountMask
to use.
skipCountMask
to use. If
zero a default value will be chosen.
All Packages Class Hierarchy This Package Previous Next Index