| OLD | NEW |
| 1 /* crypto/evp/m_dss.c */ | 1 /* crypto/evp/m_dss.c */ |
| 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * This package is an SSL implementation written | 5 * This package is an SSL implementation written |
| 6 * by Eric Young (eay@cryptsoft.com). | 6 * by Eric Young (eay@cryptsoft.com). |
| 7 * The implementation was written so as to conform with Netscapes SSL. | 7 * The implementation was written so as to conform with Netscapes SSL. |
| 8 * | 8 * |
| 9 * This library is free for commercial and non-commercial use as long as | 9 * This library is free for commercial and non-commercial use as long as |
| 10 * the following conditions are aheared to. The following conditions | 10 * the following conditions are aheared to. The following conditions |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 { return SHA1_Update(ctx->md_data,data,count); } | 74 { return SHA1_Update(ctx->md_data,data,count); } |
| 75 | 75 |
| 76 static int final(EVP_MD_CTX *ctx,unsigned char *md) | 76 static int final(EVP_MD_CTX *ctx,unsigned char *md) |
| 77 { return SHA1_Final(md,ctx->md_data); } | 77 { return SHA1_Final(md,ctx->md_data); } |
| 78 | 78 |
| 79 static const EVP_MD dsa_md= | 79 static const EVP_MD dsa_md= |
| 80 { | 80 { |
| 81 NID_dsaWithSHA, | 81 NID_dsaWithSHA, |
| 82 NID_dsaWithSHA, | 82 NID_dsaWithSHA, |
| 83 SHA_DIGEST_LENGTH, | 83 SHA_DIGEST_LENGTH, |
| 84 » EVP_MD_FLAG_FIPS, | 84 » EVP_MD_FLAG_PKEY_DIGEST, |
| 85 init, | 85 init, |
| 86 update, | 86 update, |
| 87 final, | 87 final, |
| 88 NULL, | 88 NULL, |
| 89 NULL, | 89 NULL, |
| 90 EVP_PKEY_DSA_method, | 90 EVP_PKEY_DSA_method, |
| 91 SHA_CBLOCK, | 91 SHA_CBLOCK, |
| 92 sizeof(EVP_MD *)+sizeof(SHA_CTX), | 92 sizeof(EVP_MD *)+sizeof(SHA_CTX), |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 const EVP_MD *EVP_dss(void) | 95 const EVP_MD *EVP_dss(void) |
| 96 { | 96 { |
| 97 return(&dsa_md); | 97 return(&dsa_md); |
| 98 } | 98 } |
| 99 #endif | 99 #endif |
| OLD | NEW |