Ensure cipher_generic_initkey gets passed the actual provider ctx
[openssl.git] / providers / implementations / include / prov / ciphercommon.h
index 18bb5790267262d82e183e6f118e6e6d667baa4b..55adf3caa2f590cc034943125aa942a4b1ff29b0 100644 (file)
@@ -175,7 +175,8 @@ static void * alg##_##kbits##_##lcmode##_newctx(void *provctx)                 \
      if (ctx != NULL) {                                                        \
          cipher_generic_initkey(ctx, kbits, blkbits, ivbits,                   \
                                 EVP_CIPH_##UCMODE##_MODE, flags,               \
-                                PROV_CIPHER_HW_##alg##_##lcmode(kbits), NULL); \
+                                PROV_CIPHER_HW_##alg##_##lcmode(kbits),        \
+                                provctx);                                      \
      }                                                                         \
      return ctx;                                                               \
 }                                                                              \