OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_RENDERER_WEBCRYPTO_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_WEBCRYPTO_IMPL_H_ |
6 #define CONTENT_RENDERER_WEBCRYPTO_IMPL_H_ | 6 #define CONTENT_RENDERER_WEBCRYPTO_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 WebKit::WebCryptoKeyUsageMask usage_mask, | 33 WebKit::WebCryptoKeyUsageMask usage_mask, |
34 WebKit::WebCryptoResult result); | 34 WebKit::WebCryptoResult result); |
35 virtual void sign( | 35 virtual void sign( |
36 const WebKit::WebCryptoAlgorithm& algorithm, | 36 const WebKit::WebCryptoAlgorithm& algorithm, |
37 const WebKit::WebCryptoKey& key, | 37 const WebKit::WebCryptoKey& key, |
38 const unsigned char* data, | 38 const unsigned char* data, |
39 unsigned data_size, | 39 unsigned data_size, |
40 WebKit::WebCryptoResult result); | 40 WebKit::WebCryptoResult result); |
41 | 41 |
42 protected: | 42 protected: |
43 FRIEND_TEST_ALL_PREFIXES(WebCryptoImplTest, DigestSampleSets); | 43 friend class WebCryptoImplTest; |
44 FRIEND_TEST_ALL_PREFIXES(WebCryptoImplTest, HMACSampleSets); | |
45 | 44 |
46 void Init(); | 45 void Init(); |
47 | 46 |
48 bool DigestInternal( | 47 bool DigestInternal( |
49 const WebKit::WebCryptoAlgorithm& algorithm, | 48 const WebKit::WebCryptoAlgorithm& algorithm, |
50 const unsigned char* data, | 49 const unsigned char* data, |
51 unsigned data_size, | 50 unsigned data_size, |
52 WebKit::WebArrayBuffer* buffer); | 51 WebKit::WebArrayBuffer* buffer); |
53 bool ImportKeyInternal( | 52 bool ImportKeyInternal( |
54 WebKit::WebCryptoKeyFormat format, | 53 WebKit::WebCryptoKeyFormat format, |
(...skipping 10 matching lines...) Expand all Loading... |
65 unsigned data_size, | 64 unsigned data_size, |
66 WebKit::WebArrayBuffer* buffer); | 65 WebKit::WebArrayBuffer* buffer); |
67 | 66 |
68 private: | 67 private: |
69 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); | 68 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); |
70 }; | 69 }; |
71 | 70 |
72 } // namespace content | 71 } // namespace content |
73 | 72 |
74 #endif // CONTENT_RENDERER_WEBCRYPTO_IMPL_H_ | 73 #endif // CONTENT_RENDERER_WEBCRYPTO_IMPL_H_ |
OLD | NEW |