Java 类org.bouncycastle.asn1.iana.IANAObjectIdentifiers 实例源码

项目:ipack    文件:SHA1.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.SHA-1", PREFIX + "$Digest");
    provider.addAlgorithm("Alg.Alias.MessageDigest.SHA1", "SHA-1");
    provider.addAlgorithm("Alg.Alias.MessageDigest.SHA", "SHA-1");
    provider.addAlgorithm("Alg.Alias.MessageDigest." + OIWObjectIdentifiers.idSHA1, "SHA-1");

    addHMACAlgorithm(provider, "SHA1", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "SHA1", PKCSObjectIdentifiers.id_hmacWithSHA1);
    addHMACAlias(provider, "SHA1", IANAObjectIdentifiers.hmacSHA1);

    provider.addAlgorithm("Mac.PBEWITHHMACSHA", PREFIX + "$SHA1Mac");
    provider.addAlgorithm("Mac.PBEWITHHMACSHA1", PREFIX + "$SHA1Mac");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory.PBEWITHHMACSHA", "PBEWITHHMACSHA1");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory." + OIWObjectIdentifiers.idSHA1, "PBEWITHHMACSHA1");
    provider.addAlgorithm("Alg.Alias.Mac." + OIWObjectIdentifiers.idSHA1, "PBEWITHHMACSHA");

    provider.addAlgorithm("SecretKeyFactory.PBEWITHHMACSHA1", PREFIX + "$PBEWithMacKeyFactory");
    provider.addAlgorithm("SecretKeyFactory.PBKDF2WithHmacSHA1", PREFIX + "$PBKDF2WithHmacSHA1UTF8");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory." + PKCSObjectIdentifiers.id_PBKDF2, "PBKDF2WithHmacSHA1");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory.PBKDF2WithHmacSHA1AndUTF8", "PBKDF2WithHmacSHA1");
    provider.addAlgorithm("SecretKeyFactory.PBKDF2WithHmacSHA1And8BIT", PREFIX + "$PBKDF2WithHmacSHA18BIT");
}
项目:Aki-SSL    文件:SHA1.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.SHA-1", PREFIX + "$Digest");
    provider.addAlgorithm("Alg.Alias.MessageDigest.SHA1", "SHA-1");
    provider.addAlgorithm("Alg.Alias.MessageDigest.SHA", "SHA-1");
    provider.addAlgorithm("Alg.Alias.MessageDigest." + OIWObjectIdentifiers.idSHA1, "SHA-1");

    addHMACAlgorithm(provider, "SHA1", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "SHA1", PKCSObjectIdentifiers.id_hmacWithSHA1);
    addHMACAlias(provider, "SHA1", IANAObjectIdentifiers.hmacSHA1);

    provider.addAlgorithm("Mac.PBEWITHHMACSHA", PREFIX + "$SHA1Mac");
    provider.addAlgorithm("Mac.PBEWITHHMACSHA1", PREFIX + "$SHA1Mac");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory.PBEWITHHMACSHA", "PBEWITHHMACSHA1");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory." + OIWObjectIdentifiers.idSHA1, "PBEWITHHMACSHA1");
    provider.addAlgorithm("Alg.Alias.Mac." + OIWObjectIdentifiers.idSHA1, "PBEWITHHMACSHA");

    provider.addAlgorithm("SecretKeyFactory.PBEWITHHMACSHA1", PREFIX + "$PBEWithMacKeyFactory");
    provider.addAlgorithm("SecretKeyFactory.PBKDF2WithHmacSHA1", PREFIX + "$PBKDF2WithHmacSHA1UTF8");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory.PBKDF2WithHmacSHA1AndUTF8", "PBKDF2WithHmacSHA1");
    provider.addAlgorithm("SecretKeyFactory.PBKDF2WithHmacSHA1And8BIT", PREFIX + "$PBKDF2WithHmacSHA18BIT");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory.PBKDF2withASCII", "PBKDF2WithHmacSHA1And8BIT");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory.PBKDF2with8BIT", "PBKDF2WithHmacSHA1And8BIT");
}
项目:CryptMeme    文件:SHA1.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.SHA-1", PREFIX + "$Digest");
    provider.addAlgorithm("Alg.Alias.MessageDigest.SHA1", "SHA-1");
    provider.addAlgorithm("Alg.Alias.MessageDigest.SHA", "SHA-1");
    provider.addAlgorithm("Alg.Alias.MessageDigest." + OIWObjectIdentifiers.idSHA1, "SHA-1");

    addHMACAlgorithm(provider, "SHA1", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "SHA1", PKCSObjectIdentifiers.id_hmacWithSHA1);
    addHMACAlias(provider, "SHA1", IANAObjectIdentifiers.hmacSHA1);

    provider.addAlgorithm("Mac.PBEWITHHMACSHA", PREFIX + "$SHA1Mac");
    provider.addAlgorithm("Mac.PBEWITHHMACSHA1", PREFIX + "$SHA1Mac");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory.PBEWITHHMACSHA", "PBEWITHHMACSHA1");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory." + OIWObjectIdentifiers.idSHA1, "PBEWITHHMACSHA1");
    provider.addAlgorithm("Alg.Alias.Mac." + OIWObjectIdentifiers.idSHA1, "PBEWITHHMACSHA");

    provider.addAlgorithm("SecretKeyFactory.PBEWITHHMACSHA1", PREFIX + "$PBEWithMacKeyFactory");
    provider.addAlgorithm("SecretKeyFactory.PBKDF2WithHmacSHA1", PREFIX + "$PBKDF2WithHmacSHA1UTF8");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory.PBKDF2WithHmacSHA1AndUTF8", "PBKDF2WithHmacSHA1");
    provider.addAlgorithm("SecretKeyFactory.PBKDF2WithHmacSHA1And8BIT", PREFIX + "$PBKDF2WithHmacSHA18BIT");
}
项目:irma_future_id    文件:SHA1.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.SHA-1", PREFIX + "$Digest");
    provider.addAlgorithm("Alg.Alias.MessageDigest.SHA1", "SHA-1");
    provider.addAlgorithm("Alg.Alias.MessageDigest.SHA", "SHA-1");
    provider.addAlgorithm("Alg.Alias.MessageDigest." + OIWObjectIdentifiers.idSHA1, "SHA-1");

    addHMACAlgorithm(provider, "SHA1", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "SHA1", PKCSObjectIdentifiers.id_hmacWithSHA1);
    addHMACAlias(provider, "SHA1", IANAObjectIdentifiers.hmacSHA1);

    provider.addAlgorithm("Mac.PBEWITHHMACSHA", PREFIX + "$SHA1Mac");
    provider.addAlgorithm("Mac.PBEWITHHMACSHA1", PREFIX + "$SHA1Mac");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory.PBEWITHHMACSHA", "PBEWITHHMACSHA1");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory." + OIWObjectIdentifiers.idSHA1, "PBEWITHHMACSHA1");
    provider.addAlgorithm("Alg.Alias.Mac." + OIWObjectIdentifiers.idSHA1, "PBEWITHHMACSHA");

    provider.addAlgorithm("SecretKeyFactory.PBEWITHHMACSHA1", PREFIX + "$PBEWithMacKeyFactory");
    provider.addAlgorithm("SecretKeyFactory.PBKDF2WithHmacSHA1", PREFIX + "$PBKDF2WithHmacSHA1UTF8");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory.PBKDF2WithHmacSHA1AndUTF8", "PBKDF2WithHmacSHA1");
    provider.addAlgorithm("SecretKeyFactory.PBKDF2WithHmacSHA1And8BIT", PREFIX + "$PBKDF2WithHmacSHA18BIT");
}
项目:bc-java    文件:SHA1.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.SHA-1", PREFIX + "$Digest");
    provider.addAlgorithm("Alg.Alias.MessageDigest.SHA1", "SHA-1");
    provider.addAlgorithm("Alg.Alias.MessageDigest.SHA", "SHA-1");
    provider.addAlgorithm("Alg.Alias.MessageDigest." + OIWObjectIdentifiers.idSHA1, "SHA-1");

    addHMACAlgorithm(provider, "SHA1", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "SHA1", PKCSObjectIdentifiers.id_hmacWithSHA1);
    addHMACAlias(provider, "SHA1", IANAObjectIdentifiers.hmacSHA1);

    provider.addAlgorithm("Mac.PBEWITHHMACSHA", PREFIX + "$SHA1Mac");
    provider.addAlgorithm("Mac.PBEWITHHMACSHA1", PREFIX + "$SHA1Mac");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory.PBEWITHHMACSHA", "PBEWITHHMACSHA1");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory." + OIWObjectIdentifiers.idSHA1, "PBEWITHHMACSHA1");
    provider.addAlgorithm("Alg.Alias.Mac." + OIWObjectIdentifiers.idSHA1, "PBEWITHHMACSHA");

    provider.addAlgorithm("SecretKeyFactory.PBEWITHHMACSHA1", PREFIX + "$PBEWithMacKeyFactory");
    provider.addAlgorithm("SecretKeyFactory.PBKDF2WithHmacSHA1", PREFIX + "$PBKDF2WithHmacSHA1UTF8");
    provider.addAlgorithm("Alg.Alias.SecretKeyFactory.PBKDF2WithHmacSHA1AndUTF8", "PBKDF2WithHmacSHA1");
    provider.addAlgorithm("SecretKeyFactory.PBKDF2WithHmacSHA1And8BIT", PREFIX + "$PBKDF2WithHmacSHA18BIT");
}
项目:ipack    文件:RIPEMD160.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.RIPEMD160", PREFIX + "$Digest");
    provider.addAlgorithm("Alg.Alias.MessageDigest." + TeleTrusTObjectIdentifiers.ripemd160, "RIPEMD160");

    addHMACAlgorithm(provider, "RIPEMD160", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "RIPEMD160", IANAObjectIdentifiers.hmacRIPEMD160);


    provider.addAlgorithm("SecretKeyFactory.PBEWITHHMACRIPEMD160", PREFIX + "$PBEWithHmacKeyFactory");
    provider.addAlgorithm("Mac.PBEWITHHMACRIPEMD160", PREFIX + "$PBEWithHmac");
}
项目:ipack    文件:Tiger.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.TIGER", PREFIX + "$Digest");
    provider.addAlgorithm("MessageDigest.Tiger", PREFIX + "$Digest"); // JDK 1.1.

    addHMACAlgorithm(provider, "TIGER", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "TIGER", IANAObjectIdentifiers.hmacTIGER);

    provider.addAlgorithm("SecretKeyFactory.PBEWITHHMACTIGER", PREFIX + "$PBEWithMacKeyFactory");
}
项目:ipack    文件:MD5.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.MD5", PREFIX + "$Digest");
    provider.addAlgorithm("Alg.Alias.MessageDigest." + PKCSObjectIdentifiers.md5, "MD5");

    addHMACAlgorithm(provider, "MD5", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "MD5", IANAObjectIdentifiers.hmacMD5);
}
项目:Aki-SSL    文件:RIPEMD160.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.RIPEMD160", PREFIX + "$Digest");
    provider.addAlgorithm("Alg.Alias.MessageDigest." + TeleTrusTObjectIdentifiers.ripemd160, "RIPEMD160");

    addHMACAlgorithm(provider, "RIPEMD160", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "RIPEMD160", IANAObjectIdentifiers.hmacRIPEMD160);


    provider.addAlgorithm("SecretKeyFactory.PBEWITHHMACRIPEMD160", PREFIX + "$PBEWithHmacKeyFactory");
    provider.addAlgorithm("Mac.PBEWITHHMACRIPEMD160", PREFIX + "$PBEWithHmac");
}
项目:Aki-SSL    文件:Tiger.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.TIGER", PREFIX + "$Digest");
    provider.addAlgorithm("MessageDigest.Tiger", PREFIX + "$Digest"); // JDK 1.1.

    addHMACAlgorithm(provider, "TIGER", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "TIGER", IANAObjectIdentifiers.hmacTIGER);

    provider.addAlgorithm("SecretKeyFactory.PBEWITHHMACTIGER", PREFIX + "$PBEWithMacKeyFactory");
}
项目:Aki-SSL    文件:MD5.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.MD5", PREFIX + "$Digest");
    provider.addAlgorithm("Alg.Alias.MessageDigest." + PKCSObjectIdentifiers.md5, "MD5");

    addHMACAlgorithm(provider, "MD5", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "MD5", IANAObjectIdentifiers.hmacMD5);
}
项目:CryptMeme    文件:RIPEMD160.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.RIPEMD160", PREFIX + "$Digest");
    provider.addAlgorithm("Alg.Alias.MessageDigest." + TeleTrusTObjectIdentifiers.ripemd160, "RIPEMD160");

    addHMACAlgorithm(provider, "RIPEMD160", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "RIPEMD160", IANAObjectIdentifiers.hmacRIPEMD160);


    provider.addAlgorithm("SecretKeyFactory.PBEWITHHMACRIPEMD160", PREFIX + "$PBEWithHmacKeyFactory");
    provider.addAlgorithm("Mac.PBEWITHHMACRIPEMD160", PREFIX + "$PBEWithHmac");
}
项目:CryptMeme    文件:Tiger.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.TIGER", PREFIX + "$Digest");
    provider.addAlgorithm("MessageDigest.Tiger", PREFIX + "$Digest"); // JDK 1.1.

    addHMACAlgorithm(provider, "TIGER", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "TIGER", IANAObjectIdentifiers.hmacTIGER);

    provider.addAlgorithm("SecretKeyFactory.PBEWITHHMACTIGER", PREFIX + "$PBEWithMacKeyFactory");
}
项目:CryptMeme    文件:MD5.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.MD5", PREFIX + "$Digest");
    provider.addAlgorithm("Alg.Alias.MessageDigest." + PKCSObjectIdentifiers.md5, "MD5");

    addHMACAlgorithm(provider, "MD5", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "MD5", IANAObjectIdentifiers.hmacMD5);
}
项目:irma_future_id    文件:RIPEMD160.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.RIPEMD160", PREFIX + "$Digest");
    provider.addAlgorithm("Alg.Alias.MessageDigest." + TeleTrusTObjectIdentifiers.ripemd160, "RIPEMD160");

    addHMACAlgorithm(provider, "RIPEMD160", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "RIPEMD160", IANAObjectIdentifiers.hmacRIPEMD160);


    provider.addAlgorithm("SecretKeyFactory.PBEWITHHMACRIPEMD160", PREFIX + "$PBEWithHmacKeyFactory");
    provider.addAlgorithm("Mac.PBEWITHHMACRIPEMD160", PREFIX + "$PBEWithHmac");
}
项目:irma_future_id    文件:Tiger.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.TIGER", PREFIX + "$Digest");
    provider.addAlgorithm("MessageDigest.Tiger", PREFIX + "$Digest"); // JDK 1.1.

    addHMACAlgorithm(provider, "TIGER", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "TIGER", IANAObjectIdentifiers.hmacTIGER);

    provider.addAlgorithm("SecretKeyFactory.PBEWITHHMACTIGER", PREFIX + "$PBEWithMacKeyFactory");
}
项目:irma_future_id    文件:MD5.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.MD5", PREFIX + "$Digest");
    provider.addAlgorithm("Alg.Alias.MessageDigest." + PKCSObjectIdentifiers.md5, "MD5");

    addHMACAlgorithm(provider, "MD5", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "MD5", IANAObjectIdentifiers.hmacMD5);
}
项目:bc-java    文件:RIPEMD160.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.RIPEMD160", PREFIX + "$Digest");
    provider.addAlgorithm("Alg.Alias.MessageDigest." + TeleTrusTObjectIdentifiers.ripemd160, "RIPEMD160");

    addHMACAlgorithm(provider, "RIPEMD160", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "RIPEMD160", IANAObjectIdentifiers.hmacRIPEMD160);


    provider.addAlgorithm("SecretKeyFactory.PBEWITHHMACRIPEMD160", PREFIX + "$PBEWithHmacKeyFactory");
    provider.addAlgorithm("Mac.PBEWITHHMACRIPEMD160", PREFIX + "$PBEWithHmac");
}
项目:bc-java    文件:Tiger.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.TIGER", PREFIX + "$Digest");
    provider.addAlgorithm("MessageDigest.Tiger", PREFIX + "$Digest"); // JDK 1.1.

    addHMACAlgorithm(provider, "TIGER", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "TIGER", IANAObjectIdentifiers.hmacTIGER);

    provider.addAlgorithm("SecretKeyFactory.PBEWITHHMACTIGER", PREFIX + "$PBEWithMacKeyFactory");
}
项目:bc-java    文件:MD5.java   
public void configure(ConfigurableProvider provider)
{
    provider.addAlgorithm("MessageDigest.MD5", PREFIX + "$Digest");
    provider.addAlgorithm("Alg.Alias.MessageDigest." + PKCSObjectIdentifiers.md5, "MD5");

    addHMACAlgorithm(provider, "MD5", PREFIX + "$HashMac", PREFIX + "$KeyGenerator");
    addHMACAlias(provider, "MD5", IANAObjectIdentifiers.hmacMD5);
}
项目:ipack    文件:PKMACBuilder.java   
public PKMACBuilder(PKMACValuesCalculator calculator)
{
    this(new AlgorithmIdentifier(OIWObjectIdentifiers.idSHA1), 1000, new AlgorithmIdentifier(IANAObjectIdentifiers.hmacSHA1, DERNull.INSTANCE), calculator);
}
项目:gwt-crypto    文件:PKMACBuilder.java   
public PKMACBuilder(PKMACValuesCalculator calculator)
{
    this(new AlgorithmIdentifier(OIWObjectIdentifiers.idSHA1), 1000, new AlgorithmIdentifier(IANAObjectIdentifiers.hmacSHA1, DERNull.INSTANCE), calculator);
}
项目:Aki-SSL    文件:PKMACBuilder.java   
public PKMACBuilder(PKMACValuesCalculator calculator)
{
    this(new AlgorithmIdentifier(OIWObjectIdentifiers.idSHA1), 1000, new AlgorithmIdentifier(IANAObjectIdentifiers.hmacSHA1, DERNull.INSTANCE), calculator);
}
项目:CryptMeme    文件:HMacTest.java   
public void performTest()
    throws Exception
{
    testHMac("HMac-SHA1", output1);
    testHMac("HMac-MD5", outputMD5);
    testHMac("HMac-MD4", outputMD4);
    testHMac("HMac-MD2", outputMD2);
    testHMac("HMac-SHA224", output224);
    testHMac("HMac-SHA256", output256);
    testHMac("HMac-SHA384", output384);
    testHMac("HMac-SHA512", output512);
    testHMac("HMac-SHA512/224", output512_224);
    testHMac("HMac-SHA512/256", output512_256);
    testHMac("HMac-RIPEMD128", outputRipeMD128);
    testHMac("HMac-RIPEMD160", outputRipeMD160);
    testHMac("HMac-TIGER", outputTiger);

    testHMac("HMac/SHA1", output1);
    testHMac("HMac/MD5", outputMD5);
    testHMac("HMac/MD4", outputMD4);
    testHMac("HMac/MD2", outputMD2);
    testHMac("HMac/SHA224", output224);
    testHMac("HMac/SHA256", output256);
    testHMac("HMac/SHA384", output384);
    testHMac("HMac/SHA512", output512);
    testHMac("HMac/RIPEMD128", outputRipeMD128);
    testHMac("HMac/RIPEMD160", outputRipeMD160);
    testHMac("HMac/TIGER", outputTiger);

    testHMac(PKCSObjectIdentifiers.id_hmacWithSHA1.getId(), output1);
    testHMac(PKCSObjectIdentifiers.id_hmacWithSHA224.getId(), output224);
    testHMac(PKCSObjectIdentifiers.id_hmacWithSHA256.getId(), output256);
    testHMac(PKCSObjectIdentifiers.id_hmacWithSHA384.getId(), output384);
    testHMac(PKCSObjectIdentifiers.id_hmacWithSHA512.getId(), output512);
    testHMac(IANAObjectIdentifiers.hmacSHA1.getId(), output1);
    testHMac(IANAObjectIdentifiers.hmacMD5.getId(), outputMD5);
    testHMac(IANAObjectIdentifiers.hmacRIPEMD160.getId(), outputRipeMD160);
    testHMac(IANAObjectIdentifiers.hmacTIGER.getId(), outputTiger);

    // test for compatibility with broken HMac.
    testHMac("OldHMacSHA384", outputOld384);
    testHMac("OldHMacSHA512", outputOld512);

    testExceptions();
}
项目:irma_future_id    文件:PKMACBuilder.java   
public PKMACBuilder(PKMACValuesCalculator calculator)
{
    this(new AlgorithmIdentifier(OIWObjectIdentifiers.idSHA1), 1000, new AlgorithmIdentifier(IANAObjectIdentifiers.hmacSHA1, DERNull.INSTANCE), calculator);
}
项目:irma_future_id    文件:HMacTest.java   
public void performTest()
    throws Exception
{
    testHMac("HMac-SHA1", output1);
    testHMac("HMac-MD5", outputMD5);
    testHMac("HMac-MD4", outputMD4);
    testHMac("HMac-MD2", outputMD2);
    testHMac("HMac-SHA224", output224);
    testHMac("HMac-SHA256", output256);
    testHMac("HMac-SHA384", output384);
    testHMac("HMac-SHA512", output512);
    testHMac("HMac-SHA512/224", output512_224);
    testHMac("HMac-SHA512/256", output512_256);
    testHMac("HMac-RIPEMD128", outputRipeMD128);
    testHMac("HMac-RIPEMD160", outputRipeMD160);
    testHMac("HMac-TIGER", outputTiger);

    testHMac("HMac/SHA1", output1);
    testHMac("HMac/MD5", outputMD5);
    testHMac("HMac/MD4", outputMD4);
    testHMac("HMac/MD2", outputMD2);
    testHMac("HMac/SHA224", output224);
    testHMac("HMac/SHA256", output256);
    testHMac("HMac/SHA384", output384);
    testHMac("HMac/SHA512", output512);
    testHMac("HMac/RIPEMD128", outputRipeMD128);
    testHMac("HMac/RIPEMD160", outputRipeMD160);
    testHMac("HMac/TIGER", outputTiger);

    testHMac(PKCSObjectIdentifiers.id_hmacWithSHA1.getId(), output1);
    testHMac(PKCSObjectIdentifiers.id_hmacWithSHA224.getId(), output224);
    testHMac(PKCSObjectIdentifiers.id_hmacWithSHA256.getId(), output256);
    testHMac(PKCSObjectIdentifiers.id_hmacWithSHA384.getId(), output384);
    testHMac(PKCSObjectIdentifiers.id_hmacWithSHA512.getId(), output512);
    testHMac(IANAObjectIdentifiers.hmacSHA1.getId(), output1);
    testHMac(IANAObjectIdentifiers.hmacMD5.getId(), outputMD5);
    testHMac(IANAObjectIdentifiers.hmacRIPEMD160.getId(), outputRipeMD160);
    testHMac(IANAObjectIdentifiers.hmacTIGER.getId(), outputTiger);

    // test for compatibility with broken HMac.
    testHMac("OldHMacSHA384", outputOld384);
    testHMac("OldHMacSHA512", outputOld512);

    testExceptions();
}
项目:bc-java    文件:PKMACBuilder.java   
public PKMACBuilder(PKMACValuesCalculator calculator)
{
    this(new AlgorithmIdentifier(OIWObjectIdentifiers.idSHA1), 1000, new AlgorithmIdentifier(IANAObjectIdentifiers.hmacSHA1, DERNull.INSTANCE), calculator);
}
项目:bc-java    文件:HMacTest.java   
public void performTest()
    throws Exception
{
    testHMac("HMac-SHA1", output1);
    testHMac("HMac-MD5", outputMD5);
    testHMac("HMac-MD4", outputMD4);
    testHMac("HMac-MD2", outputMD2);
    testHMac("HMac-SHA224", output224);
    testHMac("HMac-SHA256", output256);
    testHMac("HMac-SHA384", output384);
    testHMac("HMac-SHA512", output512);
    testHMac("HMac-SHA512/224", output512_224);
    testHMac("HMac-SHA512/256", output512_256);
    testHMac("HMac-RIPEMD128", outputRipeMD128);
    testHMac("HMac-RIPEMD160", outputRipeMD160);
    testHMac("HMac-TIGER", outputTiger);

    testHMac("HMac/SHA1", output1);
    testHMac("HMac/MD5", outputMD5);
    testHMac("HMac/MD4", outputMD4);
    testHMac("HMac/MD2", outputMD2);
    testHMac("HMac/SHA224", output224);
    testHMac("HMac/SHA256", output256);
    testHMac("HMac/SHA384", output384);
    testHMac("HMac/SHA512", output512);
    testHMac("HMac/RIPEMD128", outputRipeMD128);
    testHMac("HMac/RIPEMD160", outputRipeMD160);
    testHMac("HMac/TIGER", outputTiger);

    testHMac(PKCSObjectIdentifiers.id_hmacWithSHA1.getId(), output1);
    testHMac(PKCSObjectIdentifiers.id_hmacWithSHA224.getId(), output224);
    testHMac(PKCSObjectIdentifiers.id_hmacWithSHA256.getId(), output256);
    testHMac(PKCSObjectIdentifiers.id_hmacWithSHA384.getId(), output384);
    testHMac(PKCSObjectIdentifiers.id_hmacWithSHA512.getId(), output512);
    testHMac(IANAObjectIdentifiers.hmacSHA1.getId(), output1);
    testHMac(IANAObjectIdentifiers.hmacMD5.getId(), outputMD5);
    testHMac(IANAObjectIdentifiers.hmacRIPEMD160.getId(), outputRipeMD160);
    testHMac(IANAObjectIdentifiers.hmacTIGER.getId(), outputTiger);

    // test for compatibility with broken HMac.
    testHMac("OldHMacSHA384", outputOld384);
    testHMac("OldHMacSHA512", outputOld512);

    testExceptions();
}