Bouncy Castle Cryptography Library 1.77.0

org.bouncycastle.jcajce.spec
Class ScryptKeySpec

java.lang.Object
  |
  +--org.bouncycastle.jcajce.spec.ScryptKeySpec
All Implemented Interfaces:
java.security.spec.KeySpec

public class ScryptKeySpec
extends java.lang.Object
implements java.security.spec.KeySpec

Key spec for use with the scrypt SecretKeyFactory.


Constructor Summary
ScryptKeySpec(char[] password, byte[] salt, int costParameter, int blockSize, int parallelizationParameter, int keySize)
           
 
Method Summary
 int getBlockSize()
           
 int getCostParameter()
           
 int getKeyLength()
          Key length (in bits).
 int getParallelizationParameter()
           
 char[] getPassword()
           
 byte[] getSalt()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScryptKeySpec

public ScryptKeySpec(char[] password,
                     byte[] salt,
                     int costParameter,
                     int blockSize,
                     int parallelizationParameter,
                     int keySize)
Method Detail

getPassword

public char[] getPassword()

getSalt

public byte[] getSalt()

getCostParameter

public int getCostParameter()

getBlockSize

public int getBlockSize()

getParallelizationParameter

public int getParallelizationParameter()

getKeyLength

public int getKeyLength()
Key length (in bits).
Returns:
length of the key to generate in bits.

Bouncy Castle Cryptography Library 1.77.0