3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-13 02:35:52 +00:00

KeyCrypterScryptTest: fix variable name

This commit is contained in:
Mike Hearn 2015-06-24 16:16:37 +02:00
parent 07c0c1f3f2
commit 953cc311e3

View File

@ -111,11 +111,11 @@ public class KeyCrypterScryptTest {
stringBuffer.append(i).append(" ").append("The quick brown fox");
}
EncryptedData encryptedPrivateKey = keyCrypter.encrypt(stringBuffer.toString().getBytes(), keyCrypter.deriveKey(PASSWORD2));
assertNotNull(encryptedPrivateKey);
EncryptedData data = keyCrypter.encrypt(stringBuffer.toString().getBytes(), keyCrypter.deriveKey(PASSWORD2));
assertNotNull(data);
try {
keyCrypter.decrypt(encryptedPrivateKey, keyCrypter.deriveKey(WRONG_PASSWORD));
keyCrypter.decrypt(data, keyCrypter.deriveKey(WRONG_PASSWORD));
// TODO: This test sometimes fails due to relying on padding.
fail("Decrypt with wrong password did not throw exception");
} catch (KeyCrypterException ede) {