mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-07 17:15:06 -04:00
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:
parent
d1c5a1a5f8
commit
c21f4b5ec2
3 changed files with 152 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue