fixed minor copy/paste error

This commit is contained in:
Sebastian Stenzel
2016-05-22 13:32:16 +02:00
parent fe3efdf610
commit 3dcebb1e1f
2 changed files with 2 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ class CryptorImpl implements Cryptor {
randomSource.nextBytes(randomBytes);
encryptionKey = new SecretKeySpec(randomBytes, ENCRYPTION_ALG);
randomSource.nextBytes(randomBytes);
macKey = new SecretKeySpec(randomBytes, ENCRYPTION_ALG);
macKey = new SecretKeySpec(randomBytes, MAC_ALG);
} finally {
Arrays.fill(randomBytes, (byte) 0x00);
}

View File

@@ -25,7 +25,7 @@ final class ThreadLocalAesCtrCipher {
try {
return Cipher.getInstance(AES_CTR);
} catch (NoSuchAlgorithmException | NoSuchPaddingException e) {
throw new IllegalStateException("Could not create MAC.", e);
throw new IllegalStateException("Could not create Cipher.", e);
}
}