• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java RIPEMD128Digest类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.bouncycastle.crypto.digests.RIPEMD128Digest的典型用法代码示例。如果您正苦于以下问题:Java RIPEMD128Digest类的具体用法?Java RIPEMD128Digest怎么用?Java RIPEMD128Digest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



RIPEMD128Digest类属于org.bouncycastle.crypto.digests包,在下文中一共展示了RIPEMD128Digest类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: perform

import org.bouncycastle.crypto.digests.RIPEMD128Digest; //导入依赖的package包/类
public TestResult perform()
{
    HMac hmac = new HMac(new RIPEMD128Digest());
    byte[] resBuf = new byte[hmac.getMacSize()];

    for (int i = 0; i < messages.length; i++)
    {
        byte[] m = messages[i].getBytes();
        if (messages[i].startsWith("0x"))
        {
            m = Hex.decode(messages[i].substring(2));
        }
        hmac.init(new KeyParameter(Hex.decode(keys[i])));
        hmac.update(m, 0, m.length);
        hmac.doFinal(resBuf, 0);

        if (!Arrays.areEqual(resBuf, Hex.decode(digests[i])))
        {
            return new SimpleTestResult(false, getName() + ": Vector " + i + " failed");
        }
    }

    return new SimpleTestResult(true, getName() + ": Okay");
}
 
开发者ID:ttt43ttt,项目名称:gwt-crypto,代码行数:25,代码来源:RIPEMD128HMacTest.java


示例2: clone

