]> git.meshlink.io Git - meshlink/blobdiff - src/openssl/cipher.h
Move RSA key generation into the wrappers.
[meshlink] / src / openssl / cipher.h
index d17e25455daec4222a1864591223f4674f094b86..20535ed3431c16e832d06985aebb2e2755209af2 100644 (file)
 
 #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;