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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data, | 396 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data, |
397 SymKey* wrapping_key, | 397 SymKey* wrapping_key, |
398 const blink::WebCryptoAlgorithm& algorithm, | 398 const blink::WebCryptoAlgorithm& algorithm, |
399 bool extractable, | 399 bool extractable, |
400 blink::WebCryptoKeyUsageMask usage_mask, | 400 blink::WebCryptoKeyUsageMask usage_mask, |
401 blink::WebCryptoKey* key) { | 401 blink::WebCryptoKey* key) { |
402 // TODO(eroman): http://crbug.com/267888 | 402 // TODO(eroman): http://crbug.com/267888 |
403 return Status::ErrorUnsupported(); | 403 return Status::ErrorUnsupported(); |
404 } | 404 } |
405 | 405 |
| 406 Status DecryptAesKw(SymKey* key, |
| 407 const CryptoData& data, |
| 408 blink::WebArrayBuffer* buffer) { |
| 409 // TODO(eroman): http://crbug.com/267888 |
| 410 return Status::ErrorUnsupported(); |
| 411 } |
| 412 |
406 Status WrapSymKeyRsaEs(PublicKey* wrapping_key, | 413 Status WrapSymKeyRsaEs(PublicKey* wrapping_key, |
407 SymKey* key, | 414 SymKey* key, |
408 blink::WebArrayBuffer* buffer) { | 415 blink::WebArrayBuffer* buffer) { |
409 // TODO(eroman): http://crbug.com/267888 | 416 // TODO(eroman): http://crbug.com/267888 |
410 return Status::ErrorUnsupported(); | 417 return Status::ErrorUnsupported(); |
411 } | 418 } |
412 | 419 |
413 Status UnwrapSymKeyRsaEs(const CryptoData& wrapped_key_data, | 420 Status UnwrapSymKeyRsaEs(const CryptoData& wrapped_key_data, |
414 PrivateKey* wrapping_key, | 421 PrivateKey* wrapping_key, |
415 const blink::WebCryptoAlgorithm& algorithm, | 422 const blink::WebCryptoAlgorithm& algorithm, |
416 bool extractable, | 423 bool extractable, |
417 blink::WebCryptoKeyUsageMask usage_mask, | 424 blink::WebCryptoKeyUsageMask usage_mask, |
418 blink::WebCryptoKey* key) { | 425 blink::WebCryptoKey* key) { |
419 // TODO(eroman): http://crbug.com/267888 | 426 // TODO(eroman): http://crbug.com/267888 |
420 return Status::ErrorUnsupported(); | 427 return Status::ErrorUnsupported(); |
421 } | 428 } |
422 | 429 |
423 } // namespace platform | 430 } // namespace platform |
424 | 431 |
425 } // namespace webcrypto | 432 } // namespace webcrypto |
426 | 433 |
427 } // namespace content | 434 } // namespace content |
OLD | NEW |