| 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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 return Status::ErrorUnsupported(); | 387 return Status::ErrorUnsupported(); |
| 388 } | 388 } |
| 389 | 389 |
| 390 Status ExportKeyPkcs8(PrivateKey* key, | 390 Status ExportKeyPkcs8(PrivateKey* key, |
| 391 const blink::WebCryptoKeyAlgorithm& key_algorithm, | 391 const blink::WebCryptoKeyAlgorithm& key_algorithm, |
| 392 blink::WebArrayBuffer* buffer) { | 392 blink::WebArrayBuffer* buffer) { |
| 393 // TODO(eroman): http://crbug.com/267888 | 393 // TODO(eroman): http://crbug.com/267888 |
| 394 return Status::ErrorUnsupported(); | 394 return Status::ErrorUnsupported(); |
| 395 } | 395 } |
| 396 | 396 |
| 397 Status ExportRsaPublicKey(PublicKey* key, |
| 398 std::vector<uint8>* modulus, |
| 399 std::vector<uint8>* public_exponent) { |
| 400 // TODO(eroman): http://crbug.com/267888 |
| 401 return Status::ErrorUnsupported(); |
| 402 } |
| 403 |
| 397 Status WrapSymKeyAesKw(SymKey* wrapping_key, | 404 Status WrapSymKeyAesKw(SymKey* wrapping_key, |
| 398 SymKey* key, | 405 SymKey* key, |
| 399 blink::WebArrayBuffer* buffer) { | 406 blink::WebArrayBuffer* buffer) { |
| 400 // TODO(eroman): http://crbug.com/267888 | 407 // TODO(eroman): http://crbug.com/267888 |
| 401 return Status::ErrorUnsupported(); | 408 return Status::ErrorUnsupported(); |
| 402 } | 409 } |
| 403 | 410 |
| 404 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data, | 411 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data, |
| 405 SymKey* wrapping_key, | 412 SymKey* wrapping_key, |
| 406 const blink::WebCryptoAlgorithm& algorithm, | 413 const blink::WebCryptoAlgorithm& algorithm, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 433 blink::WebCryptoKey* key) { | 440 blink::WebCryptoKey* key) { |
| 434 // TODO(eroman): http://crbug.com/267888 | 441 // TODO(eroman): http://crbug.com/267888 |
| 435 return Status::ErrorUnsupported(); | 442 return Status::ErrorUnsupported(); |
| 436 } | 443 } |
| 437 | 444 |
| 438 } // namespace platform | 445 } // namespace platform |
| 439 | 446 |
| 440 } // namespace webcrypto | 447 } // namespace webcrypto |
| 441 | 448 |
| 442 } // namespace content | 449 } // namespace content |
| OLD | NEW |