]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/evp/e_ofb_bf.c
Change functions to ANSI C.
[thirdparty/openssl.git] / crypto / evp / e_ofb_bf.c
index 492f9b908241c90dede37a0fd976a4780881a63d..b1753e60cdebf563ac1b426b2e55ea8bd1d045aa 100644 (file)
@@ -86,16 +86,13 @@ static EVP_CIPHER bfish_ofb_cipher=
        EVP_CIPHER_get_asn1_iv,
        };
 
-EVP_CIPHER *EVP_bf_ofb()
+EVP_CIPHER *EVP_bf_ofb(void)
        {
        return(&bfish_ofb_cipher);
        }
        
-static void bf_ofb_init_key(ctx,key,iv,enc)
-EVP_CIPHER_CTX *ctx;
-unsigned char *key;
-unsigned char *iv;
-int enc;
+static void bf_ofb_init_key(EVP_CIPHER_CTX *ctx, unsigned char *key,
+            unsigned char *iv, int enc)
        {
        ctx->num=0;
 
@@ -106,11 +103,8 @@ int enc;
                BF_set_key(&(ctx->c.bf_ks),EVP_BLOWFISH_KEY_SIZE,key);
        }
 
-static void bf_ofb_cipher(ctx,out,in,inl)
-EVP_CIPHER_CTX *ctx;
-unsigned char *out;
-unsigned char *in;
-unsigned int inl;
+static void bf_ofb_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
+            unsigned char *in, unsigned int inl)
        {
        BF_ofb64_encrypt(
                in,out,