DSA_size.pod 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. =pod
  2. =head1 NAME
  3. DSA_size, DSA_bits, DSA_security_bits - get DSA signature size, key bits or security bits
  4. =head1 SYNOPSIS
  5. #include <openssl/dsa.h>
  6. int DSA_bits(const DSA *dsa);
  7. Deprecated since OpenSSL 3.0, can be hidden entirely by defining
  8. B<OPENSSL_API_COMPAT> with a suitable version value, see
  9. L<openssl_user_macros(7)>:
  10. int DSA_size(const DSA *dsa);
  11. int DSA_security_bits(const DSA *dsa);
  12. =head1 DESCRIPTION
  13. DSA_bits() returns the number of bits in key B<dsa>: this is the number
  14. of bits in the B<p> parameter.
  15. The remaining functions described on this page are deprecated.
  16. Applications should instead use L<EVP_PKEY_security_bits(3)> and
  17. L<EVP_PKEY_size(3)>.
  18. DSA_size() returns the maximum size of an ASN.1 encoded DSA signature
  19. for key B<dsa> in bytes. It can be used to determine how much memory must
  20. be allocated for a DSA signature.
  21. B<dsa-E<gt>q> must not be B<NULL>.
  22. DSA_security_bits() returns the number of security bits of the given B<dsa>
  23. key. See L<BN_security_bits(3)>.
  24. =head1 RETURN VALUES
  25. DSA_bits() returns the number of bits in the key.
  26. DSA_size() returns the signature size in bytes.
  27. =head1 SEE ALSO
  28. L<EVP_PKEY_bits(3)>,
  29. L<EVP_PKEY_security_bits(3)>,
  30. L<EVP_PKEY_size(3)>,
  31. L<DSA_new(3)>, L<DSA_sign(3)>
  32. =head1 HISTORY
  33. The DSA_size() and DSA_security_bits() functions were deprecated in OpenSSL 3.0.
  34. =head1 COPYRIGHT
  35. Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
  36. Licensed under the Apache License 2.0 (the "License"). You may not use
  37. this file except in compliance with the License. You can obtain a copy
  38. in the file LICENSE in the source distribution or at
  39. L<https://www.openssl.org/source/license.html>.
  40. =cut