Deleted Added
full compact
dgst.c (1.1.1.18) dgst.c (1.1.1.19)
1/*
2 * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
8 */

--- 306 unchanged lines hidden (view full) ---

315 goto end;
316 }
317 }
318 }
319
320 sigkey = app_keygen(mac_ctx, mac_name, 0, 0 /* not verbose */);
321 /* Verbose output would make external-tests gost-engine fail */
322 EVP_PKEY_CTX_free(mac_ctx);
1/*
2 * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
8 */

--- 306 unchanged lines hidden (view full) ---

315 goto end;
316 }
317 }
318 }
319
320 sigkey = app_keygen(mac_ctx, mac_name, 0, 0 /* not verbose */);
321 /* Verbose output would make external-tests gost-engine fail */
322 EVP_PKEY_CTX_free(mac_ctx);
323 if (sigkey == NULL)
324 goto end;
323 }
324
325 if (hmac_key != NULL) {
326 if (md == NULL) {
327 md = (EVP_MD *)EVP_sha256();
328 digestname = SN_sha256;
329 }
330 sigkey = EVP_PKEY_new_raw_private_key(EVP_PKEY_HMAC, impl,

--- 325 unchanged lines hidden ---
325 }
326
327 if (hmac_key != NULL) {
328 if (md == NULL) {
329 md = (EVP_MD *)EVP_sha256();
330 digestname = SN_sha256;
331 }
332 sigkey = EVP_PKEY_new_raw_private_key(EVP_PKEY_HMAC, impl,

--- 325 unchanged lines hidden ---