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/renderer/webcrypto/platform_crypto.h" | 5 #include "content/renderer/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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 blink::WebCryptoKey* key) { | 391 blink::WebCryptoKey* key) { |
392 // TODO(eroman): http://crbug.com/267888 | 392 // TODO(eroman): http://crbug.com/267888 |
393 return Status::ErrorUnsupported(); | 393 return Status::ErrorUnsupported(); |
394 } | 394 } |
395 | 395 |
396 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer) { | 396 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer) { |
397 // TODO(eroman): http://crbug.com/267888 | 397 // TODO(eroman): http://crbug.com/267888 |
398 return Status::ErrorUnsupported(); | 398 return Status::ErrorUnsupported(); |
399 } | 399 } |
400 | 400 |
| 401 Status WrapSymKeyAesKw(SymKey* wrapping_key, |
| 402 SymKey* key, |
| 403 blink::WebArrayBuffer* buffer) { |
| 404 // TODO(eroman): http://crbug.com/267888 |
| 405 return Status::ErrorUnsupported(); |
| 406 } |
| 407 |
| 408 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data, |
| 409 SymKey* wrapping_key, |
| 410 const blink::WebCryptoAlgorithm& algorithm, |
| 411 bool extractable, |
| 412 blink::WebCryptoKeyUsageMask usage_mask, |
| 413 blink::WebCryptoKey* key) { |
| 414 // TODO(eroman): http://crbug.com/267888 |
| 415 return Status::ErrorUnsupported(); |
| 416 } |
| 417 |
401 } // namespace platform | 418 } // namespace platform |
402 | 419 |
403 } // namespace webcrypto | 420 } // namespace webcrypto |
404 | 421 |
405 } // namespace content | 422 } // namespace content |
OLD | NEW |