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