DSA_size.pod 1014 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. =pod
  2. =head1 NAME
  3. DSA_size, DSA_bits - get DSA signature size or key bits
  4. =head1 SYNOPSIS
  5. #include <openssl/dsa.h>
  6. int DSA_size(const DSA *dsa);
  7. int DSA_bits(const DSA *dsa);
  8. =head1 DESCRIPTION
  9. DSA_size() returns the maximum size of an ASN.1 encoded DSA signature
  10. for key B<dsa> in bytes. It can be used to determine how much memory must
  11. be allocated for a DSA signature.
  12. B<dsa-E<gt>q> must not be B<NULL>.
  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. =head1 RETURN VALUE
  16. DSA_size() returns the size in bytes.
  17. DSA_bits() returns the number of bits in the key.
  18. =head1 SEE ALSO
  19. L<dsa(3)>, L<DSA_sign(3)>
  20. =head1 COPYRIGHT
  21. Copyright 2000-2016 The OpenSSL Project Authors. All Rights Reserved.
  22. Licensed under the OpenSSL license (the "License"). You may not use
  23. this file except in compliance with the License. You can obtain a copy
  24. in the file LICENSE in the source distribution or at
  25. L<https://www.openssl.org/source/license.html>.
  26. =cut