2016-05-17 18:51:26 +00:00
|
|
|
/*
|
|
|
|
* Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
|
1998-12-21 10:52:47 +00:00
|
|
|
*
|
2016-05-17 18:51:26 +00: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 10:52:47 +00:00
|
|
|
*/
|
|
|
|
|
1999-02-25 11:06:52 +00:00
|
|
|
/* Original version from Steven Schoch <schoch@sheba.arc.nasa.gov> */
|
1998-12-21 10:52:47 +00:00
|
|
|
|
2015-05-14 14:56:48 +00:00
|
|
|
#include "internal/cryptlib.h"
|
2016-03-30 14:21:39 +00:00
|
|
|
#include "dsa_locl.h"
|
2009-09-09 12:15:08 +00:00
|
|
|
#include <openssl/rand.h>
|
2011-01-25 16:55:15 +00:00
|
|
|
#include <openssl/bn.h>
|
1998-12-21 10:52:47 +00:00
|
|
|
|
2015-01-22 03:40:55 +00: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 10:52:47 +00:00
|
|
|
|
2011-01-25 16:55:15 +00:00
|
|
|
int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp)
|
2015-01-22 03:40:55 +00:00
|
|
|
{
|
|
|
|
return dsa->meth->dsa_sign_setup(dsa, ctx_in, kinvp, rp);
|
|
|
|
}
|