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

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

Issue 53533004: [webcrypto] Remove the TODO for NullKey(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 | « no previous file | content/renderer/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 (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_WEBCRYPTO_IMPL_H_ 5 #ifndef CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_
6 #define CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ 6 #define CONTENT_RENDERER_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 "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual void verifySignature( 56 virtual void verifySignature(
57 const WebKit::WebCryptoAlgorithm& algorithm, 57 const WebKit::WebCryptoAlgorithm& algorithm,
58 const WebKit::WebCryptoKey& key, 58 const WebKit::WebCryptoKey& key,
59 const unsigned char* signature, 59 const unsigned char* signature,
60 unsigned signature_size, 60 unsigned signature_size,
61 const unsigned char* data, 61 const unsigned char* data,
62 unsigned data_size, 62 unsigned data_size,
63 WebKit::WebCryptoResult result); 63 WebKit::WebCryptoResult result);
64 64
65 static void ShrinkBuffer(WebKit::WebArrayBuffer* buffer, unsigned new_size); 65 static void ShrinkBuffer(WebKit::WebArrayBuffer* buffer, unsigned new_size);
66 static WebKit::WebCryptoKey NullKey();
67 66
68 protected: 67 protected:
69 friend class WebCryptoImplTest; 68 friend class WebCryptoImplTest;
70 69
71 void Init(); 70 void Init();
72 71
73 bool EncryptInternal( 72 bool EncryptInternal(
74 const WebKit::WebCryptoAlgorithm& algorithm, 73 const WebKit::WebCryptoAlgorithm& algorithm,
75 const WebKit::WebCryptoKey& key, 74 const WebKit::WebCryptoKey& key,
76 const unsigned char* data, 75 const unsigned char* data,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 unsigned data_size, 120 unsigned data_size,
122 bool* signature_match); 121 bool* signature_match);
123 122
124 private: 123 private:
125 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl); 124 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl);
126 }; 125 };
127 126
128 } // namespace content 127 } // namespace content
129 128
130 #endif // CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_ 129 #endif // CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/webcrypto/webcrypto_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698