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

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

Issue 197223007: [webcrypto] Remove support for null import algorithms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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/platform_crypto.h" 5 #include "content/child/webcrypto/platform_crypto.h"
6 6
7 #include <vector> 7 #include <vector>
8 #include <openssl/aes.h> 8 #include <openssl/aes.h>
9 #include <openssl/evp.h> 9 #include <openssl/evp.h>
10 #include <openssl/hmac.h> 10 #include <openssl/hmac.h>
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 // Key is guaranteed to be an RSA SSA key. 358 // Key is guaranteed to be an RSA SSA key.
359 Status VerifyRsaSsaPkcs1v1_5(PublicKey* key, 359 Status VerifyRsaSsaPkcs1v1_5(PublicKey* key,
360 const blink::WebCryptoAlgorithm& hash, 360 const blink::WebCryptoAlgorithm& hash,
361 const CryptoData& signature, 361 const CryptoData& signature,
362 const CryptoData& data, 362 const CryptoData& data,
363 bool* signature_match) { 363 bool* signature_match) {
364 // TODO(eroman): http://crbug.com/267888 364 // TODO(eroman): http://crbug.com/267888
365 return Status::ErrorUnsupported(); 365 return Status::ErrorUnsupported();
366 } 366 }
367 367
368 Status ImportKeySpki(const blink::WebCryptoAlgorithm& algorithm_or_null, 368 Status ImportKeySpki(const blink::WebCryptoAlgorithm& algorithm,
369 const CryptoData& key_data, 369 const CryptoData& key_data,
370 bool extractable, 370 bool extractable,
371 blink::WebCryptoKeyUsageMask usage_mask, 371 blink::WebCryptoKeyUsageMask usage_mask,
372 blink::WebCryptoKey* key) { 372 blink::WebCryptoKey* key) {
373 // TODO(eroman): http://crbug.com/267888 373 // TODO(eroman): http://crbug.com/267888
374 return Status::ErrorUnsupported(); 374 return Status::ErrorUnsupported();
375 } 375 }
376 376
377 Status ImportKeyPkcs8(const blink::WebCryptoAlgorithm& algorithm_or_null, 377 Status ImportKeyPkcs8(const blink::WebCryptoAlgorithm& algorithm,
378 const CryptoData& key_data, 378 const CryptoData& key_data,
379 bool extractable, 379 bool extractable,
380 blink::WebCryptoKeyUsageMask usage_mask, 380 blink::WebCryptoKeyUsageMask usage_mask,
381 blink::WebCryptoKey* key) { 381 blink::WebCryptoKey* key) {
382 // TODO(eroman): http://crbug.com/267888 382 // TODO(eroman): http://crbug.com/267888
383 return Status::ErrorUnsupported(); 383 return Status::ErrorUnsupported();
384 } 384 }
385 385
386 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer) { 386 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer) {
387 // TODO(eroman): http://crbug.com/267888 387 // TODO(eroman): http://crbug.com/267888
(...skipping 15 matching lines...) Expand all
403 blink::WebCryptoKey* key) { 403 blink::WebCryptoKey* key) {
404 // TODO(eroman): http://crbug.com/267888 404 // TODO(eroman): http://crbug.com/267888
405 return Status::ErrorUnsupported(); 405 return Status::ErrorUnsupported();
406 } 406 }
407 407
408 } // namespace platform 408 } // namespace platform
409 409
410 } // namespace webcrypto 410 } // namespace webcrypto
411 411
412 } // namespace content 412 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698