Camellia cipher, contributed by NTT
[openssl.git] / crypto / evp / e_cast.c
index 3d4079c..d77bcd9 100644 (file)
  * [including the GNU Public Licence.]
  */
 
-#ifndef OPENSSL_NO_CAST
-
 #include <stdio.h>
 #include "cryptlib.h"
+
+#ifndef OPENSSL_NO_CAST
 #include <openssl/evp.h>
 #include <openssl/objects.h>
 #include "evp_locl.h"
@@ -76,7 +76,7 @@ typedef struct
 #define data(ctx)      EVP_C_DATA(EVP_CAST_KEY,ctx)
 
 IMPLEMENT_BLOCK_CIPHER(cast5, ks, CAST, EVP_CAST_KEY, 
-                       NID_cast5, 8, CAST_KEY_LENGTH, 8,
+                       NID_cast5, 8, CAST_KEY_LENGTH, 8, 64,
                        EVP_CIPH_VARIABLE_LENGTH, cast_init_key, NULL,
                        EVP_CIPHER_set_asn1_iv, EVP_CIPHER_get_asn1_iv, NULL)