public 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 and Description |
|---|
ScryptParams(byte[] salt,
BigInteger costParameter,
BigInteger blockSize,
BigInteger parallelizationParameter,
BigInteger keyLength)
Base constructor.
|
ScryptParams(byte[] salt,
int costParameter,
int blockSize,
int parallelizationParameter) |
ScryptParams(byte[] salt,
int costParameter,
int blockSize,
int parallelizationParameter,
int keyLength) |
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
getBlockSize() |
BigInteger |
getCostParameter() |
static ScryptParams |
getInstance(Object o) |
BigInteger |
getKeyLength()
Return the length in octets for the derived key.
|
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,
BigInteger costParameter,
BigInteger blockSize,
BigInteger parallelizationParameter,
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(Object o)
public byte[] getSalt()
public BigInteger getCostParameter()
public BigInteger getBlockSize()
public BigInteger getParallelizationParameter()
public BigInteger getKeyLength()
public ASN1Primitive toASN1Primitive()
ASN1ObjecttoASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1ObjectCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.