Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: crypto/signature_verifier_nss.cc

Issue 18181018: Use the HASH_ResultLenContext and HASH_GetType functions, now that they (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/signature_verifier_nss.cc
===================================================================
--- crypto/signature_verifier_nss.cc (revision 209214)
+++ crypto/signature_verifier_nss.cc (working copy)
@@ -35,7 +35,7 @@
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 @@
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);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698