File tree Expand file tree Collapse file tree 3 files changed +55
-4
lines changed Expand file tree Collapse file tree 3 files changed +55
-4
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ // Use IntelliSense to learn about possible attributes.
3
+ // Hover to view descriptions of existing attributes.
4
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5
+ "version" : " 0.2.0" ,
6
+ "configurations" : [
7
+ {
8
+ "name" : " (gdb) Launch" ,
9
+ "type" : " cppdbg" ,
10
+ "request" : " launch" ,
11
+ "program" : " ${workspaceFolder}/aes" ,
12
+ "args" : [],
13
+ "stopAtEntry" : false ,
14
+ "cwd" : " ${workspaceFolder}" ,
15
+ "environment" : [],
16
+ "externalConsole" : true ,
17
+ "MIMode" : " gdb" ,
18
+ "setupCommands" : [
19
+ {
20
+ "description" : " Enable pretty-printing for gdb" ,
21
+ "text" : " -enable-pretty-printing" ,
22
+ "ignoreFailures" : true
23
+ }
24
+ ]
25
+ }
26
+ ]
27
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ // See https://go.microsoft.com/fwlink/?LinkId=733558
3
+ // for the documentation about the tasks.json format
4
+ "version" : " 2.0.0" ,
5
+ "tasks" : [
6
+ {
7
+ "label" : " build" ,
8
+ "type" : " shell" ,
9
+ "command" : " gcc" ,
10
+ "args" : [
11
+ " -std=c99" ,
12
+ " -o" ,
13
+ " aes" ,
14
+ " cript.c" ,
15
+ " encode.c" ,
16
+ " sha2.c" ,
17
+ " aes.c"
18
+ ],
19
+ "problemMatcher" : [
20
+ " $gcc"
21
+ ]
22
+ }
23
+ ]
24
+ }
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ static void show_help()
8
8
const char * help =
9
9
"**********************************************\n"
10
10
"* AES - Encrypt a file using AES in CBC mode *\n"
11
- "* Version 1.0.8 *\n"
11
+ "* Version 1.0.8a *\n"
12
12
"**********************************************\n"
13
13
"\n"
14
14
"Usage: aes\n"
@@ -33,8 +33,8 @@ static void show_help()
33
33
" is used\n"
34
34
" -p password : password (required or -f)\n"
35
35
" -f passwordFile : read password from first file line (required or -p)\n"
36
+ " at most 1024 first bytes are read from first line\n"
36
37
" if -f - then stdin is used\n"
37
- " at most 256 first bytes are read\n"
38
38
" -e : encrypt mode (default)\n"
39
39
" -d : decrypt mode\n"
40
40
" -k keySize : default 256, valid values are 128, 192, 256\n"
@@ -111,8 +111,8 @@ int main(int argc, char *argv[])
111
111
int auto_ch = 0 ;
112
112
int pass_sum = 0 ;
113
113
int salt_len_equals_keysize = 1 ;
114
- char passBuffer [257 ];
115
- int passBufferLength = 256 ;
114
+ char passBuffer [1025 ];
115
+ int passBufferLength = 1024 ;
116
116
int passBufferRead = 0 ;
117
117
int pi = 0 ;
118
118
You can’t perform that action at this time.
0 commit comments