OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 13 matching lines...) Expand all Loading... | |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "public/platform/WebCrypto.h" | 32 #include "public/platform/WebCrypto.h" |
33 | 33 |
34 #include "core/platform/NotImplemented.cpp" | |
abarth-chromium
2013/09/26 04:22:27
#include a cpp? Do you mean the h?
eroman
2013/09/26 06:54:07
Woah, oops! I copy pasted and forgot to change to
| |
34 #include "modules/crypto/CryptoResult.h" | 35 #include "modules/crypto/CryptoResult.h" |
35 #include "public/platform/WebArrayBuffer.h" | 36 #include "public/platform/WebArrayBuffer.h" |
36 #include <string.h> | 37 #include <string.h> |
37 | 38 |
38 namespace WebKit { | 39 namespace WebKit { |
39 | 40 |
40 void WebCryptoResult::completeWithError() | 41 void WebCryptoResult::completeWithError() |
41 { | 42 { |
42 m_impl->completeWithError(); | 43 m_impl->completeWithError(); |
43 reset(); | 44 reset(); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 void WebCryptoResult::reset() | 86 void WebCryptoResult::reset() |
86 { | 87 { |
87 m_impl.reset(); | 88 m_impl.reset(); |
88 } | 89 } |
89 | 90 |
90 void WebCryptoResult::assign(const WebCryptoResult& o) | 91 void WebCryptoResult::assign(const WebCryptoResult& o) |
91 { | 92 { |
92 m_impl = o.m_impl; | 93 m_impl = o.m_impl; |
93 } | 94 } |
94 | 95 |
96 void WebCrypto::encrypt(const WebCryptoAlgorithm&, const WebCryptoKey&, const un signed char*, unsigned, WebCryptoResult result) | |
97 { | |
98 notImplemented(); | |
99 result.completeWithError(); | |
100 } | |
101 | |
102 void WebCrypto::decrypt(const WebCryptoAlgorithm&, const WebCryptoKey&, const un signed char*, unsigned, WebCryptoResult result) | |
103 { | |
104 notImplemented(); | |
105 result.completeWithError(); | |
106 } | |
107 | |
108 void WebCrypto::sign(const WebCryptoAlgorithm&, const WebCryptoKey&, const unsig ned char*, unsigned, WebCryptoResult result) | |
109 { | |
110 notImplemented(); | |
111 result.completeWithError(); | |
112 } | |
113 | |
114 void WebCrypto::verifySignature(const WebCryptoAlgorithm&, const WebCryptoKey&, const unsigned char*, unsigned, const unsigned char*, unsigned, WebCryptoResult result) | |
115 { | |
116 notImplemented(); | |
117 result.completeWithError(); | |
118 } | |
119 | |
120 void WebCrypto::digest(const WebCryptoAlgorithm&, const unsigned char*, unsigned , WebCryptoResult result) | |
121 { | |
122 notImplemented(); | |
123 result.completeWithError(); | |
124 } | |
125 | |
126 void WebCrypto::generateKey(const WebCryptoAlgorithm&, bool, WebCryptoKeyUsageMa sk, WebCryptoResult result) | |
127 { | |
128 notImplemented(); | |
129 result.completeWithError(); | |
130 } | |
131 | |
132 void WebCrypto::importKey(WebCryptoKeyFormat, const unsigned char*, unsigned, co nst WebCryptoAlgorithm&, bool, WebCryptoKeyUsageMask, WebCryptoResult result) | |
133 { | |
134 notImplemented(); | |
135 result.completeWithError(); | |
136 } | |
137 | |
138 void WebCrypto::exportKey(WebCryptoKeyFormat, const WebCryptoKey&, WebCryptoResu lt result) | |
139 { | |
140 notImplemented(); | |
141 result.completeWithError(); | |
142 } | |
143 | |
95 } // namespace WebKit | 144 } // namespace WebKit |
OLD | NEW |