I would like to make a note that I have read all of rfc 7292.
I am trying to decrypt encrypted private key in a pkcs#12 pfx file.
The private key is enveloped within pkcs#8 shrouded key bag.
The OID preceding encrypted private key represented as an octet string is
pbeWithSHAAnd3-KeyTripleDES-CBC OBJECT IDENTIFIER ::= {pkcs-12PbeIds 3}
which I would take to assume that the private key is encrypted with Triple DES
CBC, and password derivation method is pbe.
RFC 7292 describes a "General Method" in section B.2 and B.3, and appendix C
clearly notes
here, we specify a few more, all of which use the procedure detailed in Appendices B.2 and B.3 to construct keys (and IVs, where needed).
Instructions in the first paragraph of Appendix B states, however,
Specifically, PBES2 should be used as encryption scheme, with PBKDF2
as the key derivation function.
So in this pfx file, is the private key is encrypted with a symmetric key derived from the general method described or is it more likely that it is encrypted by a symmetric derived by pbkdf2 ?
Also, PKCS#5 does not describe how IV is derived from PBKDF2. Where can I find specification?