Codota Logo
Salsa20Engine.limitExceeded
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain Salsa20Engine
private void myMethod () {
Salsa20Engine s =
  • Codota Iconnew Salsa20Engine()
  • Smart code suggestions by Codota
}
origin: com.madgag/sc-light-jdk15on

public byte returnByte(byte in)
{
  if (limitExceeded())
  {
    throw new MaxBytesExceededException("2^70 byte limit per IV; Change IV");
  }
  if (index == 0)
  {
    generateKeyStream(keyStream);
    if (++engineState[8] == 0)
    {
      ++engineState[9];
    }
  }
  byte out = (byte)(keyStream[index]^in);
  index = (index + 1) & 63;
  return out;
}
origin: com.madgag.spongycastle/core

public byte returnByte(byte in)
{
  if (limitExceeded())
  {
    throw new MaxBytesExceededException("2^70 byte limit per IV; Change IV");
  }
  byte out = (byte)(keyStream[index]^in);
  index = (index + 1) & 63;
  if (index == 0)
  {
    advanceCounter();
    generateKeyStream(keyStream);
  }
  return out;
}
origin: com.madgag/sc-light-jdk15on

if (limitExceeded(len))
origin: com.madgag.spongycastle/core

if (limitExceeded(len))
org.spongycastle.crypto.enginesSalsa20EnginelimitExceeded

Popular methods of Salsa20Engine

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

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getContentResolver (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • MalformedURLException (java.net)
    Thrown to indicate that a malformed URL has occurred. Either no legal protocol could be found in a s
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now