File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ class AESDecrypt extends Operation {
112112 run ( input , args ) {
113113 const key = Utils . convertToByteString ( args [ 0 ] . string , args [ 0 ] . option ) ,
114114 iv = Utils . convertToByteString ( args [ 1 ] . string , args [ 1 ] . option ) ,
115- mode = args [ 2 ] . substring ( 0 , 3 ) ,
115+ mode = args [ 2 ] . split ( "/" ) [ 0 ] ,
116116 noPadding = args [ 2 ] . endsWith ( "NoPadding" ) ,
117117 inputType = args [ 3 ] ,
118118 outputType = args [ 4 ] ,
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ class AESEncrypt extends Operation {
106106 run ( input , args ) {
107107 const key = Utils . convertToByteString ( args [ 0 ] . string , args [ 0 ] . option ) ,
108108 iv = Utils . convertToByteString ( args [ 1 ] . string , args [ 1 ] . option ) ,
109- mode = args [ 2 ] . substring ( 0 , 3 ) ,
109+ mode = args [ 2 ] . split ( "/" ) [ 0 ] ,
110110 noPadding = args [ 2 ] . endsWith ( "NoPadding" ) ,
111111 inputType = args [ 3 ] ,
112112 outputType = args [ 4 ] ,
You can’t perform that action at this time.
0 commit comments