summaryrefslogtreecommitdiffstats
path: root/providers/implementations/ciphers/cipher_des.c
diff options
context:
space:
mode:
Diffstat (limited to 'providers/implementations/ciphers/cipher_des.c')
-rw-r--r--providers/implementations/ciphers/cipher_des.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/providers/implementations/ciphers/cipher_des.c b/providers/implementations/ciphers/cipher_des.c
index ca2a924a91..e2c890979e 100644
--- a/providers/implementations/ciphers/cipher_des.c
+++ b/providers/implementations/ciphers/cipher_des.c
@@ -96,6 +96,7 @@ static int des_init(void *vctx, const unsigned char *key, size_t keylen,
}
if (!ctx->hw->init(ctx, key, keylen))
return 0;
+ ctx->key_set = 1;
}
return ossl_cipher_generic_set_ctx_params(ctx, params);
}