Top Description Fields Constructors Methods
org.bouncycastle.jcajce.spec

public Class ScryptKeySpec

extends Object
implements KeySpec
Class Inheritance
All Implemented Interfaces
java.security.spec.KeySpec
Imports
java.security.spec.KeySpec, org.bouncycastle.util.Arrays

Key spec for use with the scrypt SecretKeyFactory.

Field Summary

Modifier and TypeField and Description
private final int
private final int
private final int
private final int
private final char[]
private final byte[]

Constructor Summary

AccessConstructor and Description
public
ScryptKeySpec(char[] password, byte[] salt, int costParameter, int blockSize, int parallelizationParameter, int keySize)

Method Summary

Modifier and TypeMethod and Description
public int
public int
public int

Returns:

length of the key to generate in bits.
getKeyLength
()

Key length (in bits).

public int
public char[]
public byte[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

blockSizeback to summary
private final int blockSize
costParameterback to summary
private final int costParameter
keySizeback to summary
private final int keySize
parallelizationParameterback to summary
private final int parallelizationParameter
passwordback to summary
private final char[] password
saltback to summary
private final byte[] salt

Constructor Detail

ScryptKeySpecback to summary
public ScryptKeySpec(char[] password, byte[] salt, int costParameter, int blockSize, int parallelizationParameter, int keySize)

Method Detail

getBlockSizeback to summary
public int getBlockSize()
getCostParameterback to summary
public int getCostParameter()
getKeyLengthback to summary
public int getKeyLength()

Key length (in bits).

Returns:int

length of the key to generate in bits.

getParallelizationParameterback to summary
public int getParallelizationParameter()
getPasswordback to summary
public char[] getPassword()
getSaltback to summary
public byte[] getSalt()