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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 crypto::SecureMemEqual(result.data(), signature, signature_size); | 489 crypto::SecureMemEqual(result.data(), signature, signature_size); |
490 | 490 |
491 break; | 491 break; |
492 } | 492 } |
493 default: | 493 default: |
494 return false; | 494 return false; |
495 } | 495 } |
496 return true; | 496 return true; |
497 } | 497 } |
498 | 498 |
| 499 bool WebCryptoImpl::ImportRsaPublicKeyInternal( |
| 500 const unsigned char* modulus_data, |
| 501 unsigned modulus_size, |
| 502 const unsigned char* exponent_data, |
| 503 unsigned exponent_size, |
| 504 const blink::WebCryptoAlgorithm& algorithm, |
| 505 bool extractable, |
| 506 blink::WebCryptoKeyUsageMask usage_mask, |
| 507 blink::WebCryptoKey* key) { |
| 508 // TODO(padolph): Placeholder for OpenSSL implementation. |
| 509 // Issue http://crbug.com/267888. |
| 510 return false; |
| 511 } |
| 512 |
499 } // namespace content | 513 } // namespace content |
OLD | NEW |