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