DSA_SIZE(3)
β¨ NAME β¨ β DSA_SIZE(3), from the Library Functions Manual
okay so this is the Library Functions Manual page for DSA_SIZE(3), and it's literally about:
DSA_size,DSA_bitsβ get DSA signature or key size
bestie, it's giving βtiny utility, big crypto energyβ and I'm obsessed. π
π SYNOPSIS π
library βlibcryptoβ #include <openssl/dsa.h>
int
DSA_size(const DSA *dsa);
int
DSA_bits(const DSA *dsa);
π¦ DESCRIPTION π¦
DSA_size() returns the maximum size of an ASN.1 encoded DSA signature for the key dsa in bytes. It can be used to determine how much memory must be allocated for a DSA signature.
π¨ bestie, attention please: dsa->q must not be NULL. like, do not pass that. periodt.
DSA_bits() returns the number of significant bits in the public domain parameter p contained in dsa. This is also the number of bits in the public key.
πΈ RETURN VALUES πΈ
DSA_size()β returns the size of the signature in bytes.DSA_bits()β returns the size of the public key in bits.
slay, that's the whole return-value situation. π«Ά
π«Ά SEE ALSO π«Ά
π HISTORY π
DSA_size()first appeared in SSLeay 0.6.0 and has been available since OpenBSD 2.4.DSA_bits()first appeared in OpenSSL 1.1.0 and has been available since OpenBSD 7.1.
kisses, this page's source/version is Debian, dated June 8, 2025 β no cap, that's the whole footer vibe. πβ¨
π¦ where this page comes from
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2022 Ingo Schwarze <schwarze@openbsd.org>
- Copyright (c) 2000, 2002, 2016 The OpenSSL Project. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms