OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |