X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=blobdiff_plain;f=providers%2Fdefault%2Fciphers%2Fcipher_blowfish.c;h=4730f1fd40e5d4f32b33d808108f1fced7b382de;hp=9e2920df962c3e43a2abfb5db1854a6050be4446;hb=6ef81d388d78ad417f6fc5d02ef61b54995c5335;hpb=c96399e296d9c280115d2ed9c129399c61b8edfc diff --git a/providers/default/ciphers/cipher_blowfish.c b/providers/default/ciphers/cipher_blowfish.c index 9e2920df96..4730f1fd40 100644 --- a/providers/default/ciphers/cipher_blowfish.c +++ b/providers/default/ciphers/cipher_blowfish.c @@ -12,6 +12,8 @@ #include "cipher_blowfish.h" #include "internal/provider_algs.h" +#define BF_FLAGS (EVP_CIPH_VARIABLE_LENGTH) + static OSSL_OP_cipher_freectx_fn blowfish_freectx; static OSSL_OP_cipher_dupctx_fn blowfish_dupctx; @@ -37,10 +39,10 @@ static void *blowfish_dupctx(void *ctx) } /* bf_ecb_functions */ -IMPLEMENT_generic_cipher(blowfish, BLOWFISH, ecb, ECB, EVP_CIPH_VARIABLE_LENGTH, 128, 64, 0, block) +IMPLEMENT_generic_cipher(blowfish, BLOWFISH, ecb, ECB, BF_FLAGS, 128, 64, 0, block) /* bf_cbc_functions */ -IMPLEMENT_generic_cipher(blowfish, BLOWFISH, cbc, CBC, EVP_CIPH_VARIABLE_LENGTH, 128, 64, 64, block) +IMPLEMENT_generic_cipher(blowfish, BLOWFISH, cbc, CBC, BF_FLAGS, 128, 64, 64, block) /* bf_ofb_functions */ -IMPLEMENT_generic_cipher(blowfish, BLOWFISH, ofb64, OFB, EVP_CIPH_VARIABLE_LENGTH, 64, 8, 64, stream) +IMPLEMENT_generic_cipher(blowfish, BLOWFISH, ofb64, OFB, BF_FLAGS, 64, 8, 64, stream) /* bf_cfb_functions */ -IMPLEMENT_generic_cipher(blowfish, BLOWFISH, cfb64, CFB, EVP_CIPH_VARIABLE_LENGTH, 64, 8, 64, stream) +IMPLEMENT_generic_cipher(blowfish, BLOWFISH, cfb64, CFB, BF_FLAGS, 64, 8, 64, stream)