import org.bouncycastle.crypto.digests.RIPEMD128Digest; //导入依赖的package包/类
public Object clone()
    throws CloneNotSupportedException
{
    Digest d = (Digest)super.clone();
    d.digest = new RIPEMD128Digest((RIPEMD128Digest)digest);

    return d;
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:9,代码来源:RIPEMD128.java


示例3: initDigesters

import org.bouncycastle.crypto.digests.RIPEMD128Digest; //导入依赖的package包/类
private static void initDigesters() {
	digesters.put("Blake2b", Blake2bDigest.class);
	digesters.put("GOST3411", GOST3411Digest.class);
	digesters.put("Keccak", KeccakDigest.class);
	digesters.put("MD2", MD2Digest.class);
	digesters.put("MD4", MD4Digest.class);
	digesters.put("MD5", MD5Digest.class);
	digesters.put("RIPEMD128", RIPEMD128Digest.class);
	digesters.put("RIPEMD160", RIPEMD160Digest.class);
	digesters.put("RIPEMD256", RIPEMD256Digest.class);
	digesters.put("RIPEMD320", RIPEMD320Digest.class);
	digesters.put("SHA1", SHA1Digest.class);
	digesters.put("SHA224", SHA224Digest.class);
	digesters.put("SHA256", SHA256Digest.class);
	digesters.put("SHA384", SHA384Digest.class);
	digesters.put("SHA3-512", SHA3Digest.class);
	digesters.put("SHA3-256", SHA3Digest.class);
	digesters.put("SHA3-224", SHA3Digest.class);
	digesters.put("SHA3-384", SHA3Digest.class);
	digesters.put("SHA512", SHA512Digest.class);
	digesters.put("SHAKE-128", SHAKEDigest.class);
	digesters.put("SHAKE-256", SHAKEDigest.class);
	digesters.put("Skein256", SkeinDigest.class);
	digesters.put("Skein512", SkeinDigest.class);
	digesters.put("Skein1024", SkeinDigest.class);
	digesters.put("SM3", SM3Digest.class);
	digesters.put("Tiger", TigerDigest.class);
	digesters.put("Whirlpool", WhirlpoolDigest.class);
}
 
开发者ID:shilongdai,项目名称:vsDiaryWriter,代码行数:30,代码来源:Digesters.java


示例4: RipeMD128

import org.bouncycastle.crypto.digests.RIPEMD128Digest; //导入依赖的package包/类
/**
 * Creates a new RipeMD128 digest that may optionally be initialized with
 * random data.
 *
 * @param randomize
 *            True to randomize initial state of digest, false otherwise.
 */
public RipeMD128(final boolean randomize) {
	super(new RIPEMD128Digest());
	if (randomize) {
		setRandomProvider(new SecureRandom());
		setSalt(getRandomSalt());
	}
}
 
开发者ID:shivam091,项目名称:Java-Security,代码行数:15,代码来源:RipeMD128.java


示例5: Digest

import org.bouncycastle.crypto.digests.RIPEMD128Digest; //导入依赖的package包/类
public Digest()
{
    super(new RIPEMD128Digest());
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:5,代码来源:RIPEMD128.java


示例6: HashMac

import org.bouncycastle.crypto.digests.RIPEMD128Digest; //导入依赖的package包/类
public HashMac()
{
    super(new HMac(new RIPEMD128Digest()));
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:5,代码来源:RIPEMD128.java


示例7: RIPEMD128

import org.bouncycastle.crypto.digests.RIPEMD128Digest; //导入依赖的package包/类
public RIPEMD128()
{
    super(TeleTrusTObjectIdentifiers.ripemd128, new RIPEMD128Digest(), new PKCS1Encoding(new RSABlindedEngine()));
}
 
开发者ID:Appdome,项目名称:ipack,代码行数:5,代码来源:DigestSignatureSpi.java


示例8: RIPEMD128DigestTest

import org.bouncycastle.crypto.digests.RIPEMD128Digest; //导入依赖的package包/类
RIPEMD128DigestTest()
{
    super(new RIPEMD128Digest(), messages, digests);
}
 
开发者ID:ttt43ttt,项目名称:gwt-crypto,代码行数:5,代码来源:RIPEMD128DigestTest.java


示例9: cloneDigest

import org.bouncycastle.crypto.digests.RIPEMD128Digest; //导入依赖的package包/类
protected Digest cloneDigest(Digest digest)
{
    return new RIPEMD128Digest((RIPEMD128Digest)digest);
}
 
开发者ID:ttt43ttt,项目名称:gwt-crypto,代码行数:5,代码来源:RIPEMD128DigestTest.java


示例10: RIPEMD128WithRSAEncryption

import org.bouncycastle.crypto.digests.RIPEMD128Digest; //导入依赖的package包/类
public RIPEMD128WithRSAEncryption()
{
    super(new RIPEMD128Digest(), new RSABlindedEngine());
}
 
开发者ID:thedrummeraki,项目名称:Aki-SSL,代码行数:5,代码来源:X931SignatureSpi.java


示例11: RIPEMD128

import org.bouncycastle.crypto.digests.RIPEMD128Digest; //导入依赖的package包/类
public RIPEMD128()
{
    super(TeleTrusTObjectIdentifiers.ripemd128, new RIPEMD128Digest(), new PKCS1Encoding(new NativeRSAEngine()));
}
 
开发者ID:lookout,项目名称:fast-rsa-engine,代码行数:5,代码来源:FastDigestSignatureSpi.java


示例12: register

import org.bouncycastle.crypto.digests.RIPEMD128Digest; //导入依赖的package包/类
public static final void register(final Map<String, Hasher> hashers) {
  hashers.put(BouncyCastleHasher.GOST,
          new BouncyCastleHasher(new GOST3411Digest()));
  hashers.put(BouncyCastleHasher.MD2,
          new BouncyCastleHasher(new MD2Digest()));
  hashers.put(BouncyCastleHasher.MD4,
          new BouncyCastleHasher(new MD4Digest()));
  hashers.put(BouncyCastleHasher.MD5,
          new BouncyCastleHasher(new MD5Digest()));
  hashers.put(BouncyCastleHasher.RIPEMD128,
          new BouncyCastleHasher(new RIPEMD128Digest()));
  hashers.put(BouncyCastleHasher.RIPEMD160,
          new BouncyCastleHasher(new RIPEMD160Digest()));
  hashers.put(BouncyCastleHasher.RIPEMD256,
          new BouncyCastleHasher(new RIPEMD256Digest()));
  hashers.put(BouncyCastleHasher.RIPEMD320,
          new BouncyCastleHasher(new RIPEMD320Digest()));
  hashers.put(BouncyCastleHasher.SHA1,
          new BouncyCastleHasher(new SHA1Digest()));
  hashers.put(BouncyCastleHasher.SHA224,
          new BouncyCastleHasher(new SHA224Digest()));
  hashers.put(BouncyCastleHasher.SHA256,
          new BouncyCastleHasher(new SHA256Digest()));
  hashers.put(BouncyCastleHasher.SHA3,
          new BouncyCastleHasher(new SHA3Digest()));
  hashers.put(BouncyCastleHasher.SHA384,
          new BouncyCastleHasher(new SHA384Digest()));
  hashers.put(BouncyCastleHasher.SHA512,
          new BouncyCastleHasher(new SHA512Digest()));
  hashers.put(BouncyCastleHasher.SHA512_T,
          new BouncyCastleHasher(new SHA512tDigest(7 * 8)));
  hashers.put(BouncyCastleHasher.SKEIN1024, new BouncyCastleHasher(
          new SkeinDigest(SkeinDigest.SKEIN_1024, Long.BYTES * 8)));
  hashers.put(BouncyCastleHasher.SKEIN256, new BouncyCastleHasher(
          new SkeinDigest(SkeinDigest.SKEIN_256, Long.BYTES * 8)));
  hashers.put(BouncyCastleHasher.SKEIN512, new BouncyCastleHasher(
          new SkeinDigest(SkeinDigest.SKEIN_512, Long.BYTES * 8)));
  hashers.put(BouncyCastleHasher.SM3,
          new BouncyCastleHasher(new SM3Digest()));
  hashers.put(BouncyCastleHasher.TIGER,
          new BouncyCastleHasher(new TigerDigest()));
  hashers.put(BouncyCastleHasher.WHIRLPOOL2,
          new BouncyCastleHasher(new WhirlpoolDigest()));
}
 
开发者ID:benalexau,项目名称:hash-bench,代码行数:45,代码来源:BouncyCastleHasher.java


示例13: _createMACCalculator

import org.bouncycastle.crypto.digests.RIPEMD128Digest; //导入依赖的package包/类
@Override
public MACCalculator _createMACCalculator() {
	final RIPEMD128Digest digest = new RIPEMD128Digest();
	return new MACCalculatorImpl(new HMac(digest), digest.getDigestSize(), 0); // IV not supported - throws exception when passing ParameterWithIV
}
 
开发者ID:subshare,项目名称:subshare,代码行数:6,代码来源:MACCalculatorFactoryImpl.java


示例14: RIPEMD128WithRSAEncryption

import org.bouncycastle.crypto.digests.RIPEMD128Digest; //导入依赖的package包/类
public RIPEMD128WithRSAEncryption()
{
	super("RIPEMD128withRSA", TeleTrusTObjectIdentifiers.ripemd128, new RIPEMD128Digest(), new PKCS1Encoding(new RSAEngine()));
}
 
开发者ID:AcademicTorrents,项目名称:AcademicTorrents-Downloader,代码行数:5,代码来源:JDKDigestSignature.java



注:本文中的org.bouncycastle.crypto.digests.RIPEMD128Digest类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Resolver类代码示例发布时间:2022-05-21
下一篇:
Java AuthenticationTrustResolverImpl类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap