DSA_size.pod 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_size(const DSA *dsa);
  7. int DSA_bits(const DSA *dsa);
  8. int DSA_security_bits(const DSA *dsa);
  9. =head1 DESCRIPTION
  10. DSA_size() returns the maximum size of an ASN.1 encoded DSA signature
  11. for key B<dsa> in bytes. It can be used to determine how much memory must
  12. be allocated for a DSA signature.
  13. B<dsa-E<gt>q> must not be B<NULL>.
  14. DSA_bits() returns the number of bits in key B<dsa>: this is the number
  15. of bits in the B<p> parameter.
  16. DSA_security_bits() returns the number of security bits of the given B<dsa>
  17. key. See L<BN_security_bits(3)>.
  18. =head1 RETURN VALUES
  19. DSA_size() returns the signature size in bytes.
  20. DSA_bits() returns the number of bits in the key.
  21. =head1 SEE ALSO
  22. L<DSA_new(3)>, L<DSA_sign(3)>
  23. =head1 COPYRIGHT
  24. Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved.
  25. Licensed under the Apache License 2.0 (the "License"). You may not use
  26. this file except in compliance with the License. You can obtain a copy
  27. in the file LICENSE in the source distribution or at
  28. L<https://www.openssl.org/source/license.html>.
  29. =cut