|
@@ -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);
|
|
|
}
|