OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/webcrypto_impl.h" | 5 #include "content/renderer/webcrypto/webcrypto_impl.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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 crypto::SecureMemEqual(result.data(), signature, signature_size); | 478 crypto::SecureMemEqual(result.data(), signature, signature_size); |
479 | 479 |
480 break; | 480 break; |
481 } | 481 } |
482 default: | 482 default: |
483 return false; | 483 return false; |
484 } | 484 } |
485 return true; | 485 return true; |
486 } | 486 } |
487 | 487 |
| 488 bool WebCryptoImpl::ImportRsaPublicKeyInternal( |
| 489 const unsigned char* modulus_data, |
| 490 unsigned modulus_size, |
| 491 const unsigned char* exponent_data, |
| 492 unsigned exponent_size, |
| 493 const blink::WebCryptoAlgorithm& algorithm, |
| 494 bool extractable, |
| 495 blink::WebCryptoKeyUsageMask usage_mask, |
| 496 blink::WebCryptoKey* key) { |
| 497 // TODO(padolph): Placeholder for OpenSSL implementation. |
| 498 // Issue http://crbug.com/267888. |
| 499 return false; |
| 500 } |
| 501 |
488 } // namespace content | 502 } // namespace content |
OLD | NEW |