PBKDF2-params ::= SEQUENCE {
salt CHOICE {
specified OCTET STRING,
otherSource AlgorithmIdentifier {{PBKDF2-SaltSources}}
},
iterationCount INTEGER (1..MAX),
keyLength INTEGER (1..MAX) OPTIONAL,
prf AlgorithmIdentifier {{PBKDF2-PRFs}} DEFAULT algid-hmacWithSHA1 }
| Modifier and Type | Field and Description |
|---|---|
| private static final AlgorithmIdentifier | |
| private final ASN1Integer | |
| private final ASN1Integer | |
| private final ASN1OctetString | |
| private final AlgorithmIdentifier |
| Access | Constructor and Description |
|---|---|
| public | PBKDF2Params(byte[]
input salt. salt, int input iteration count. iterationCount)Create a PBKDF2Params with the specified salt, iteration count, and algid-hmacWithSHA1 for the prf. |
| public | PBKDF2Params(byte[]
input salt. salt, int input iteration count. iterationCount, int intended key length to be produced. keyLength)Create a PBKDF2Params with the specified salt, iteration count, keyLength, and algid-hmacWithSHA1 for the prf. |
| public | PBKDF2Params(byte[]
input salt. salt, int input iteration count. iterationCount, int intended key length to be produced. keyLength, AlgorithmIdentifier the pseudo-random function to use. prf)Create a PBKDF2Params with the specified salt, iteration count, keyLength, and a defined prf. |
| public | PBKDF2Params(byte[]
input salt. salt, int input iteration count. iterationCount, AlgorithmIdentifier the pseudo-random function to use. prf)Create a PBKDF2Params with the specified salt, iteration count, and a defined prf. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PBKDF2Params | Returns: a PBKDF2Params instance.either PBKDF2Params or an ASN1Sequence. obj)Create PBKDF2Params from the passed in object, |
| public BigInteger | |
| public BigInteger | Returns: length in octets for derived key, if specified.Return the intended length in octets of the derived key. |
| public AlgorithmIdentifier | Returns: the prf algorithm identifier.Return the algId of the underlying pseudo random function to use. |
| public byte[] | |
| public boolean | Returns: true if PRF is default, false otherwise.Return true if the PRF is the default (hmacWithSHA1) |
| public ASN1Primitive | Returns: the object as an ASN.1 encodable structure.Implements abstract org. Implements org. Return an ASN.1 structure suitable for encoding. |
| algid_hmacWithSHA1 | back to summary |
|---|---|
| private static final AlgorithmIdentifier algid_hmacWithSHA1 | |
| iterationCount | back to summary |
|---|---|
| private final ASN1Integer iterationCount | |
| keyLength | back to summary |
|---|---|
| private final ASN1Integer keyLength | |
| octStr | back to summary |
|---|---|
| private final ASN1OctetString octStr | |
| prf | back to summary |
|---|---|
| private final AlgorithmIdentifier prf | |
| PBKDF2Params | back to summary |
|---|---|
| public PBKDF2Params(byte[] salt, int iterationCount) Create a PBKDF2Params with the specified salt, iteration count, and algid-hmacWithSHA1 for the prf.
| |
| PBKDF2Params | back to summary |
|---|---|
| public PBKDF2Params(byte[] salt, int iterationCount, int keyLength) Create a PBKDF2Params with the specified salt, iteration count, keyLength, and algid-hmacWithSHA1 for the prf.
| |
| PBKDF2Params | back to summary |
|---|---|
| public PBKDF2Params(byte[] salt, int iterationCount, int keyLength, AlgorithmIdentifier prf) Create a PBKDF2Params with the specified salt, iteration count, keyLength, and a defined prf.
| |
| PBKDF2Params | back to summary |
|---|---|
| public PBKDF2Params(byte[] salt, int iterationCount, AlgorithmIdentifier prf) Create a PBKDF2Params with the specified salt, iteration count, and a defined prf.
| |
| PBKDF2Params | back to summary |
|---|---|
| private PBKDF2Params(ASN1Sequence seq) | |
| getInstance | back to summary |
|---|---|
| public static PBKDF2Params getInstance(Object obj) Create PBKDF2Params from the passed in object,
| |
| getIterationCount | back to summary |
|---|---|
| public BigInteger getIterationCount() Return the iteration count to use.
| |
| getKeyLength | back to summary |
|---|---|
| public BigInteger getKeyLength() Return the intended length in octets of the derived key.
| |
| getPrf | back to summary |
|---|---|
| public AlgorithmIdentifier getPrf() Return the algId of the underlying pseudo random function to use.
| |
| getSalt | back to summary |
|---|---|
| public byte[] getSalt() Return the salt to use.
| |
| isDefaultPrf | back to summary |
|---|---|
| public boolean isDefaultPrf() Return true if the PRF is the default (hmacWithSHA1)
| |
| toASN1Primitive | back to summary |
|---|---|
| public ASN1Primitive toASN1Primitive() Implements abstract org. Implements org. Return an ASN.1 structure suitable for encoding.
| |