Rich Salz | d2e9e32 | 2016-05-17 14:51:26 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved. |
Ralf S. Engelschall | d02b48c | 1998-12-21 10:52:47 +0000 | [diff] [blame] | 3 | * |
Rich Salz | d2e9e32 | 2016-05-17 14:51:26 -0400 | [diff] [blame] | 4 | * Licensed under the OpenSSL license (the "License"). You may not use |
| 5 | * this file except in compliance with the License. You can obtain a copy |
| 6 | * in the file LICENSE in the source distribution or at |
| 7 | * https://www.openssl.org/source/license.html |
Ralf S. Engelschall | d02b48c | 1998-12-21 10:52:47 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
Ralf S. Engelschall | 4b8f2ce | 1999-02-25 11:06:52 +0000 | [diff] [blame] | 10 | /* Original version from Steven Schoch <schoch@sheba.arc.nasa.gov> */ |
Ralf S. Engelschall | d02b48c | 1998-12-21 10:52:47 +0000 | [diff] [blame] | 11 | |
Richard Levitte | b39fc56 | 2015-05-14 16:56:48 +0200 | [diff] [blame] | 12 | #include "internal/cryptlib.h" |
Matt Caswell | 1258396 | 2016-03-30 15:21:39 +0100 | [diff] [blame] | 13 | #include "dsa_locl.h" |
Dr. Stephen Henson | f7a2afa | 2011-01-25 16:55:15 +0000 | [diff] [blame] | 14 | #include <openssl/bn.h> |
Ralf S. Engelschall | d02b48c | 1998-12-21 10:52:47 +0000 | [diff] [blame] | 15 | |
Matt Caswell | 0f113f3 | 2015-01-22 03:40:55 +0000 | [diff] [blame] | 16 | DSA_SIG *DSA_do_sign(const unsigned char *dgst, int dlen, DSA *dsa) |
| 17 | { |
| 18 | return dsa->meth->dsa_do_sign(dgst, dlen, dsa); |
| 19 | } |
Ralf S. Engelschall | d02b48c | 1998-12-21 10:52:47 +0000 | [diff] [blame] | 20 | |
Ulf Möller | 6b691a5 | 1999-04-19 21:31:43 +0000 | [diff] [blame] | 21 | int DSA_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) |
Matt Caswell | 0f113f3 | 2015-01-22 03:40:55 +0000 | [diff] [blame] | 22 | { |
| 23 | return dsa->meth->dsa_sign_setup(dsa, ctx_in, kinvp, rp); |
| 24 | } |