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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 usage_mask); | 296 usage_mask); |
297 | 297 |
298 return Status::Success(); | 298 return Status::Success(); |
299 } | 299 } |
300 | 300 |
301 Status GenerateRsaKeyPair(const blink::WebCryptoAlgorithm& algorithm, | 301 Status GenerateRsaKeyPair(const blink::WebCryptoAlgorithm& algorithm, |
302 bool extractable, | 302 bool extractable, |
303 blink::WebCryptoKeyUsageMask public_key_usage_mask, | 303 blink::WebCryptoKeyUsageMask public_key_usage_mask, |
304 blink::WebCryptoKeyUsageMask private_key_usage_mask, | 304 blink::WebCryptoKeyUsageMask private_key_usage_mask, |
305 unsigned int modulus_length_bits, | 305 unsigned int modulus_length_bits, |
306 const CryptoData& public_exponent, | 306 unsigned long public_exponent, |
307 blink::WebCryptoKey* public_key, | 307 blink::WebCryptoKey* public_key, |
308 blink::WebCryptoKey* private_key) { | 308 blink::WebCryptoKey* private_key) { |
309 // TODO(padolph): Placeholder for OpenSSL implementation. | 309 // TODO(padolph): Placeholder for OpenSSL implementation. |
310 // Issue http://crbug.com/267888. | 310 // Issue http://crbug.com/267888. |
311 return Status::ErrorUnsupported(); | 311 return Status::ErrorUnsupported(); |
312 } | 312 } |
313 | 313 |
314 Status ImportKeyRaw(const blink::WebCryptoAlgorithm& algorithm, | 314 Status ImportKeyRaw(const blink::WebCryptoAlgorithm& algorithm, |
315 const CryptoData& key_data, | 315 const CryptoData& key_data, |
316 bool extractable, | 316 bool extractable, |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 blink::WebCryptoKey* key) { | 527 blink::WebCryptoKey* key) { |
528 // TODO(eroman): http://crbug.com/267888 | 528 // TODO(eroman): http://crbug.com/267888 |
529 return false; | 529 return false; |
530 } | 530 } |
531 | 531 |
532 } // namespace platform | 532 } // namespace platform |
533 | 533 |
534 } // namespace webcrypto | 534 } // namespace webcrypto |
535 | 535 |
536 } // namespace content | 536 } // namespace content |
OLD | NEW |