projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move RSA key generation into the wrappers.
[tinc]
/
src
/
openssl
/
cipher.h
diff --git
a/src/openssl/cipher.h
b/src/openssl/cipher.h
index
d17e254
..
20535ed
100644
(file)
--- a/
src/openssl/cipher.h
+++ b/
src/openssl/cipher.h
@@
-24,6
+24,10
@@
#include <openssl/evp.h>
#include <openssl/evp.h>
+#define CIPHER_MAX_BLOCK_SIZE EVP_MAX_BLOCK_LENGTH
+#define CIPHER_MAX_KEY_SIZE EVP_MAX_KEY_LENGTH
+#define CIPHER_MAX_IV_SIZE EVP_MAX_IV_LENGTH
+
typedef struct cipher {
EVP_CIPHER_CTX ctx;
const EVP_CIPHER *cipher;
typedef struct cipher {
EVP_CIPHER_CTX ctx;
const EVP_CIPHER *cipher;