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:
parent
07c0c1f3f2
commit
953cc311e3
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user