Go to main content

man pages section 3: Extended Library Functions, Volume 1

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

DSA_size (3openssl)

Name

DSA_size - get DSA signature size

Synopsis

#include <openssl/dsa.h>

int DSA_size(const DSA *dsa);

Description

DSA_size(3openssl)                  OpenSSL                 DSA_size(3openssl)



NAME
       DSA_size - get DSA signature size

SYNOPSIS
        #include <openssl/dsa.h>

        int DSA_size(const DSA *dsa);

DESCRIPTION
       This function returns the size of an ASN.1 encoded DSA signature in
       bytes. It can be used to determine how much memory must be allocated
       for a DSA signature.

       dsa->q must not be NULL.

RETURN VALUE
       The size in bytes.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+--------------------------+
       |ATTRIBUTE TYPE |     ATTRIBUTE VALUE      |
       +---------------+--------------------------+
       |Availability   | library/security/openssl |
       +---------------+--------------------------+
       |Stability      | Pass-through uncommitted |
       +---------------+--------------------------+

SEE ALSO
       dsa(3), DSA_sign(3)

HISTORY
       DSA_size() is available in all versions of SSLeay and OpenSSL.



NOTES
       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       https://www.openssl.org/source/openssl-1.0.2ze.tar.gz.

       Further information about this software can be found on the open source
       community website at https://www.openssl.org/.



1.0.2ze                           2022-05-03                DSA_size(3openssl)