mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 23:03:04 +00:00
TODO: KeyCrypterScryptTest sometimes fails because key crypto is still relying on padding bytes in some cases.
This commit is contained in:
parent
5be443c2d3
commit
2149fea7e6
@ -116,6 +116,7 @@ public class KeyCrypterScryptTest extends TestCase {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
keyCrypter.decrypt(encryptedPrivateKey, keyCrypter.deriveKey(WRONG_PASSWORD));
|
keyCrypter.decrypt(encryptedPrivateKey, keyCrypter.deriveKey(WRONG_PASSWORD));
|
||||||
|
// TODO: This test sometimes fails due to relying on padding.
|
||||||
fail("Decrypt with wrong password did not throw exception");
|
fail("Decrypt with wrong password did not throw exception");
|
||||||
} catch (KeyCrypterException ede) {
|
} catch (KeyCrypterException ede) {
|
||||||
assertTrue(ede.getMessage().indexOf("Could not decrypt") > -1);
|
assertTrue(ede.getMessage().indexOf("Could not decrypt") > -1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user