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

Side by Side Diff: crypto/openssl_util.h

Issue 1539353003: Switch to standard integer types in crypto/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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
« no previous file with comments | « crypto/nss_util_internal.h ('k') | crypto/openssl_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CRYPTO_OPENSSL_UTIL_H_ 5 #ifndef CRYPTO_OPENSSL_UTIL_H_
6 #define CRYPTO_OPENSSL_UTIL_H_ 6 #define CRYPTO_OPENSSL_UTIL_H_
7 7
8 #include "base/basictypes.h" 8 #include <stddef.h>
9
9 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/macros.h"
10 #include "crypto/crypto_export.h" 12 #include "crypto/crypto_export.h"
11 13
12 namespace crypto { 14 namespace crypto {
13 15
14 // Provides a buffer of at least MIN_SIZE bytes, for use when calling OpenSSL's 16 // Provides a buffer of at least MIN_SIZE bytes, for use when calling OpenSSL's
15 // SHA256, HMAC, etc functions, adapting the buffer sizing rules to meet those 17 // SHA256, HMAC, etc functions, adapting the buffer sizing rules to meet those
16 // of the our base wrapper APIs. 18 // of the our base wrapper APIs.
17 // This allows the library to write directly to the caller's buffer if it is of 19 // This allows the library to write directly to the caller's buffer if it is of
18 // sufficient size, but if not it will write to temporary |min_sized_buffer_| 20 // sufficient size, but if not it will write to temporary |min_sized_buffer_|
19 // of required size and then its content is automatically copied out on 21 // of required size and then its content is automatically copied out on
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 83
82 private: 84 private:
83 const tracked_objects::Location location_; 85 const tracked_objects::Location location_;
84 86
85 DISALLOW_IMPLICIT_CONSTRUCTORS(OpenSSLErrStackTracer); 87 DISALLOW_IMPLICIT_CONSTRUCTORS(OpenSSLErrStackTracer);
86 }; 88 };
87 89
88 } // namespace crypto 90 } // namespace crypto
89 91
90 #endif // CRYPTO_OPENSSL_UTIL_H_ 92 #endif // CRYPTO_OPENSSL_UTIL_H_
OLDNEW
« no previous file with comments | « crypto/nss_util_internal.h ('k') | crypto/openssl_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698