ct_log_verifier_util.h 622 B

12345678910111213141516171819202122
  1. // Copyright 2015 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef NET_CERT_CT_LOG_VERIFIER_UTIL_H_
  5. #define NET_CERT_CT_LOG_VERIFIER_UTIL_H_
  6. #include <stdint.h>
  7. #include <string>
  8. #include "net/base/net_export.h"
  9. namespace net::ct::internal {
  10. // Hash |lh| and |rh| to produce a node hash according to
  11. // http://tools.ietf.org/html/rfc6962#section-2.1
  12. NET_EXPORT std::string HashNodes(const std::string& lh, const std::string& rh);
  13. } // namespace net::ct::internal
  14. #endif // NET_CERT_CT_LOG_VERIFIER_UTIL_H_