1 1.1 christos =pod 2 1.1 christos 3 1.1 christos =head1 NAME 4 1.1 christos 5 1.1 christos DSA_do_sign, DSA_do_verify - raw DSA signature operations 6 1.1 christos 7 1.1 christos =head1 SYNOPSIS 8 1.1 christos 9 1.1 christos #include <openssl/dsa.h> 10 1.1 christos 11 1.1.1.2 christos The following functions have been deprecated since OpenSSL 3.0, and can be 12 1.1.1.2 christos hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value, 13 1.1.1.2 christos see L<openssl_user_macros(7)>: 14 1.1.1.2 christos 15 1.1 christos DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa); 16 1.1 christos 17 1.1 christos int DSA_do_verify(const unsigned char *dgst, int dgst_len, 18 1.1 christos DSA_SIG *sig, DSA *dsa); 19 1.1 christos 20 1.1 christos =head1 DESCRIPTION 21 1.1 christos 22 1.1.1.2 christos All of the functions described on this page are deprecated. 23 1.1.1.2 christos Applications should instead use L<EVP_PKEY_sign_init(3)>, L<EVP_PKEY_sign(3)>, 24 1.1.1.2 christos L<EVP_PKEY_verify_init(3)> and L<EVP_PKEY_verify(3)>. 25 1.1.1.2 christos 26 1.1 christos DSA_do_sign() computes a digital signature on the B<len> byte message 27 1.1 christos digest B<dgst> using the private key B<dsa> and returns it in a 28 1.1 christos newly allocated B<DSA_SIG> structure. 29 1.1 christos 30 1.1 christos L<DSA_sign_setup(3)> may be used to precompute part 31 1.1 christos of the signing operation in case signature generation is 32 1.1 christos time-critical. 33 1.1 christos 34 1.1 christos DSA_do_verify() verifies that the signature B<sig> matches a given 35 1.1 christos message digest B<dgst> of size B<len>. B<dsa> is the signer's public 36 1.1 christos key. 37 1.1 christos 38 1.1 christos =head1 RETURN VALUES 39 1.1 christos 40 1.1 christos DSA_do_sign() returns the signature, NULL on error. DSA_do_verify() 41 1.1 christos returns 1 for a valid signature, 0 for an incorrect signature and -1 42 1.1 christos on error. The error codes can be obtained by 43 1.1 christos L<ERR_get_error(3)>. 44 1.1 christos 45 1.1 christos =head1 SEE ALSO 46 1.1 christos 47 1.1 christos L<DSA_new(3)>, L<ERR_get_error(3)>, L<RAND_bytes(3)>, 48 1.1 christos L<DSA_SIG_new(3)>, 49 1.1 christos L<DSA_sign(3)> 50 1.1 christos 51 1.1.1.2 christos =head1 HISTORY 52 1.1.1.2 christos 53 1.1.1.2 christos All of these functions were deprecated in OpenSSL 3.0. 54 1.1.1.2 christos 55 1.1 christos =head1 COPYRIGHT 56 1.1 christos 57 1.1.1.2 christos Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved. 58 1.1 christos 59 1.1.1.2 christos Licensed under the Apache License 2.0 (the "License"). You may not use 60 1.1 christos this file except in compliance with the License. You can obtain a copy 61 1.1 christos in the file LICENSE in the source distribution or at 62 1.1 christos L<https://www.openssl.org/source/license.html>. 63 1.1 christos 64 1.1 christos =cut 65