1*1dcdf01fSchristos /*
2*1dcdf01fSchristos  * Copyright 1995-2018 The OpenSSL Project Authors. All Rights Reserved.
360662d10Schristos  *
4*1dcdf01fSchristos  * Licensed under the OpenSSL license (the "License").  You may not use
5*1dcdf01fSchristos  * this file except in compliance with the License.  You can obtain a copy
6*1dcdf01fSchristos  * in the file LICENSE in the source distribution or at
7*1dcdf01fSchristos  * https://www.openssl.org/source/license.html
860662d10Schristos  */
960662d10Schristos 
10*1dcdf01fSchristos #include "internal/cryptlib.h"
11*1dcdf01fSchristos #include "dsa_local.h"
1260662d10Schristos #include <openssl/bn.h>
1360662d10Schristos 
DSA_do_sign(const unsigned char * dgst,int dlen,DSA * dsa)1460662d10Schristos DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa)
1560662d10Schristos {
1660662d10Schristos     return dsa->meth->dsa_do_sign(dgst, dlen, dsa);
1760662d10Schristos }
1860662d10Schristos 
19*1dcdf01fSchristos #if OPENSSL_API_COMPAT < 0x10200000L
DSA_sign_setup(DSA * dsa,BN_CTX * ctx_in,BIGNUM ** kinvp,BIGNUM ** rp)2060662d10Schristos int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp)
2160662d10Schristos {
2260662d10Schristos     return dsa->meth->dsa_sign_setup(dsa, ctx_in, kinvp, rp);
2360662d10Schristos }
24*1dcdf01fSchristos #endif
25