Tabnine Logo
SHA3Digest.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.spongycastle.crypto.digests.SHA3Digest
constructor

Best Java code snippets using org.spongycastle.crypto.digests.SHA3Digest.<init> (Showing top 20 results out of 315)

origin: com.madgag.spongycastle/bcpkix-jdk15on

  public ExtendedDigest get(AlgorithmIdentifier digestAlgorithmIdentifier)
  {
    return new SHA3Digest(224);
  }
});
origin: com.madgag.spongycastle/bcpkix-jdk15on

  public ExtendedDigest get(AlgorithmIdentifier digestAlgorithmIdentifier)
  {
    return new SHA3Digest(384);
  }
});
origin: com.madgag.spongycastle/bcpkix-jdk15on

  public ExtendedDigest get(AlgorithmIdentifier digestAlgorithmIdentifier)
  {
    return new SHA3Digest(256);
  }
});
origin: com.madgag.spongycastle/core

  public static Digest createSHA3_512()
  {
    return new SHA3Digest(512);
  }
}
origin: com.madgag.spongycastle/core

public static Digest createSHA3_256()
{
  return new SHA3Digest(256);
}
origin: com.madgag.spongycastle/prov

public DigestSHA3(int size)
{
  super(new SHA3Digest(size));
}
origin: com.madgag.spongycastle/core

public static Digest createSHA3_224()
{
  return new SHA3Digest(224);
}
origin: com.madgag.spongycastle/bcpkix-jdk15on

  public ExtendedDigest get(AlgorithmIdentifier digestAlgorithmIdentifier)
  {
    return new SHA3Digest(512);
  }
});
origin: com.madgag.spongycastle/core

public static Digest createSHA3_384()
{
  return new SHA3Digest(384);
}
origin: com.madgag.spongycastle/prov

  public withSha3_512()
  {
    super(new SHA3Digest(512), new SPHINCS256Signer(new SHA3Digest(256), new SHA3Digest(512)));
  }
}
origin: com.madgag.spongycastle/prov

  public HashMacSHA3(int size)
  {
    super(new HMac(new SHA3Digest(size)));
  }
}
origin: com.madgag.spongycastle/prov

  public Object clone()
    throws CloneNotSupportedException
  {
    BCMessageDigest d = (BCMessageDigest)super.clone();
    d.digest = new SHA3Digest((SHA3Digest)digest);
    return d;
  }
}
origin: biheBlockChain/wkcwallet-java

protected static String sha3String(String message, Size bitSize, boolean bouncyencoder) {
  SHA3Digest digest = new SHA3Digest(bitSize.bits);
  return sha3String(message, digest, bouncyencoder);
}
origin: biheBlockChain/wkcwallet-java

protected static String sha3String(byte[] message, Size bitSize) {
  SHA3Digest digest = new SHA3Digest(bitSize.bits);
  return sha3String(message, digest, true);
}
origin: biheBlockChain/wkcwallet-java

protected static String sha3string(byte[] message, Size bitSize, boolean bouncyencoder) {
  SHA3Digest digest = new SHA3Digest(bitSize.bits);
  return sha3String(message, digest, bouncyencoder);
}
origin: biheBlockChain/wkcwallet-java

public static byte[] sha3(byte[] message, Size sz) {
  return sha3(message, new SHA3Digest(sz.bits), true);
}
origin: com.madgag.spongycastle/core

  static void sha3(byte[] sharedKey)
  {
    SHA3Digest d = new SHA3Digest(256);
    d.update(sharedKey, 0, 32);
    d.doFinal(sharedKey, 0);
  }
}
origin: nebulasio/neb.java

public static byte[] Sha3256(byte[]... args) {
  SHA3Digest digest = new SHA3Digest();
  for (int i = 0; i < args.length; i++) {
    byte[] bytes = args[i];
    digest.update(bytes, 0, bytes.length);
  }
  byte[] out = new byte[256 / 8];
  digest.doFinal(out, 0);
  return out;
}
origin: adridadou/eth-contract-api

  private static byte[] doSha3(byte[] message) {
    SHA3Digest digest = new SHA3Digest(BIT_LENGTH);
    byte[] hash = new byte[digest.getDigestSize()];

    if (message.length != 0) {
      digest.update(message, 0, message.length);
    }
    digest.doFinal(hash, 0);
    return hash;
  }
}
origin: nuls-io/nuls

public static String sha3(byte[] bytes, int bitLength) {
  Digest digest = new SHA3Digest(bitLength);
  digest.update(bytes, 0, bytes.length);
  byte[] rsData = new byte[digest.getDigestSize()];
  digest.doFinal(rsData, 0);
  return Hex.encode(rsData);
}
org.spongycastle.crypto.digestsSHA3Digest<init>

Popular methods of SHA3Digest

  • doFinal
  • update
  • getDigestSize
  • absorb
  • absorbBits
  • checkBitLength

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Collectors (java.util.stream)
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • JLabel (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now