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 "components/gcm_driver/crypto/p256_key_util.h" | 5 #include "components/gcm_driver/crypto/p256_key_util.h" |
6 | 6 |
| 7 #include <stddef.h> |
7 #include <stdint.h> | 8 #include <stdint.h> |
8 #include <vector> | 9 #include <vector> |
9 | 10 |
10 #include "base/logging.h" | 11 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
12 #include "crypto/ec_private_key.h" | 13 #include "crypto/ec_private_key.h" |
13 | 14 |
14 namespace gcm { | 15 namespace gcm { |
15 | 16 |
16 namespace { | 17 namespace { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 80 |
80 // Concatenate the leading 0x04 byte and the two uncompressed points. | 81 // Concatenate the leading 0x04 byte and the two uncompressed points. |
81 out_public_key->reserve(kUncompressedPointBytes); | 82 out_public_key->reserve(kUncompressedPointBytes); |
82 out_public_key->push_back(kUncompressedPointForm); | 83 out_public_key->push_back(kUncompressedPointForm); |
83 out_public_key->append(candidate_public_key); | 84 out_public_key->append(candidate_public_key); |
84 | 85 |
85 return true; | 86 return true; |
86 } | 87 } |
87 | 88 |
88 } // namespace gcm | 89 } // namespace gcm |
OLD | NEW |