aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/evp/e_seed.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-12-18 17:01:28 +0100
committerRichard Levitte <levitte@openssl.org>2016-01-12 13:52:22 +0100
commit6435f0f6c6093e8e1dfb7b32c2a1a0cc646ba66d (patch)
tree444ba1661bcef4661ae6d390969833b533f6cf96 /crypto/evp/e_seed.c
parent135727abe0bfbb6ff85b92244fd67e3e831a6ee3 (diff)
downloadopenssl-6435f0f6c6093e8e1dfb7b32c2a1a0cc646ba66d.tar.gz
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_seed.c')
-rw-r--r--crypto/evp/e_seed.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/evp/e_seed.c b/crypto/evp/e_seed.c
index 7249d1b1ee..c7a95e4f16 100644
--- a/crypto/evp/e_seed.c
+++ b/crypto/evp/e_seed.c
@@ -60,7 +60,7 @@
# include <string.h>
# include <assert.h>
# include <openssl/seed.h>
-# include "evp_locl.h"
+# include "internal/evp_int.h"
static int seed_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
const unsigned char *iv, int enc);
@@ -75,7 +75,7 @@ IMPLEMENT_BLOCK_CIPHER(seed, ks, SEED, EVP_SEED_KEY, NID_seed,
static int seed_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
const unsigned char *iv, int enc)
{
- SEED_set_key(key, ctx->cipher_data);
+ SEED_set_key(key, &EVP_C_DATA(EVP_SEED_KEY,ctx)->ks);
return 1;
}