DSA_SIZE(3)

πŸ“¦ version 4.4.0, in alpine 3.24, arch rolling

✨ 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