Top Description Fields Constructors Methods
org.bouncycastle.crypto.fips

pack-priv Class Salsa20CoreEngine

extends Object
Class Inheritance
Imports
org.bouncycastle.util.Pack, .Strings

Implementation of Daniel J. Bernstein's Salsa20 stream cipher, Snuffle 2005

Field Summary

Modifier and TypeField and Description
public static final int
private static final int
STATE_SIZE

Constants

private static final int[]

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
protected static int

Returns:

rotated x
rotl
(int
value to rotate
x
,
int
amount to rotate x
y
)

Rotate left

public static void
salsaCore(int rounds, int[]
input data
input
,
int[] x)

Salsa20 function

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_ROUNDSback to summary
public static final int DEFAULT_ROUNDS
STATE_SIZEback to summary
private static final int STATE_SIZE

Constants

TAU_SIGMAback to summary
private static final int[] TAU_SIGMA

Constructor Detail

Salsa20CoreEngineback to summary
pack-priv Salsa20CoreEngine()

Method Detail

rotlback to summary
protected static int rotl(int x, int y)

Rotate left

Parameters
x:int

value to rotate

y:int

amount to rotate x

Returns:int

rotated x

salsaCoreback to summary
public static void salsaCore(int rounds, int[] input, int[] x)

Salsa20 function

Parameters
input:int[]

input data