PKCS#12 password-based key derivation (RFC 7292 Appendix B.2).
Password as BMPString (UTF-16BE) with NUL terminator
Salt bytes
1 = encryption key, 2 = IV, 3 = MAC key
Iteration count
Number of bytes to produce
Hash algorithm
PKCS#12 password-based key derivation (RFC 7292 Appendix B.2).