parsePbes2Params

private fnPbes2Params parsePbes2Params(const(ubyte)[] der)

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

derDER bytes of the EncryptedPrivateKeyInfo.

Returns

The validated parameters.

Throws

SshKeyEncryptionException for PBES2 variants outside

the profile; CryptoException for malformed DER.