2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-10 13:23:25 +00:00

Change to use byte strings instead of byte array

This commit is contained in:
j433866
2019-06-04 10:19:00 +01:00
parent 2be2c83f67
commit c1bdca8df3
2 changed files with 8 additions and 8 deletions

View File

@@ -65,8 +65,8 @@ class AESEncrypt extends Operation {
* @throws {OperationError} if 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];