Decrypt secret key

This commit is contained in:
Stephen Paul Weber
2013-01-26 14:55:51 -05:00
parent ae062433b7
commit a56799955f
4 changed files with 48 additions and 4 deletions

View File

@@ -104,4 +104,10 @@ class Decryption extends PHPUnit_Framework_TestCase {
}
}
}
public function testDecryptSecretKey() {
$key = OpenPGP_Message::parse(file_get_contents(dirname(__FILE__) . '/data/encryptedSecretKey.gpg'));
$skey = OpenPGP_Crypt_AES_TripleDES::decryptSecretKey("hello", $key[0]);
$this->assertSame(!!$skey, true);
}
}