diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-02-02 14:21:33 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-02-02 14:21:33 +0000 |
commit | a5b196a22c62d9d1d113bff6d8fc8c17d5f5734a (patch) | |
tree | f0b5bab467444ea1ef7504a1041e2bd04cc4b4b5 /fips/dsa | |
parent | b6104f9ad8a704cf75f32faed4b47bed216dd58d (diff) |
Add sign/verify digest API to handle an explicit digest instead of finalising
a context.
Diffstat (limited to 'fips/dsa')
-rw-r--r-- | fips/dsa/fips_dsa_sign.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fips/dsa/fips_dsa_sign.c b/fips/dsa/fips_dsa_sign.c index 7223589af3..2875752e01 100644 --- a/fips/dsa/fips_dsa_sign.c +++ b/fips/dsa/fips_dsa_sign.c @@ -82,6 +82,11 @@ DSA_SIG * FIPS_dsa_sign_ctx(DSA *dsa, EVP_MD_CTX *ctx) return s; } +DSA_SIG * FIPS_dsa_sign_digest(DSA *dsa, const unsigned char *dig, int dlen) + { + return dsa->meth->dsa_do_sign(dig, dlen, dsa); + } + int FIPS_dsa_verify_ctx(DSA *dsa, EVP_MD_CTX *ctx, DSA_SIG *s) { int ret=-1; @@ -93,4 +98,10 @@ int FIPS_dsa_verify_ctx(DSA *dsa, EVP_MD_CTX *ctx, DSA_SIG *s) return ret; } +int FIPS_dsa_verify_digest(DSA *dsa, + const unsigned char *dig, int dlen, DSA_SIG *s) + { + return dsa->meth->dsa_do_verify(dig,dlen,s,dsa); + } + #endif |