ASN1Encodable, Encodablepublic class ScryptParams extends ASN1Object
scrypt-params ::= SEQUENCE {
salt OCTET STRING,
costParameter INTEGER (1..MAX),
blockSize INTEGER (1..MAX),
parallelizationParameter INTEGER (1..MAX),
keyLength INTEGER (1..MAX) OPTIONAL
}
| Constructor | Description |
|---|---|
ScryptParams(byte[] salt,
int costParameter,
int blockSize,
int parallelizationParameter) |
|
ScryptParams(byte[] salt,
int costParameter,
int blockSize,
int parallelizationParameter,
int keyLength) |
|
ScryptParams(byte[] salt,
java.math.BigInteger costParameter,
java.math.BigInteger blockSize,
java.math.BigInteger parallelizationParameter,
java.math.BigInteger keyLength) |
Base constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.math.BigInteger |
getBlockSize() |
|
java.math.BigInteger |
getCostParameter() |
|
static ScryptParams |
getInstance(java.lang.Object o) |
|
java.math.BigInteger |
getKeyLength() |
Return the length in octets for the derived key.
|
java.math.BigInteger |
getParallelizationParameter() |
|
byte[] |
getSalt() |
|
ASN1Primitive |
toASN1Primitive() |
Method providing a primitive representation of this object suitable for encoding.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Objectpublic ScryptParams(byte[] salt,
int costParameter,
int blockSize,
int parallelizationParameter)
public ScryptParams(byte[] salt,
int costParameter,
int blockSize,
int parallelizationParameter,
int keyLength)
public ScryptParams(byte[] salt,
java.math.BigInteger costParameter,
java.math.BigInteger blockSize,
java.math.BigInteger parallelizationParameter,
java.math.BigInteger keyLength)
salt - salt valuecostParameter - specifies the CPU/Memory cost parameter NblockSize - block size parameter rparallelizationParameter - parallelization parameterkeyLength - length of key to be derived (in octects)public static ScryptParams getInstance(java.lang.Object o)
public byte[] getSalt()
public java.math.BigInteger getCostParameter()
public java.math.BigInteger getBlockSize()
public java.math.BigInteger getParallelizationParameter()
public java.math.BigInteger getKeyLength()
public ASN1Primitive toASN1Primitive()
ASN1ObjecttoASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object