| 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> |
| 9 #include <string.h> |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/logging.h" | 12 #include "base/logging.h" |
| 11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 12 #include "crypto/ec_private_key.h" | 14 #include "crypto/ec_private_key.h" |
| 13 #include "crypto/scoped_nss_types.h" | 15 #include "crypto/scoped_nss_types.h" |
| 14 | 16 |
| 15 namespace gcm { | 17 namespace gcm { |
| 16 | 18 |
| 17 namespace { | 19 namespace { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 DLOG(ERROR) << "The raw ECDH shared secret is invalid."; | 93 DLOG(ERROR) << "The raw ECDH shared secret is invalid."; |
| 92 return false; | 94 return false; |
| 93 } | 95 } |
| 94 | 96 |
| 95 out_shared_secret->assign( | 97 out_shared_secret->assign( |
| 96 reinterpret_cast<char*>(key_data->data), key_data->len); | 98 reinterpret_cast<char*>(key_data->data), key_data->len); |
| 97 return true; | 99 return true; |
| 98 } | 100 } |
| 99 | 101 |
| 100 } // namespace gcm | 102 } // namespace gcm |
| OLD | NEW |