Tabnine Logo
Salsa20Engine.salsaCore
Code IndexAdd Tabnine to your IDE (free)

How to use
salsaCore
method
in
org.spongycastle.crypto.engines.Salsa20Engine

Best Java code snippets using org.spongycastle.crypto.engines.Salsa20Engine.salsaCore (Showing top 5 results out of 315)

origin: com.madgag/sc-light-jdk15on

private void generateKeyStream(byte[] output)
{
  salsaCore(20, engineState, x);
  Pack.intToLittleEndian(x, output, 0);
}
origin: com.madgag.spongycastle/core

protected void generateKeyStream(byte[] output)
{
  salsaCore(rounds, engineState, x);
  Pack.intToLittleEndian(x, output, 0);
}
origin: ValleZ/Paper-Wallet

private static void blockMix(int[] B, int[] X1, int[] X2, int[] Y, int r) {
  System.arraycopy(B, B.length - 16, X1, 0, 16);
  int BOff = 0, YOff = 0, halfLen = B.length >>> 1;
  for (int i = 2 * r; i > 0; --i) {
    xor(X1, B, BOff, X2);
    Salsa20Engine.salsaCore(8, X2, X1);
    System.arraycopy(X1, 0, Y, YOff, 16);
    YOff = halfLen + BOff - YOff;
    BOff += 16;
  }
  System.arraycopy(Y, 0, B, 0, Y.length);
}
origin: com.madgag.spongycastle/core

private static void BlockMix(int[] B, int[] X1, int[] X2, int[] Y, int r)
{
  System.arraycopy(B, B.length - 16, X1, 0, 16);
  int BOff = 0, YOff = 0, halfLen = B.length >>> 1;
  for (int i = 2 * r; i > 0; --i)
  {
    Xor(X1, B, BOff, X2);
    Salsa20Engine.salsaCore(8, X2, X1);
    System.arraycopy(X1, 0, Y, YOff, 16);
    YOff = halfLen + BOff - YOff;
    BOff += 16;
  }
  System.arraycopy(Y, 0, B, 0, Y.length);
}
origin: com.madgag/sc-light-jdk15on

private static void BlockMix(int[] B, int[] X1, int[] X2, int[] Y, int r)
{
  System.arraycopy(B, B.length - 16, X1, 0, 16);
  int BOff = 0, YOff = 0, halfLen = B.length >>> 1;
  for (int i = 2 * r; i > 0; --i)
  {
    Xor(X1, B, BOff, X2);
    Salsa20Engine.salsaCore(8, X2, X1);
    System.arraycopy(X1, 0, Y, YOff, 16);
    YOff = halfLen + BOff - YOff;
    BOff += 16;
  }
  System.arraycopy(Y, 0, B, 0, Y.length);
}
org.spongycastle.crypto.enginesSalsa20EnginesalsaCore

Javadoc

Salsa20 function

Popular methods of Salsa20Engine

  • <init>
    Creates a Salsa20 engine with a specific number of rounds.
  • generateKeyStream
  • getAlgorithmName
  • init
    initialise a Salsa20 cipher.
  • limitExceeded
  • processBytes
  • resetCounter
  • rotl
    Rotate left
  • setKey
  • advanceCounter
  • getCounter
  • getNonceSize
  • getCounter,
  • getNonceSize,
  • reset,
  • resetLimitCounter,
  • retreatCounter,
  • skip

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • startActivity (Activity)
  • putExtra (Intent)
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • JTextField (javax.swing)
  • CodeWhisperer alternatives
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