Make EVP_CIPHER opaque and add creator/destructor/accessor/writer functions
[openssl.git] / crypto / evp / evp_lib.c
index 0b062db49a9c9bcccd4db9aa5ce6e14431beb8c6..63226566c22fd26c9aa3d68d4fc3560afa8e4280 100644 (file)
@@ -221,6 +221,11 @@ int EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *ctx)
     return ctx->cipher->block_size;
 }
 
     return ctx->cipher->block_size;
 }
 
+int EVP_CIPHER_impl_ctx_size(const EVP_CIPHER *e)
+{
+    return e->ctx_size;
+}
+
 int EVP_Cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
                const unsigned char *in, unsigned int inl)
 {
 int EVP_Cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
                const unsigned char *in, unsigned int inl)
 {