projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Modernise and fix (ancient) "maurice" demos.
[openssl.git]
/
demos
/
maurice
/
example1.c
diff --git
a/demos/maurice/example1.c
b/demos/maurice/example1.c
index 0e70523a33666bdff6e1aaa80655c0dd5982d6d4..4890b69ce5a92b1a513150cfa664412fb85c412d 100644
(file)
--- a/
demos/maurice/example1.c
+++ b/
demos/maurice/example1.c
@@
-130,7
+130,7
@@
void main_decrypt(void)
char ebuf[512];
unsigned int buflen;
EVP_CIPHER_CTX ectx;
- unsigned char iv[
8
];
+ unsigned char iv[
EVP_MAX_IV_LENGTH
];
unsigned char *encryptKey;
unsigned int ekeylen;
EVP_PKEY *privateKey;