| 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 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 return Status::ErrorUnsupported(); | 400 return Status::ErrorUnsupported(); |
| 401 } | 401 } |
| 402 | 402 |
| 403 Status DecryptRsaEsPkcs1v1_5(PrivateKey* key, | 403 Status DecryptRsaEsPkcs1v1_5(PrivateKey* key, |
| 404 const CryptoData& data, | 404 const CryptoData& data, |
| 405 std::vector<uint8>* buffer) { | 405 std::vector<uint8>* buffer) { |
| 406 // TODO(eroman): http://crbug.com/267888 | 406 // TODO(eroman): http://crbug.com/267888 |
| 407 return Status::ErrorUnsupported(); | 407 return Status::ErrorUnsupported(); |
| 408 } | 408 } |
| 409 | 409 |
| 410 Status EncryptRsaOaep(PublicKey* key, |
| 411 const blink::WebCryptoAlgorithm& hash, |
| 412 const CryptoData& label, |
| 413 const CryptoData& data, |
| 414 std::vector<uint8>* buffer) { |
| 415 // TODO(eroman): http://crbug.com/267888 |
| 416 return Status::ErrorUnsupported(); |
| 417 } |
| 418 |
| 419 Status DecryptRsaOaep(PrivateKey* key, |
| 420 const blink::WebCryptoAlgorithm& hash, |
| 421 const CryptoData& label, |
| 422 const CryptoData& data, |
| 423 std::vector<uint8>* buffer) { |
| 424 // TODO(eroman): http://crbug.com/267888 |
| 425 return Status::ErrorUnsupported(); |
| 426 } |
| 427 |
| 410 Status SignRsaSsaPkcs1v1_5(PrivateKey* key, | 428 Status SignRsaSsaPkcs1v1_5(PrivateKey* key, |
| 411 const blink::WebCryptoAlgorithm& hash, | 429 const blink::WebCryptoAlgorithm& hash, |
| 412 const CryptoData& data, | 430 const CryptoData& data, |
| 413 std::vector<uint8>* buffer) { | 431 std::vector<uint8>* buffer) { |
| 414 // TODO(eroman): http://crbug.com/267888 | 432 // TODO(eroman): http://crbug.com/267888 |
| 415 return Status::ErrorUnsupported(); | 433 return Status::ErrorUnsupported(); |
| 416 } | 434 } |
| 417 | 435 |
| 418 // Key is guaranteed to be an RSA SSA key. | 436 // Key is guaranteed to be an RSA SSA key. |
| 419 Status VerifyRsaSsaPkcs1v1_5(PublicKey* key, | 437 Status VerifyRsaSsaPkcs1v1_5(PublicKey* key, |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 blink::WebCryptoKey* key) { | 530 blink::WebCryptoKey* key) { |
| 513 // TODO(eroman): http://crbug.com/267888 | 531 // TODO(eroman): http://crbug.com/267888 |
| 514 return false; | 532 return false; |
| 515 } | 533 } |
| 516 | 534 |
| 517 } // namespace platform | 535 } // namespace platform |
| 518 | 536 |
| 519 } // namespace webcrypto | 537 } // namespace webcrypto |
| 520 | 538 |
| 521 } // namespace content | 539 } // namespace content |
| OLD | NEW |