| 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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 blink::WebCryptoKey* key) { | 381 blink::WebCryptoKey* key) { |
| 382 // TODO(eroman): http://crbug.com/267888 | 382 // TODO(eroman): http://crbug.com/267888 |
| 383 return Status::ErrorUnsupported(); | 383 return Status::ErrorUnsupported(); |
| 384 } | 384 } |
| 385 | 385 |
| 386 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer) { | 386 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer) { |
| 387 // TODO(eroman): http://crbug.com/267888 | 387 // TODO(eroman): http://crbug.com/267888 |
| 388 return Status::ErrorUnsupported(); | 388 return Status::ErrorUnsupported(); |
| 389 } | 389 } |
| 390 | 390 |
| 391 Status WrapSymKeyAesKw(SymKey* wrapping_key, |
| 392 SymKey* key, |
| 393 blink::WebArrayBuffer* buffer) { |
| 394 // TODO(eroman): http://crbug.com/267888 |
| 395 return Status::ErrorUnsupported(); |
| 396 } |
| 397 |
| 398 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data, |
| 399 SymKey* wrapping_key, |
| 400 const blink::WebCryptoAlgorithm& algorithm, |
| 401 bool extractable, |
| 402 blink::WebCryptoKeyUsageMask usage_mask, |
| 403 blink::WebCryptoKey* key) { |
| 404 // TODO(eroman): http://crbug.com/267888 |
| 405 return Status::ErrorUnsupported(); |
| 406 } |
| 407 |
| 391 } // namespace platform | 408 } // namespace platform |
| 392 | 409 |
| 393 } // namespace webcrypto | 410 } // namespace webcrypto |
| 394 | 411 |
| 395 } // namespace content | 412 } // namespace content |
| OLD | NEW |