Tabnine Logo
SHA3Digest.absorb
Code IndexAdd Tabnine to your IDE (free)

How to use
absorb
method
in
org.spongycastle.crypto.digests.SHA3Digest

Best Java code snippets using org.spongycastle.crypto.digests.SHA3Digest.absorb (Showing top 1 results out of 315)

origin: com.madgag.spongycastle/core

  protected int doFinal(byte[] out, int outOff, byte partialByte, int partialBits)
  {
    if (partialBits < 0 || partialBits > 7)
    {
      throw new IllegalArgumentException("'partialBits' must be in the range [0,7]");
    }

    int finalInput = (partialByte & ((1 << partialBits) - 1)) | (0x02 << partialBits);
    int finalBits = partialBits + 2;

    if (finalBits >= 8)
    {
      absorb(new byte[]{ (byte)finalInput }, 0, 1);
      finalBits -= 8;
      finalInput >>>= 8;
    }

    return super.doFinal(out, outOff, (byte)finalInput, finalBits);
  }
}
org.spongycastle.crypto.digestsSHA3Digestabsorb

Popular methods of SHA3Digest

  • <init>
  • doFinal
  • update
  • getDigestSize
  • absorbBits
  • checkBitLength

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JButton (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top Vim plugins
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