diff options
author | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-01 07:40:09 +0000 |
---|---|---|
committer | wtc@chromium.org <wtc@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-01 07:40:09 +0000 |
commit | b969e6ccc0602ab22d9a8be403d6526b7a996e27 (patch) | |
tree | 062fd3364612387338c281b920e8335244ab4f5b /crypto | |
parent | 3f911f9ab1552de006bebd3992986925cd3fa099 (diff) | |
download | chromium_src-b969e6ccc0602ab22d9a8be403d6526b7a996e27.zip chromium_src-b969e6ccc0602ab22d9a8be403d6526b7a996e27.tar.gz chromium_src-b969e6ccc0602ab22d9a8be403d6526b7a996e27.tar.bz2 |
Use the HASH_ResultLenContext and HASH_GetType functions, now that they
are exported.
R=rsleevi@chromium.org
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/18181018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209388 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/signature_verifier_nss.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/signature_verifier_nss.cc b/crypto/signature_verifier_nss.cc index 69b0f82..5be620d 100644 --- a/crypto/signature_verifier_nss.cc +++ b/crypto/signature_verifier_nss.cc @@ -35,7 +35,7 @@ SECStatus VerifyRSAPSS_End(SECKEYPublicKey* public_key, unsigned int salt_len, const unsigned char* signature, unsigned int signature_len) { - unsigned int hash_len = hash_context->hashobj->length; + unsigned int hash_len = HASH_ResultLenContext(hash_context); std::vector<unsigned char> hash(hash_len); HASH_End(hash_context, &hash[0], &hash_len, hash.size()); @@ -53,7 +53,7 @@ SECStatus VerifyRSAPSS_End(SECKEYPublicKey* public_key, return rv; } return emsa_pss_verify(&hash[0], &enc[0], enc.size(), - hash_context->hashobj->type, mask_hash_alg, + HASH_GetType(hash_context), mask_hash_alg, salt_len); } |