mirror of
https://github.com/gchq/CyberChef
synced 2025-12-15 07:43:22 +00:00
Fix AES decryption in GCM mode not using IVs.
Updated tests to match new results. Included a Python script to generate AES-GCM tests
This commit is contained in:
@@ -71,8 +71,8 @@ class AESDecrypt extends Operation {
|
||||
* @throws {OperationError} if cannot decrypt input or invalid key length
|
||||
*/
|
||||
run(input, args) {
|
||||
const key = Utils.convertToByteArray(args[0].string, args[0].option),
|
||||
iv = Utils.convertToByteArray(args[1].string, args[1].option),
|
||||
const key = Utils.convertToByteString(args[0].string, args[0].option),
|
||||
iv = Utils.convertToByteString(args[1].string, args[1].option),
|
||||
mode = args[2],
|
||||
inputType = args[3],
|
||||
outputType = args[4],
|
||||
|
||||
Reference in New Issue
Block a user