This commit is contained in:
Abraham Kiggundu
2014-12-26 17:35:37 +03:00
parent b074978472
commit 9a2e93ebb9
15 changed files with 25 additions and 43 deletions

View File

@@ -19,7 +19,6 @@ class FortunaGenerator {
private static final int KEY_BYTES = 32;
private static final int BLOCK_BYTES = 16;
// All of the following are locking: this
private final MessageDigest digest = new DoubleDigest(new SHA256Digest());
private final BlockCipher cipher = new AESLightEngine();
private final byte[] key = new byte[KEY_BYTES];

View File

@@ -10,7 +10,7 @@ class SecretKeyImpl implements SecretKey {
private final byte[] key;
private boolean erased = false; // Locking: this
private boolean erased = false;
private final Lock synchLock = new ReentrantLock();