parsePbes2Params
Parses the PBES2 parameters of an EncryptedPrivateKeyInfo (RFC 8018 appendix A.4), restricting the profile to PBKDF2 with HMAC-SHA-1/-SHA-256/-SHA-512 and AES-128/192/256-CBC.
Parameters
der | DER bytes of the EncryptedPrivateKeyInfo. |
Returns
The validated parameters.
Throws
SshKeyEncryptionException for PBES2 variants outside
the profile; CryptoException for malformed DER.