Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(248)

Side by Side Diff: components/gcm_driver/crypto/p256_key_util_nss.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/gcm_driver/crypto/p256_key_util.cc ('k') | components/gcm_driver/crypto/p256_key_util_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698