Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
xjava.security.IJCE_Traceable
xjava.security.Cipher
cryptix.provider.cipher.LOKI91
="
" This="This" current="current" version="version" is="is" based="based" on="on" special="special" C-code="C-code" obtained,="obtained," under="under" license,="license," from="from" The="The" School="School" of="of" Computer="Computer" Science,="Science," UC,="UC," UNSW.="UNSW." The="The" speed="speed" gain="gain" is="is" achieved="achieved" by="by" pre-computing="pre-computing" the="the" 4,096="4,096" values="values" of="of" the="the" substitutions="substitutions" (S-Box)="(S-Box)" used="used" by="by" the="the" algorithm="algorithm" as="as" well="well" as="as" the="the" permutations="permutations" for="for" all="all" possible="possible" 256="256" input="input" values="values" for="for" each="each" of="of" the="the" four="four" 8-bit="8-bit" blocks.="blocks."
="
" References:="References:" =" " ="
" "
="
="
" Copyright="Copyright" ©="©" 1997="1997" Systemics=">Systemics" Ltd="Ltd" on="on" behalf="behalf" of="of" the="the" Cryptix=">Cryptix" Development="Development" Team.="Team."
All="
All" rights="rights" reserved.="reserved."
="
" $Revision:="$Revision:" 1.3="1.3" $="$">
Field Summary |
Fields inherited from class xjava.security.Cipher | |
DECRYPT , ENCRYPT , UNINITIALIZED |
Fields inherited from class xjava.security.IJCE_Traceable | |
tracing |
Constructor Summary | |
|
Method Summary | |
Object |
|
protected int |
|
protected void |
|
protected void |
|
protected int |
|
protected void |
|
static LinkStatus |
|
Methods inherited from class xjava.security.IJCE_Traceable | |
disableTracing , enableTracing , traceMethod , traceResult , traceResult , traceVoidMethod |
public LOKI91()
Constructs a LOKI91 cipher object, in the UNINITIALIZED state. This calls the Cipher constructor with implBuffering false, implPadding false and the provider set to "Cryptix".
public final Object clone() throws CloneNotSupportedException
Always throws a CloneNotSupportedException (cloning of ciphers is not supported for security reasons).
- Overrides:
- clone in interface Cipher
protected int engineBlockSize()
SPI: Returns the length of an input block, in bytes.
- Overrides:
- engineBlockSize in interface Cipher
- Returns:
- the length in bytes of an input block for this cipher.
protected void engineInitDecrypt(Key key) throws KeyException
SPI: Initializes this cipher for decryption, using the specified key.
- Overrides:
- engineInitDecrypt in interface Cipher
- Parameters:
key
- the key to use for decryption.
protected void engineInitEncrypt(Key key) throws KeyException
SPI: Initializes this cipher for encryption, using the specified key.
- Overrides:
- engineInitEncrypt in interface Cipher
- Parameters:
key
- the key to use for encryption.
protected int engineUpdate(byte[] in, int inOffset, int inLen, byte[] out, int outOffset)
SPI: This is the main engine method for updating data. in and out may be the same array, and the input and output regions may overlap.
- Overrides:
- engineUpdate in interface Cipher
- Parameters:
in
- the input data.inOffset
- the offset into in specifying where the data starts.inLen
- the length of the subarray.out
- the output array.outOffset
- the offset indicating where to start writing into the out array.
- Returns:
- the number of bytes written.
protected final void finalize()
Cleans up resources used by this instance, if necessary.
public static LinkStatus getLinkStatus()
Gets an object representing the native linking status of this class.