Implement a EVP_PKEY KDF to KDF provider bridge
[openssl.git] / providers / implementations / kdfs / tls1_prf.c
index bc7d7fd721073e6a33cb4e9e437a4d760c8738a0..46a1253ee82616e0bf53bad1b8bc3bd0c4450232 100644 (file)
@@ -183,9 +183,6 @@ static int kdf_tls1_prf_set_ctx_params(void *vctx, const OSSL_PARAM params[])
     }
     /* The seed fields concatenate, so process them all */
     if ((p = OSSL_PARAM_locate_const(params, OSSL_KDF_PARAM_SEED)) != NULL) {
-        OPENSSL_cleanse(ctx->seed, ctx->seedlen);
-        ctx->seedlen = 0;
-
         for (; p != NULL; p = OSSL_PARAM_locate_const(p + 1,
                                                       OSSL_KDF_PARAM_SEED)) {
             const void *q = ctx->seed + ctx->seedlen;