本文整理汇总了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;
}
示例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;
}
示例3: DigestT
import org.bouncycastle.crypto.digests.SHA512tDigest; //导入依赖的package包/类
public DigestT(int bitLength)
{
super(new SHA512tDigest(bitLength));
}
示例4: HashMacT224
import org.bouncycastle.crypto.digests.SHA512tDigest; //导入依赖的package包/类
public HashMacT224()
{
super(new HMac(new SHA512tDigest(224)));
}
示例5: HashMacT256
import org.bouncycastle.crypto.digests.SHA512tDigest; //导入依赖的package包/类
public HashMacT256()
{
super(new HMac(new SHA512tDigest(256)));
}
示例6: SHA512t224DigestTest
import org.bouncycastle.crypto.digests.SHA512tDigest; //导入依赖的package包/类
SHA512t224DigestTest()
{
super(new SHA512tDigest(224), messages, digests);
}
示例7: cloneDigest
import org.bouncycastle.crypto.digests.SHA512tDigest; //导入依赖的package包/类
protected Digest cloneDigest(Digest digest)
{
return new SHA512tDigest((SHA512tDigest)digest);
}
示例8: SHA512t256DigestTest
import org.bouncycastle.crypto.digests.SHA512tDigest; //导入依赖的package包/类
SHA512t256DigestTest()
{
super(new SHA512tDigest(256), messages, digests);
}
示例9: SHA512_224WithRSAEncryption
import org.bouncycastle.crypto.digests.SHA512tDigest; //导入依赖的package包/类
public SHA512_224WithRSAEncryption()
{
super(new SHA512tDigest(224), new RSABlindedEngine());
}
示例10: SHA512_256WithRSAEncryption
import org.bouncycastle.crypto.digests.SHA512tDigest; //导入依赖的package包/类
public SHA512_256WithRSAEncryption()
{
super(new SHA512tDigest(256), new RSABlindedEngine());
}
示例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()));
}
示例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()));
}
示例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()));
}