OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/cert/ct_log_verifier_util.h" | 5 #include "net/cert/ct_log_verifier_util.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <cmath> | 9 #include <cmath> |
8 | 10 |
9 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
10 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
11 #include "crypto/secure_hash.h" | 13 #include "crypto/secure_hash.h" |
12 #include "crypto/sha2.h" | 14 #include "crypto/sha2.h" |
13 | 15 |
14 namespace net { | 16 namespace net { |
15 | 17 |
16 namespace ct { | 18 namespace ct { |
(...skipping 22 matching lines...) Expand all Loading... |
39 hash->Finish(base::WriteInto(&result, crypto::kSHA256Length + 1), | 41 hash->Finish(base::WriteInto(&result, crypto::kSHA256Length + 1), |
40 crypto::kSHA256Length); | 42 crypto::kSHA256Length); |
41 return result; | 43 return result; |
42 } | 44 } |
43 | 45 |
44 } // namespace internal | 46 } // namespace internal |
45 | 47 |
46 } // namespace ct | 48 } // namespace ct |
47 | 49 |
48 } // namespace net | 50 } // namespace net |
OLD | NEW |