ami.security
Class AMISymmetric
java.lang.Object
|
+--ami.security.AMISymmetric
- public class AMISymmetric
- extends Object
Provides symmetrical cryptography material ( mainly blowfish implementation )
- Version:
- 1.0
- Author:
- Bertrand Florat
Field Summary |
private static char[] |
hex
|
private static int[] |
Pi
|
private static int |
rounds
|
private static int[] |
S0
|
private static int[] |
S1
|
private static int[] |
S2
|
private static int[] |
S3
|
private static long[] |
t2
|
Method Summary |
private static void |
BF_encrypt(int L,
int R,
int[] out,
int outOff,
int[] P,
int[] sKey)
put your documentation comment here |
static byte[] |
bfDecode(byte[] bIn,
int[] P,
int[] sKey)
put your documentation comment here |
static byte[] |
bfEncode(byte[] bIn,
int[] P,
int[] sKey)
put your documentation comment here |
(package private) static void |
blowfishDecrypt(byte[] in,
int off,
byte[] out,
int outOff,
int[] P,
int[] sKey)
put your documentation comment here |
(package private) static void |
blowfishEncrypt(byte[] in,
int off,
byte[] out,
int outOff,
int[] P,
int[] sKey)
put your documentation comment here |
static void |
makeKey(byte[] kk,
int[] P,
int[] sKey)
Called to inilialize blowfish key
kk an P are void arrays |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait |
t2
private static final long[] t2
Pi
private static final int[] Pi
S0
private static final int[] S0
S1
private static final int[] S1
S2
private static final int[] S2
S3
private static final int[] S3
rounds
private static final int rounds
hex
private static final char[] hex
AMISymmetric
public AMISymmetric()
BF_encrypt
private static final void BF_encrypt(int L,
int R,
int[] out,
int outOff,
int[] P,
int[] sKey)
- put your documentation comment here
- Parameters:
L
- R
- out
- outOff
- P
- sKey
-
bfEncode
public static byte[] bfEncode(byte[] bIn,
int[] P,
int[] sKey)
- put your documentation comment here
- Parameters:
bIn
- P
- sKey
- - Returns:
- encoded byte array
blowfishEncrypt
static void blowfishEncrypt(byte[] in,
int off,
byte[] out,
int outOff,
int[] P,
int[] sKey)
- put your documentation comment here
- Parameters:
in
- off
- out
- outOff
- P
- sKey
-
blowfishDecrypt
static void blowfishDecrypt(byte[] in,
int off,
byte[] out,
int outOff,
int[] P,
int[] sKey)
- put your documentation comment here
- Parameters:
in
- off
- out
- outOff
- P
- sKey
-
bfDecode
public static byte[] bfDecode(byte[] bIn,
int[] P,
int[] sKey)
throws Exception
- put your documentation comment here
- Parameters:
bIn
- P
- sKey
- - Returns:
- decoded byte array
- Throws:
Exception
-
makeKey
public static void makeKey(byte[] kk,
int[] P,
int[] sKey)
- Called to inilialize blowfish key
kk an P are void arrays