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

Side by Side Diff: content/child/webcrypto/algorithm_implementation.cc

Issue 749183004: WebCrypto: Implement crypto.subtle.deriveKey (chromium-side). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ecdh
Patch Set: rebase Created 6 years 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 #include "content/child/webcrypto/algorithm_implementation.h" 5 #include "content/child/webcrypto/algorithm_implementation.h"
6 6
7 #include "content/child/webcrypto/status.h" 7 #include "content/child/webcrypto/status.h"
8 8
9 namespace content { 9 namespace content {
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 const blink::WebCryptoAlgorithm& algorithm, 56 const blink::WebCryptoAlgorithm& algorithm,
57 bool extractable, 57 bool extractable,
58 blink::WebCryptoKeyUsageMask usages, 58 blink::WebCryptoKeyUsageMask usages,
59 GenerateKeyResult* result) const { 59 GenerateKeyResult* result) const {
60 return Status::ErrorUnsupported(); 60 return Status::ErrorUnsupported();
61 } 61 }
62 62
63 Status AlgorithmImplementation::DeriveBits( 63 Status AlgorithmImplementation::DeriveBits(
64 const blink::WebCryptoAlgorithm& algorithm, 64 const blink::WebCryptoAlgorithm& algorithm,
65 const blink::WebCryptoKey& base_key, 65 const blink::WebCryptoKey& base_key,
66 unsigned int length_bits, 66 bool has_optional_length_bits,
67 unsigned int optional_length_bits,
67 std::vector<uint8_t>* derived_bytes) const { 68 std::vector<uint8_t>* derived_bytes) const {
68 return Status::ErrorUnsupported(); 69 return Status::ErrorUnsupported();
69 } 70 }
70 71
71 Status AlgorithmImplementation::GetKeyLength( 72 Status AlgorithmImplementation::GetKeyLength(
72 const blink::WebCryptoAlgorithm& key_length_algorithm, 73 const blink::WebCryptoAlgorithm& key_length_algorithm,
73 bool* has_length_bits, 74 bool* has_length_bits,
74 unsigned int* length_bits) const { 75 unsigned int* length_bits) const {
75 return Status::ErrorUnsupported(); 76 return Status::ErrorUnsupported();
76 } 77 }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 bool extractable, 154 bool extractable,
154 blink::WebCryptoKeyUsageMask usages, 155 blink::WebCryptoKeyUsageMask usages,
155 const CryptoData& key_data, 156 const CryptoData& key_data,
156 blink::WebCryptoKey* key) const { 157 blink::WebCryptoKey* key) const {
157 return Status::ErrorUnsupported(); 158 return Status::ErrorUnsupported();
158 } 159 }
159 160
160 } // namespace webcrypto 161 } // namespace webcrypto
161 162
162 } // namespace content 163 } // namespace content
OLDNEW
« no previous file with comments | « content/child/webcrypto/algorithm_implementation.h ('k') | content/child/webcrypto/openssl/ecdh_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698