DSA_DO_SIGN(3ossl)
π NAME π
okay so bestie, this page is about DSA_do_sign and DSA_do_verify β the raw DSA signature operations. that's it, that's the vibe. it's the OpenSSL manual, page DSA_DO_SIGN(3ossl), and yes we're doing this together π«Ά
β¨ SYNOPSIS β¨
first things first, you gotta pull in the header:
#include <openssl/dsa.h>
π π¨ deprecated alert π¨ the functions below have been deprecated since OpenSSL 3.0, and you can hide them entirely by definingOPENSSL_API_COMPATwith a suitable version value β go peek atopenssl_user_macros(7)for the tea. β
here are the signatures, exactly as written, no cap:
DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa);
int DSA_do_verify(const unsigned char *dgst, int dgst_len,
DSA_SIG *sig, DSA *dsa);
πΈ DESCRIPTION πΈ
okay so real talk: all of the functions described on this page are deprecated. like, every single one. the glow-up you actually want is:
applications should use those instead. periodt. π
now for the lore, because you still deserve to know what these do:
DSA_do_sign()β computes a digital signature on thelenbyte message digestdgstusing the private keydsa, and hands it back to you in a newly allocatedDSA_SIGstructure. it's giving "here's your signature, bestie, it's yours now" πDSA_sign_setup(3)β may be used to precompute part of the signing operation in case signature generation is time-critical. iykyk β if you're in a rush, this is the move β±οΈβ¨DSA_do_verify()β verifies that the signaturesigmatches a given message digestdgstof sizelen. anddsahere is the signer's public key. main character verification energy π₯
π¦ RETURN VALUES π¦
DSA_do_sign()β returns the signature, orNULLon error. π no signature for you.DSA_do_verify()β returns1for a valid signature β ,0for an incorrect signature π, and-1on error π.
and where do you get the error codes, you ask? ERR_get_error(3), obviously. go get 'em. π
π SEE ALSO π
the whole friend group, linked up:
π HISTORY π
so like, a lil backstory: all of these functions were deprecated in OpenSSL 3.0. that's the whole plot. π
π COPYRIGHT π
Copyright 2000-2021 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>.
okay bestie that's the whole page, you ate that π
β¨ this was DSA_DO_SIGN(3ossl) from OpenSSL 3.5.6, dated 2026-04-07 β mwah, go forth and please use the EVP functions fr fr π«Άππ¦
π¦ where this page comes from
- freebsd 15.1: base 15.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms