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

Unified Diff: net/cert/signed_certificate_timestamp.cc

Issue 230713002: Certificate Transparency: Parse Signed Tree Heads and validate them (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing more of Ryan's comments Created 6 years, 7 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 | « net/cert/signed_certificate_timestamp.h ('k') | net/cert/signed_tree_head.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/signed_certificate_timestamp.cc
diff --git a/net/cert/signed_certificate_timestamp.cc b/net/cert/signed_certificate_timestamp.cc
index 0a72cd1f9d2d0e55c40800284e564e30837c1385..371eea67b30dcb4ea05771b11f4fcb4620bff428 100644
--- a/net/cert/signed_certificate_timestamp.cc
+++ b/net/cert/signed_certificate_timestamp.cc
@@ -89,6 +89,12 @@ DigitallySigned::DigitallySigned() {}
DigitallySigned::~DigitallySigned() {}
+bool DigitallySigned::SignatureParametersMatch(
+ HashAlgorithm other_hash_algorithm,
+ SignatureAlgorithm other_signature_algorithm) const {
+ return (hash_algorithm == other_hash_algorithm) &&
+ (signature_algorithm == other_signature_algorithm);
+}
} // namespace ct
} // namespace net
« no previous file with comments | « net/cert/signed_certificate_timestamp.h ('k') | net/cert/signed_tree_head.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698