| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 #ifndef NET_TOOLS_DOMAIN_SECURITY_PRELOAD_GENERATOR_SPKI_HASH_H_ | 5 #ifndef NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_SPKI_HASH_H_ |
| 6 #define NET_TOOLS_DOMAIN_SECURITY_PRELOAD_GENERATOR_SPKI_HASH_H_ | 6 #define NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_SPKI_HASH_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 namespace transport_security_state { | 14 namespace transport_security_state { |
| 15 | 15 |
| 16 class SPKIHash { | 16 class SPKIHash { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 // The bytes of the hash. Current hashes are SHA256 and thus 32 bytes long. | 41 // The bytes of the hash. Current hashes are SHA256 and thus 32 bytes long. |
| 42 uint8_t data_[kLength]; | 42 uint8_t data_[kLength]; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace transport_security_state | 45 } // namespace transport_security_state |
| 46 | 46 |
| 47 } // namespace net | 47 } // namespace net |
| 48 | 48 |
| 49 #endif // NET_TOOLS_DOMAIN_SECURITY_PRELOAD_GENERATOR_SPKI_HASH_H_ | 49 #endif // NET_TOOLS_TRANSPORT_SECURITY_STATE_GENERATOR_SPKI_HASH_H_ |
| OLD | NEW |