| 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 blink::WebCryptoKey* key) { | 379 blink::WebCryptoKey* key) { |
| 380 // TODO(eroman): http://crbug.com/267888 | 380 // TODO(eroman): http://crbug.com/267888 |
| 381 return Status::ErrorUnsupported(); | 381 return Status::ErrorUnsupported(); |
| 382 } | 382 } |
| 383 | 383 |
| 384 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer) { | 384 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer) { |
| 385 // TODO(eroman): http://crbug.com/267888 | 385 // TODO(eroman): http://crbug.com/267888 |
| 386 return Status::ErrorUnsupported(); | 386 return Status::ErrorUnsupported(); |
| 387 } | 387 } |
| 388 | 388 |
| 389 Status ExportKeyPkcs8(PrivateKey* key, |
| 390 const blink::WebCryptoKeyAlgorithm& key_algorithm, |
| 391 blink::WebArrayBuffer* buffer) { |
| 392 // TODO(eroman): http://crbug.com/267888 |
| 393 return Status::ErrorUnsupported(); |
| 394 } |
| 395 |
| 389 Status WrapSymKeyAesKw(SymKey* wrapping_key, | 396 Status WrapSymKeyAesKw(SymKey* wrapping_key, |
| 390 SymKey* key, | 397 SymKey* key, |
| 391 blink::WebArrayBuffer* buffer) { | 398 blink::WebArrayBuffer* buffer) { |
| 392 // TODO(eroman): http://crbug.com/267888 | 399 // TODO(eroman): http://crbug.com/267888 |
| 393 return Status::ErrorUnsupported(); | 400 return Status::ErrorUnsupported(); |
| 394 } | 401 } |
| 395 | 402 |
| 396 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data, | 403 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data, |
| 397 SymKey* wrapping_key, | 404 SymKey* wrapping_key, |
| 398 const blink::WebCryptoAlgorithm& algorithm, | 405 const blink::WebCryptoAlgorithm& algorithm, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 425 blink::WebCryptoKey* key) { | 432 blink::WebCryptoKey* key) { |
| 426 // TODO(eroman): http://crbug.com/267888 | 433 // TODO(eroman): http://crbug.com/267888 |
| 427 return Status::ErrorUnsupported(); | 434 return Status::ErrorUnsupported(); |
| 428 } | 435 } |
| 429 | 436 |
| 430 } // namespace platform | 437 } // namespace platform |
| 431 | 438 |
| 432 } // namespace webcrypto | 439 } // namespace webcrypto |
| 433 | 440 |
| 434 } // namespace content | 441 } // namespace content |
| OLD | NEW |