|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.logi.crypto.Crypto
org.logi.crypto.Producer
org.logi.crypto.modes.OFBProducer
This class is used by EncryptOFB and DecryptOFB to precalculate the keystream.
EncryptOFB
,
DecryptOFB
Field Summary |
Fields inherited from class org.logi.crypto.Crypto |
BIT, cdsPath, EMPTY_ARRAY, FOUR, keySource, NIBBLE, ONE, primeCertainty, random, TWO, ZERO |
Constructor Summary | |
|
OFBProducer(CipherKey key,
int bufSize)
Create new OFB thread with the given key and buffer size, but random IV. |
protected |
OFBProducer(CipherKey key,
int bufSize,
byte[] IV,
int i)
Create new OFB thread with the given key, buffer size and IV[i..i+key.plainBlockSize()-1]. |
Method Summary | |
void |
calculate(byte[] buf)
Calculate the next bytes from the key-stream and put in buf. |
Methods inherited from class org.logi.crypto.Producer |
kill, nextBuffer, run, start |
Methods inherited from class org.logi.crypto.Crypto |
binString, binString, equal, equalRelaxed, equalSub, fromHexNibble, fromHexString, fromString, fromString, hexString, hexString, hexString, hexString, hexString, initRandom, initRandom, makeClass, makeInt, makeLong, makeSessionKey, pastSpace, pickBits, pickBits, readBlock, readInt, writeBytes, writeBytes, writeInt |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OFBProducer(CipherKey key, int bufSize)
protected OFBProducer(CipherKey key, int bufSize, byte[] IV, int i)
Method Detail |
public void calculate(byte[] buf)
calculate
in class Producer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |