com.objectwave.crypto
Class SquareEcb

java.lang.Object
  |
  +--com.objectwave.crypto.SquareEcb
All Implemented Interfaces:
SquareMode

public final class SquareEcb
extends java.lang.Object
implements SquareMode


Constructor Summary
SquareEcb()
           
 
Method Summary
 void decrypt(byte[] buf, int off, int len)
           
 void encrypt(byte[] buf, int off, int len)
           
 void setIV(byte[] iv)
           
 void setKey(byte[] key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SquareEcb

public SquareEcb()
Method Detail

setKey

public final void setKey(byte[] key)
Specified by:
setKey in interface SquareMode

setIV

public final void setIV(byte[] iv)
Specified by:
setIV in interface SquareMode

encrypt

public final void encrypt(byte[] buf,
                          int off,
                          int len)
Specified by:
encrypt in interface SquareMode

decrypt

public final void decrypt(byte[] buf,
                          int off,
                          int len)
Specified by:
decrypt in interface SquareMode