Add a return value to crypter_t.decrypt()

This commit is contained in:
Martin Willi
2012-07-16 14:53:38 +02:00
parent e35abbe588
commit 3b96189a2a
17 changed files with 72 additions and 35 deletions
@@ -170,7 +170,10 @@ static private_key_t *decrypt_private_key(chunk_t blob,
}
crypter->set_key(crypter, key);
crypter->decrypt(crypter, blob, iv, &decrypted);
if (!crypter->decrypt(crypter, blob, iv, &decrypted))
{
continue;
}
if (verify_padding(&decrypted))
{
private_key = parse_private_key(decrypted);