2016-05-18 02:51:26 +08:00
|
|
|
/*
|
|
|
|
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
|
1998-12-21 18:52:47 +08:00
|
|
|
*
|
2016-05-18 02:51:26 +08:00
|
|
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
|
|
* in the file LICENSE in the source distribution or at
|
|
|
|
* https://www.openssl.org/source/license.html
|
1998-12-21 18:52:47 +08:00
|
|
|
*/
|
|
|
|
|
1999-02-25 19:06:52 +08:00
|
|
|
/* Original version from Steven Schoch <schoch@sheba.arc.nasa.gov> */
|
1998-12-21 18:52:47 +08:00
|
|
|
|
2015-05-14 22:56:48 +08:00
|
|
|
#include "internal/cryptlib.h"
|
2016-03-30 22:21:39 +08:00
|
|
|
#include "dsa_locl.h"
|
2011-01-26 00:55:15 +08:00
|
|
|
#include <openssl/bn.h>
|
1998-12-21 18:52:47 +08:00
|
|
|
|
2015-01-22 11:40:55 +08:00
|
|
|
DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa)
|
|
|
|
{
|
|
|
|
return dsa->meth->dsa_do_sign(dgst, dlen, dsa);
|
|
|
|
}
|
1998-12-21 18:52:47 +08:00
|
|
|
|
2011-01-26 00:55:15 +08:00
|
|
|
int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp)
|
2015-01-22 11:40:55 +08:00
|
|
|
{
|
|
|
|
return dsa->meth->dsa_sign_setup(dsa, ctx_in, kinvp, rp);
|
|
|
|
}
|