DSA_DUP_DH(3ossl)
π DSA_DUP_DH (3ossl) π
okay so bestie, this is a page from the 3ossl manual family, and ngl it's a little bit of a vintage moment β we're talking about turning a DSA thing into a DH thing. Let's get into it π
β¨ NAME β¨
DSA_dup_DH β create a DH structure out of DSA structure. that's literally the whole vibe. π¦
πΈ SYNOPSIS πΈ
#include <openssl/dsa.h>
so before you even think about calling this, heads up π β the following functions have been deprecated since OpenSSL 3.0, and can be hidden entirely by defining OPENSSL_API_COMPAT with a suitable version value, see openssl_user_macros(7):
DH *DSA_dup_DH(const DSA *r);
like. she's deprecated, bestie. she's still here, but she's on the way out π
π DESCRIPTION π
The function described on this page is deprecated. and not in a cute retro way β there is no direct replacement, so applications should use the EVP_PKEY APIs for Diffie-Hellman operations. periodt. that's the migration path, no cap. β¨
DSA_dup_DH() duplicates DSA parameters/keys as DH parameters/keys. it's giving copy-paste but make it cryptography π
but here's the tea β β q is lost during that conversion, but the resulting DH parameters contain its length. so q itself? gone. the length of q? she's still in the building. iykyk π«Ά
π₯ RETURN VALUES π₯
DSA_dup_DH() returns the new DH structure, and NULL on error. and if you get that NULL, don't panic β the error codes can be obtained by ERR_get_error(3). go read the receipts, bestie π
β NOTE β
Be careful to avoid small subgroup attacks when using this. π¨
like fr fr, this is not a drill β small subgroup attacks are real and you do NOT want that energy in your crypto. protect yourself. π‘οΈπ
π SEE ALSO π
go read those, they're all linked in the group chat π
π§ HISTORY π§
This function was deprecated in OpenSSL 3.0. so yeah, she's been on the deprecated list for a minute πΈ
π COPYRIGHT π
Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
and that's the whole page, bestie!! π written by the OpenSSL girlies, version 3.5.0, dated 2026-09-25 β mwah, slay, go forth and use EVP_PKEY instead π
β¨π¦
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms