当前位置: 首页>>代码示例>>Java>>正文


Java SHA512tDigest类代码示例

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


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

示例1: clone

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

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

示例2: getDigest

import org.bouncycastle.crypto.digests.SHA512tDigest; //导入依赖的package包/类
public static Digest getDigest(
    String digestName) 
{
    digestName = Strings.toUpperCase(digestName);
    
    if (sha1.contains(digestName))
    {
        return new SHA1Digest();
    }
    if (md5.contains(digestName))
    {
        return new MD5Digest();
    }
    if (sha224.contains(digestName))
    {
        return new SHA224Digest();
    }
    if (sha256.contains(digestName))
    {
        return new SHA256Digest();
    }
    if (sha384.contains(digestName))
    {
        return new SHA384Digest();
    }
    if (sha512.contains(digestName))
    {
        return new SHA512Digest();
    }
    if (sha512_224.contains(digestName))
    {
        return new SHA512tDigest(224);
    }
    if (sha512_256.contains(digestName))
    {
        return new SHA512tDigest(256);
    }

    return null;
}
 
开发者ID:thedrummeraki,项目名称:Aki-SSL,代码行数:41,代码来源:DigestFactory.java

示例3: DigestT

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

示例4: HashMacT224

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

示例5: HashMacT256

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

示例6: SHA512t224DigestTest

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

示例7: cloneDigest

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

示例8: SHA512t256DigestTest

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

示例9: SHA512_224WithRSAEncryption

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

示例10: SHA512_256WithRSAEncryption

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

示例11: SHA512_224

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

示例12: SHA512_256

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

示例13: register

import org.bouncycastle.crypto.digests.SHA512tDigest; //导入依赖的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


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