| 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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 387 return Status::ErrorUnsupported(); | 387 return Status::ErrorUnsupported(); |
| 388 } | 388 } |
| 389 | 389 |
| 390 // Preconditions: |
| 391 // * |key| is non-null. |
| 392 Status ExportRsaPublicKey(PublicKey* key, |
| 393 std::vector<uint8>* modulus, |
| 394 std::vector<uint8>* public_exponent) { |
| 395 // TODO(eroman): http://crbug.com/267888 |
| 396 return Status::ErrorUnsupported(); |
| 397 } |
| 398 |
| 390 Status WrapSymKeyAesKw(SymKey* wrapping_key, | 399 Status WrapSymKeyAesKw(SymKey* wrapping_key, |
| 391 SymKey* key, | 400 SymKey* key, |
| 392 blink::WebArrayBuffer* buffer) { | 401 blink::WebArrayBuffer* buffer) { |
| 393 // TODO(eroman): http://crbug.com/267888 | 402 // TODO(eroman): http://crbug.com/267888 |
| 394 return Status::ErrorUnsupported(); | 403 return Status::ErrorUnsupported(); |
| 395 } | 404 } |
| 396 | 405 |
| 397 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data, | 406 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data, |
| 398 SymKey* wrapping_key, | 407 SymKey* wrapping_key, |
| 399 const blink::WebCryptoAlgorithm& algorithm, | 408 const blink::WebCryptoAlgorithm& algorithm, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 426 blink::WebCryptoKey* key) { | 435 blink::WebCryptoKey* key) { |
| 427 // TODO(eroman): http://crbug.com/267888 | 436 // TODO(eroman): http://crbug.com/267888 |
| 428 return Status::ErrorUnsupported(); | 437 return Status::ErrorUnsupported(); |
| 429 } | 438 } |
| 430 | 439 |
| 431 } // namespace platform | 440 } // namespace platform |
| 432 | 441 |
| 433 } // namespace webcrypto | 442 } // namespace webcrypto |
| 434 | 443 |
| 435 } // namespace content | 444 } // namespace content |
| OLD | NEW |