Java 类org.bouncycastle.crypto.engines.NullEngine 实例源码

项目:irma_future_id    文件:MacThroughputTest.java   
public static void main(String[] args)
{
    testMac(new HMac(new SHA1Digest()), new KeyParameter(generateNonce(20)), 3);
    testMac(new SkeinMac(SkeinMac.SKEIN_512, 128), new KeyParameter(generateNonce(64)), 2);
    testMac(new SipHash(), new KeyParameter(generateNonce(16)), 1);
    testMac(new CMac(new AESFastEngine()), new KeyParameter(generateNonce(16)), 3);
    testMac(new GMac(new GCMBlockCipher(new AESFastEngine())), new ParametersWithIV(new KeyParameter(
            generateNonce(16)), generateNonce(16)), 5);
    testMac(new Poly1305(new NullEngine(16)), new ParametersWithIV(generatePoly1305Key(), generateNonce(16)), 1);
    testMac(new Poly1305(new AESFastEngine()), new ParametersWithIV(generatePoly1305Key(), generateNonce(16)), 1);
    testMac(new Poly1305Reference(new NullEngine(16)), new ParametersWithIV(generatePoly1305Key(),
            generateNonce(16)), 1);
}
项目:gwt-crypto    文件:NullTest.java   
NullTest()
{
    super(tests, new NullEngine(), new KeyParameter(new byte[2]));
}
项目:irma_future_id    文件:NullTest.java   
NullTest()
{
    super(tests, new NullEngine(), new KeyParameter(new byte[2]));
}
项目:bc-java    文件:NullTest.java   
NullTest()
{
    super(tests, new NullEngine(), new KeyParameter(new byte[2]));
}