~brian-thomason/+junk/bouncycastle

« back to all changes in this revision

Viewing changes to test/src/org/bouncycastle/crypto/test/SkipjackTest.java

  • Committer: Brian Thomason
  • Date: 2011-12-20 17:20:32 UTC
  • Revision ID: brian.thomason@canonical.com-20111220172032-rdtm13jgdxtksacr
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.bouncycastle.crypto.test;
 
2
 
 
3
import org.bouncycastle.crypto.engines.SkipjackEngine;
 
4
import org.bouncycastle.crypto.params.KeyParameter;
 
5
import org.bouncycastle.util.encoders.Hex;
 
6
import org.bouncycastle.util.test.SimpleTest;
 
7
 
 
8
/**
 
9
 */
 
10
public class SkipjackTest
 
11
    extends CipherTest
 
12
{
 
13
    static SimpleTest[]  tests = 
 
14
            {
 
15
                new BlockCipherVectorTest(0, new SkipjackEngine(),
 
16
                        new KeyParameter(Hex.decode("00998877665544332211")),
 
17
                        "33221100ddccbbaa", "2587cae27a12d300")
 
18
            };
 
19
 
 
20
    SkipjackTest()
 
21
    {
 
22
        super(tests, new SkipjackEngine(), new KeyParameter(Hex.decode("00998877665544332211")));
 
23
    }
 
24
 
 
25
    public String getName()
 
26
    {
 
27
        return "SKIPJACK";
 
28
    }
 
29
 
 
30
    public static void main(
 
31
        String[]    args)
 
32
    {
 
33
        runTest(new SkipjackTest());
 
34
    }
 
35
}