Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public byte[] decrypt(byte[] dataToDecrypt) {
dataToDecrypt.length);
return cryptoCore.symmetricDecrypt(secretKey, cipher, iv, aad);
} catch (Throwable t) {
LOGGER.error("Failed to decrypt the data due to : ", t.getMessage());
LOGGER.error("Failed to decrypt the data due to : {}", t.getMessage());
//1.1.4.4 backward compatibility code, for IV_LENGTH = 16 and AAD_LENGTH = 12;
byte[] iv = Arrays.copyOfRange(dataToDecrypt, symmetricKeyLength, symmetricKeyLength + 16);
byte[] aad = Arrays.copyOfRange(dataToDecrypt, symmetricKeyLength + 16, symmetricKeyLength + 16 + 12);
Expand Down