diff options
author | Richard Levitte <levitte@openssl.org> | 2015-12-18 17:01:28 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-01-12 13:52:22 +0100 |
commit | 6435f0f6c6093e8e1dfb7b32c2a1a0cc646ba66d (patch) | |
tree | 444ba1661bcef4661ae6d390969833b533f6cf96 /crypto/evp/e_rc2.c | |
parent | Adapt the internal EVP routines to opaque EVP_CIPHER (diff) | |
download | openssl-6435f0f6c6093e8e1dfb7b32c2a1a0cc646ba66d.tar.xz openssl-6435f0f6c6093e8e1dfb7b32c2a1a0cc646ba66d.zip |
Adapt builtin cipher implementations to opaque EVP_CIPHER
They all stop including evp_locl.h, so we also take care of their
adaptation to opaque EVP_CIPHER_CTX, as was promised in an earlier
commit.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/evp/e_rc2.c')
-rw-r--r-- | crypto/evp/e_rc2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/evp/e_rc2.c b/crypto/evp/e_rc2.c index 1016ca8f38..03a5a73c94 100644 --- a/crypto/evp/e_rc2.c +++ b/crypto/evp/e_rc2.c @@ -63,7 +63,7 @@ # include <openssl/evp.h> # include <openssl/objects.h> -# include "evp_locl.h" +# include "internal/evp_int.h" # include <openssl/rc2.h> static int rc2_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, @@ -79,7 +79,7 @@ typedef struct { RC2_KEY ks; /* key schedule */ } EVP_RC2_KEY; -# define data(ctx) ((EVP_RC2_KEY *)(ctx)->cipher_data) +# define data(ctx) EVP_C_DATA(EVP_RC2_KEY,ctx) IMPLEMENT_BLOCK_CIPHER(rc2, ks, RC2, EVP_RC2_KEY, NID_rc2, 8, |