OpenSSHKey: correctly parse aes-256-cbc/ctr keys (#1682)

AES-256 uses a 32-byte (256-bit) key size. This un-breaks the loader and
tests added for AES-256-CBC and AES-256-CTR PEM keys.

* OpenSSHKey: correctly parse encrypted PEM AES-256-CBC/AES-256-CTR keys
* OpenSSHKey: use correct key derivation for AES-256
This commit is contained in:
Steven Noonan 2018-04-04 18:58:34 -07:00 committed by Jonathan White
parent d1c5a1a5f8
commit c21f4b5ec2
3 changed files with 152 additions and 42 deletions

View file

@ -31,9 +31,11 @@ private slots:
void testParse();
void testParseDSA();
void testParseRSA();
void testDecryptAES128CBC();
void testDecryptAES256CBC();
void testDecryptAES256CTR();
void testDecryptRSAAES128CBC();
void testDecryptOpenSSHAES256CBC();
void testDecryptRSAAES256CBC();
void testDecryptOpenSSHAES256CTR();
void testDecryptRSAAES256CTR();
};
#endif // TESTOPENSSHKEY_H