01: package org.bouncycastle.crypto.test;
02:
03: import org.bouncycastle.crypto.engines.SkipjackEngine;
04: import org.bouncycastle.crypto.params.KeyParameter;
05: import org.bouncycastle.util.encoders.Hex;
06: import org.bouncycastle.util.test.SimpleTest;
07:
08: /**
09: */
10: public class SkipjackTest extends CipherTest {
11: static SimpleTest[] tests = { new BlockCipherVectorTest(0,
12: new SkipjackEngine(), new KeyParameter(Hex
13: .decode("00998877665544332211")),
14: "33221100ddccbbaa", "2587cae27a12d300") };
15:
16: SkipjackTest() {
17: super (tests, new SkipjackEngine(), new KeyParameter(Hex
18: .decode("00998877665544332211")));
19: }
20:
21: public String getName() {
22: return "SKIPJACK";
23: }
24:
25: public static void main(String[] args) {
26: runTest(new SkipjackTest());
27: }
28: }
|