OLD | NEW |
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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 // Key is guaranteed to be an RSA SSA key. | 357 // Key is guaranteed to be an RSA SSA key. |
358 Status VerifyRsaSsaPkcs1v1_5(PublicKey* key, | 358 Status VerifyRsaSsaPkcs1v1_5(PublicKey* key, |
359 const blink::WebCryptoAlgorithm& hash, | 359 const blink::WebCryptoAlgorithm& hash, |
360 const CryptoData& signature, | 360 const CryptoData& signature, |
361 const CryptoData& data, | 361 const CryptoData& data, |
362 bool* signature_match) { | 362 bool* signature_match) { |
363 // TODO(eroman): http://crbug.com/267888 | 363 // TODO(eroman): http://crbug.com/267888 |
364 return Status::ErrorUnsupported(); | 364 return Status::ErrorUnsupported(); |
365 } | 365 } |
366 | 366 |
367 Status ImportKeySpki(const blink::WebCryptoAlgorithm& algorithm_or_null, | 367 Status ImportKeySpki(const blink::WebCryptoAlgorithm& algorithm, |
368 const CryptoData& key_data, | 368 const CryptoData& key_data, |
369 bool extractable, | 369 bool extractable, |
370 blink::WebCryptoKeyUsageMask usage_mask, | 370 blink::WebCryptoKeyUsageMask usage_mask, |
371 blink::WebCryptoKey* key) { | 371 blink::WebCryptoKey* key) { |
372 // TODO(eroman): http://crbug.com/267888 | 372 // TODO(eroman): http://crbug.com/267888 |
373 return Status::ErrorUnsupported(); | 373 return Status::ErrorUnsupported(); |
374 } | 374 } |
375 | 375 |
376 Status ImportKeyPkcs8(const blink::WebCryptoAlgorithm& algorithm_or_null, | 376 Status ImportKeyPkcs8(const blink::WebCryptoAlgorithm& algorithm, |
377 const CryptoData& key_data, | 377 const CryptoData& key_data, |
378 bool extractable, | 378 bool extractable, |
379 blink::WebCryptoKeyUsageMask usage_mask, | 379 blink::WebCryptoKeyUsageMask usage_mask, |
380 blink::WebCryptoKey* key) { | 380 blink::WebCryptoKey* key) { |
381 // TODO(eroman): http://crbug.com/267888 | 381 // TODO(eroman): http://crbug.com/267888 |
382 return Status::ErrorUnsupported(); | 382 return Status::ErrorUnsupported(); |
383 } | 383 } |
384 | 384 |
385 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer) { | 385 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer) { |
386 // TODO(eroman): http://crbug.com/267888 | 386 // TODO(eroman): http://crbug.com/267888 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 blink::WebCryptoKey* key) { | 426 blink::WebCryptoKey* key) { |
427 // TODO(eroman): http://crbug.com/267888 | 427 // TODO(eroman): http://crbug.com/267888 |
428 return Status::ErrorUnsupported(); | 428 return Status::ErrorUnsupported(); |
429 } | 429 } |
430 | 430 |
431 } // namespace platform | 431 } // namespace platform |
432 | 432 |
433 } // namespace webcrypto | 433 } // namespace webcrypto |
434 | 434 |
435 } // namespace content | 435 } // namespace content |
OLD | NEW |