Add support for "AES-256-CBC" encrypted private RSA key
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python-Crypto |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I created my private RSA key with openssl, it starts with:
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-256-
Can you please add support for AES-256 encryption?
elif algo==b(
key = PBKDF1(passphrase, salt[0:8], 16, 1, Crypto.Hash.MD5)
key += PBKDF1(
keyobj = AES.new(key, Crypto.
Or, as the code looks quite similar, make it more generic to work with all (?) algorithms:
key = b('')
while len(key) < keysize:
key += PBKDF1(
keyobj = cipher.new(key, cipher.MODE_CBC, salt)
Cheers!