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

Side by Side Diff: content/child/webcrypto/webcrypto_impl.h

Issue 197223007: [webcrypto] Remove support for null import algorithms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « content/child/webcrypto/status.cc ('k') | content/child/webcrypto/webcrypto_impl.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 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_WEBCRYPTO_IMPL_H_ 5 #ifndef CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_
6 #define CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_ 6 #define CONTENT_CHILD_WEBCRYPTO_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 "third_party/WebKit/public/platform/WebCrypto.h" 10 #include "third_party/WebKit/public/platform/WebCrypto.h"
(...skipping 25 matching lines...) Expand all
36 const unsigned char* data, 36 const unsigned char* data,
37 unsigned int data_size, 37 unsigned int data_size,
38 blink::WebCryptoResult result); 38 blink::WebCryptoResult result);
39 virtual void generateKey(const blink::WebCryptoAlgorithm& algorithm, 39 virtual void generateKey(const blink::WebCryptoAlgorithm& algorithm,
40 bool extractable, 40 bool extractable,
41 blink::WebCryptoKeyUsageMask usage_mask, 41 blink::WebCryptoKeyUsageMask usage_mask,
42 blink::WebCryptoResult result); 42 blink::WebCryptoResult result);
43 virtual void importKey(blink::WebCryptoKeyFormat format, 43 virtual void importKey(blink::WebCryptoKeyFormat format,
44 const unsigned char* key_data, 44 const unsigned char* key_data,
45 unsigned int key_data_size, 45 unsigned int key_data_size,
46 const blink::WebCryptoAlgorithm& algorithm_or_null, 46 const blink::WebCryptoAlgorithm& algorithm,
47 bool extractable, 47 bool extractable,
48 blink::WebCryptoKeyUsageMask usage_mask, 48 blink::WebCryptoKeyUsageMask usage_mask,
49 blink::WebCryptoResult result); 49 blink::WebCryptoResult result);
50 virtual void exportKey(blink::WebCryptoKeyFormat format, 50 virtual void exportKey(blink::WebCryptoKeyFormat format,
51 const blink::WebCryptoKey& key, 51 const blink::WebCryptoKey& key,
52 blink::WebCryptoResult result); 52 blink::WebCryptoResult result);
53 virtual void sign(const blink::WebCryptoAlgorithm& algorithm, 53 virtual void sign(const blink::WebCryptoAlgorithm& algorithm,
54 const blink::WebCryptoKey& key, 54 const blink::WebCryptoKey& key,
55 const unsigned char* data, 55 const unsigned char* data,
56 unsigned int data_size, 56 unsigned int data_size,
(...skipping 24 matching lines...) Expand all
81 virtual bool serializeKeyForClone(const blink::WebCryptoKey& key, 81 virtual bool serializeKeyForClone(const blink::WebCryptoKey& key,
82 blink::WebVector<unsigned char>& key_data); 82 blink::WebVector<unsigned char>& key_data);
83 83
84 private: 84 private:
85 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); 85 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl);
86 }; 86 };
87 87
88 } // namespace content 88 } // namespace content
89 89
90 #endif // CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_ 90 #endif // CONTENT_CHILD_WEBCRYPTO_WEBCRYPTO_IMPL_H_
OLDNEW
« no previous file with comments | « content/child/webcrypto/status.cc ('k') | content/child/webcrypto/webcrypto_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698