@Test public void runTest() { final String plainText = "TESTING KHAZAD"; final byte[] keyBytes = KhazadMethod.GetRandomKeyBytes(); final String encrypted = KhazadMethod.Khazad(plainText, keyBytes, Mode.ENCRYPT); final String decrypted = KhazadMethod.Khazad(encrypted, keyBytes, Mode.DECRYPT); assertEquals(16, keyBytes.length); assertEquals(plainText, decrypted); }
public Khazad() { }
Khazad { public Khazad() { } }
Khazad { public Khazad() { } Khazad(); }
Khazad { public Khazad() { } Khazad(); final void keySetup(byte[/* 16 */] key); final void encrypt(byte[/* 8 */] block); final void decrypt(byte[/* 8 */] block); static void makeTestVectors(); static void main(String[] args); }
Khazad { public Khazad() { } Khazad(); final void keySetup(byte[/* 16 */] key); final void encrypt(byte[/* 8 */] block); final void decrypt(byte[/* 8 */] block); static void makeTestVectors(); static void main(String[] args); static final int R; }