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

Side by Side Diff: components/webcrypto/openssl/util_openssl.h

Issue 1077273002: html_viewer: Move webcrypto to a place where html_viewer can use it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT Created 5 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_CHILD_WEBCRYPTO_OPENSSL_UTIL_OPENSSL_H_ 5 #ifndef COMPONENTS_WEBCRYPTO_OPENSSL_UTIL_OPENSSL_H_
6 #define CONTENT_CHILD_WEBCRYPTO_OPENSSL_UTIL_OPENSSL_H_ 6 #define COMPONENTS_WEBCRYPTO_OPENSSL_UTIL_OPENSSL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include <openssl/ossl_typ.h> 11 #include <openssl/ossl_typ.h>
12 12
13 #include "crypto/scoped_openssl_types.h" 13 #include "crypto/scoped_openssl_types.h"
14 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" 14 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h"
15 #include "third_party/WebKit/public/platform/WebCryptoKey.h" 15 #include "third_party/WebKit/public/platform/WebCryptoKey.h"
16 16
17 namespace content {
18
19 namespace webcrypto { 17 namespace webcrypto {
20 18
21 class CryptoData; 19 class CryptoData;
22 class GenerateKeyResult; 20 class GenerateKeyResult;
23 class Status; 21 class Status;
24 22
25 // The values of these constants correspond with the "enc" parameter of 23 // The values of these constants correspond with the "enc" parameter of
26 // EVP_CipherInit_ex(), do not change. 24 // EVP_CipherInit_ex(), do not change.
27 enum EncryptOrDecrypt { DECRYPT = 0, ENCRYPT = 1 }; 25 enum EncryptOrDecrypt { DECRYPT = 0, ENCRYPT = 1 };
28 26
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 crypto::ScopedEVP_PKEY* pkey); 91 crypto::ScopedEVP_PKEY* pkey);
94 92
95 // Allocates a new BIGNUM given a std::string big-endian representation. 93 // Allocates a new BIGNUM given a std::string big-endian representation.
96 BIGNUM* CreateBIGNUM(const std::string& n); 94 BIGNUM* CreateBIGNUM(const std::string& n);
97 95
98 // Converts a BIGNUM to a big endian byte array. 96 // Converts a BIGNUM to a big endian byte array.
99 std::vector<uint8_t> BIGNUMToVector(const BIGNUM* n); 97 std::vector<uint8_t> BIGNUMToVector(const BIGNUM* n);
100 98
101 } // namespace webcrypto 99 } // namespace webcrypto
102 100
103 } // namespace content 101 #endif // COMPONENTS_WEBCRYPTO_OPENSSL_UTIL_OPENSSL_H_
104
105 #endif // CONTENT_CHILD_WEBCRYPTO_OPENSSL_UTIL_OPENSSL_H_
OLDNEW
« no previous file with comments | « components/webcrypto/openssl/sha_openssl.cc ('k') | components/webcrypto/openssl/util_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698