-- PBES2
PBES2Algorithms ALGORITHM-IDENTIFIER ::=
{ {PBES2-params IDENTIFIED BY id-PBES2}, ...}
id-PBES2 OBJECT IDENTIFIER ::= {pkcs-5 13}
PBES2-params ::= SEQUENCE {
keyDerivationFunc AlgorithmIdentifier {{PBES2-KDFs}},
encryptionScheme AlgorithmIdentifier {{PBES2-Encs}} }
PBES2-KDFs ALGORITHM-IDENTIFIER ::=
{ {PBKDF2-params IDENTIFIED BY id-PBKDF2}, ... }
PBES2-Encs ALGORITHM-IDENTIFIER ::= { ... }
-- PBKDF2
PBKDF2Algorithms ALGORITHM-IDENTIFIER ::=
{ {PBKDF2-params IDENTIFIED BY id-PBKDF2}, ...}
id-PBKDF2 OBJECT IDENTIFIER ::= {pkcs-5 12}
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
}
PBKDF2-SaltSources ALGORITHM-IDENTIFIER ::= { ... }
PBKDF2-PRFs ALGORITHM-IDENTIFIER ::= {
{NULL IDENTIFIED BY id-hmacWithSHA1} |
{NULL IDENTIFIED BY id-hmacWithSHA224} |
{NULL IDENTIFIED BY id-hmacWithSHA256} |
{NULL IDENTIFIED BY id-hmacWithSHA384} |
{NULL IDENTIFIED BY id-hmacWithSHA512}, ... }
algid-hmacWithSHA1 AlgorithmIdentifier {{PBKDF2-PRFs}} ::=
{algorithm id-hmacWithSHA1, parameters NULL : NULL}
id-hmacWithSHA1 OBJECT IDENTIFIER ::= {digestAlgorithm 7}
PBES2-Encs ALGORITHM-IDENTIFIER ::= { ... }
| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ObjectIdentifier | |
| private static final ObjectIdentifier | |
| private static final ObjectIdentifier | |
| private ObjectIdentifier | |
| private AlgorithmParameterSpec | |
| private int | |
| private ObjectIdentifier | |
| private int | |
| private String | |
| private static final ObjectIdentifier | |
| private static final ObjectIdentifier | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected byte[] | engineGetEncoded()
Implements abstract java. Returns the parameters in their primary encoding format. |
| protected byte[] | engineGetEncoded(String encodingMethod)
Implements abstract java. Returns the parameters encoded in the specified format. |
| protected <T extends AlgorithmParameterSpec> T | engineGetParameterSpec(Class<T> paramSpec)
Implements abstract java. Returns a (transparent) specification of this parameters object. |
| protected void | engineInit(AlgorithmParameterSpec paramSpec)
Implements abstract java. Initializes this parameters object using the parameters
specified in |
| protected void | engineInit(byte[] encoded)
Implements abstract java. Imports the specified parameters and decodes them according to the primary decoding format for parameters. |
| protected void | engineInit(byte[] encoded, String decodingMethod)
Implements abstract java. Imports the parameters from |
| protected String | engineToString()
Implements abstract java. Returns a formatted string describing the parameters. |
| private String |
| aes128CBC_OID | back to summary |
|---|---|
| private static final ObjectIdentifier aes128CBC_OID | |
| aes192CBC_OID | back to summary |
|---|---|
| private static final ObjectIdentifier aes192CBC_OID | |
| aes256CBC_OID | back to summary |
|---|---|
| private static final ObjectIdentifier aes256CBC_OID | |
| cipherAlgo_OID | back to summary |
|---|---|
| private ObjectIdentifier cipherAlgo_OID | |
| cipherParam | back to summary |
|---|---|
| private AlgorithmParameterSpec cipherParam | |
| iCount | back to summary |
|---|---|
| private int iCount | |
| kdfAlgo_OID | back to summary |
|---|---|
| private ObjectIdentifier kdfAlgo_OID | |
| keysize | back to summary |
|---|---|
| private int keysize | |
| pbes2AlgorithmName | back to summary |
|---|---|
| private String pbes2AlgorithmName | |
| pkcs5PBES2_OID | back to summary |
|---|---|
| private static final ObjectIdentifier pkcs5PBES2_OID | |
| pkcs5PBKDF2_OID | back to summary |
|---|---|
| private static final ObjectIdentifier pkcs5PBKDF2_OID | |
| salt | back to summary |
|---|---|
| private byte[] salt | |
| PBES2Parameters | back to summary |
|---|---|
| pack-priv PBES2Parameters() | |
| PBES2Parameters | back to summary |
|---|---|
| pack-priv PBES2Parameters(String pbes2AlgorithmName) throws NoSuchAlgorithmException | |
| engineGetEncoded | back to summary |
|---|---|
| protected byte[] engineGetEncoded() throws IOException Implements abstract java. Doc from java. Returns the parameters in their primary encoding format. The primary encoding format for parameters is ASN.1, if an ASN.1 specification for this type of parameters exists.
| |
| engineGetEncoded | back to summary |
|---|---|
| protected byte[] engineGetEncoded(String encodingMethod) throws IOException Implements abstract java. Doc from java. Returns the parameters encoded in the specified format.
If
| |
| engineGetParameterSpec | back to summary |
|---|---|
| protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException Implements abstract java. Doc from java. Returns a (transparent) specification of this parameters
object.
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException Implements abstract java. Doc from java. Initializes this parameters object using the parameters
specified in
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(byte[] encoded) throws IOException Implements abstract java. Doc from java. Imports the specified parameters and decodes them according to the primary decoding format for parameters. The primary decoding format for parameters is ASN.1, if an ASN.1 specification for this type of parameters exists.
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(byte[] encoded, String decodingMethod) throws IOException Implements abstract java. Doc from java. Imports the parameters from
| |
| engineToString | back to summary |
|---|---|
| protected String engineToString() Implements abstract java. Doc from java. Returns a formatted string describing the parameters. | |
| parseES | back to summary |
|---|---|
| private String parseES(DerValue encryptionScheme) throws IOException | |
| Access | Constructor and Description |
|---|---|
| public |
| General | back to summary |
|---|---|
| public General() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| HmacSHA1AndAES_128 | back to summary |
|---|---|
| public HmacSHA1AndAES_128() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| HmacSHA1AndAES_256 | back to summary |
|---|---|
| public HmacSHA1AndAES_256() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| HmacSHA224AndAES_128 | back to summary |
|---|---|
| public HmacSHA224AndAES_128() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| HmacSHA224AndAES_256 | back to summary |
|---|---|
| public HmacSHA224AndAES_256() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| HmacSHA256AndAES_128 | back to summary |
|---|---|
| public HmacSHA256AndAES_128() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| HmacSHA256AndAES_256 | back to summary |
|---|---|
| public HmacSHA256AndAES_256() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| HmacSHA384AndAES_128 | back to summary |
|---|---|
| public HmacSHA384AndAES_128() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| HmacSHA384AndAES_256 | back to summary |
|---|---|
| public HmacSHA384AndAES_256() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| HmacSHA512_224AndAES_128 | back to summary |
|---|---|
| public HmacSHA512_224AndAES_128() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| HmacSHA512_224AndAES_256 | back to summary |
|---|---|
| public HmacSHA512_224AndAES_256() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| HmacSHA512_256AndAES_128 | back to summary |
|---|---|
| public HmacSHA512_256AndAES_128() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| HmacSHA512_256AndAES_256 | back to summary |
|---|---|
| public HmacSHA512_256AndAES_256() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| HmacSHA512AndAES_128 | back to summary |
|---|---|
| public HmacSHA512AndAES_128() throws NoSuchAlgorithmException | |
| Access | Constructor and Description |
|---|---|
| public |
| HmacSHA512AndAES_256 | back to summary |
|---|---|
| public HmacSHA512AndAES_256() throws NoSuchAlgorithmException | |