summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSeppia <nonso@insicuri.net>2016-11-15 18:30:24 +0100
committerSeppia <nonso@insicuri.net>2016-11-15 18:30:24 +0100
commit9039349c63fad07a4366203f16184bc52f63b654 (patch)
tree3636dd74642cae6afbd2b4958b1f3eaacd65e2b6 /src
parent6cea9aec8238c57767ebb6925206fdf65e618a45 (diff)
downloadonetimebluh-9039349c63fad07a4366203f16184bc52f63b654.tar.gz
onetimebluh-9039349c63fad07a4366203f16184bc52f63b654.tar.bz2
onetimebluh-9039349c63fad07a4366203f16184bc52f63b654.zip
changed default pad lenght in keyrand function
Diffstat (limited to 'src')
-rw-r--r--src/onetimebluh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/onetimebluh.c b/src/onetimebluh.c
index 2cca42e..084a11b 100644
--- a/src/onetimebluh.c
+++ b/src/onetimebluh.c
@@ -199,8 +199,8 @@ void keyrand(int nb, char* outp) {
exit(EXIT_FAILURE);
} else if (nb != 0) {
if(nb == -1) {
- printf("No byte number specified... using default value: 256 \n");
- nb = 256;
+ printf("No byte number specified... using default value: 1MB \n");
+ nb = 1048576;
}
unsigned char* key = malloc(nb);