Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 593cc89

Browse files
author
madebits
committed
commit
1 parent bd02f61 commit 593cc89

File tree

3 files changed

+55
-4
lines changed

3 files changed

+55
-4
lines changed

.vscode/launch.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
}

.vscode/tasks.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
}

cript.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ static void show_help()
88
const char* help =
99
"**********************************************\n"
1010
"* AES - Encrypt a file using AES in CBC mode *\n"
11-
"* Version 1.0.8 *\n"
11+
"* Version 1.0.8a *\n"
1212
"**********************************************\n"
1313
"\n"
1414
"Usage: aes\n"
@@ -33,8 +33,8 @@ static void show_help()
3333
" is used\n"
3434
" -p password : password (required or -f)\n"
3535
" -f passwordFile : read password from first file line (required or -p)\n"
36+
" at most 1024 first bytes are read from first line\n"
3637
" if -f - then stdin is used\n"
37-
" at most 256 first bytes are read\n"
3838
" -e : encrypt mode (default)\n"
3939
" -d : decrypt mode\n"
4040
" -k keySize : default 256, valid values are 128, 192, 256\n"
@@ -111,8 +111,8 @@ int main(int argc, char *argv[])
111111
int auto_ch = 0;
112112
int pass_sum = 0;
113113
int salt_len_equals_keysize = 1;
114-
char passBuffer[257];
115-
int passBufferLength = 256;
114+
char passBuffer[1025];
115+
int passBufferLength = 1024;
116116
int passBufferRead = 0;
117117
int pi = 0;
118118

0 commit comments

Comments
 (0)