| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef COMPONENTS_WEBCRYPTO_ALGORITHMS_ASYMMETRIC_KEY_UTIL_ | 5 #ifndef COMPONENTS_WEBCRYPTO_ALGORITHMS_ASYMMETRIC_KEY_UTIL_ |
| 6 #define COMPONENTS_WEBCRYPTO_ALGORITHMS_ASYMMETRIC_KEY_UTIL_ | 6 #define COMPONENTS_WEBCRYPTO_ALGORITHMS_ASYMMETRIC_KEY_UTIL_ |
| 7 | 7 |
| 8 #include <openssl/base.h> | |
| 9 | |
| 10 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" | 8 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" |
| 11 #include "third_party/WebKit/public/platform/WebCryptoKey.h" | 9 #include "third_party/WebKit/public/platform/WebCryptoKey.h" |
| 10 #include "third_party/boringssl/src/include/openssl/base.h" |
| 12 | 11 |
| 13 // This file contains functions shared by multiple asymmetric key algorithms. | 12 // This file contains functions shared by multiple asymmetric key algorithms. |
| 14 | 13 |
| 15 namespace webcrypto { | 14 namespace webcrypto { |
| 16 | 15 |
| 17 class CryptoData; | 16 class CryptoData; |
| 18 class Status; | 17 class Status; |
| 19 | 18 |
| 20 // Creates a WebCrypto public key given an EVP_PKEY. This step includes | 19 // Creates a WebCrypto public key given an EVP_PKEY. This step includes |
| 21 // exporting the key to SPKI format, for use by serialization later. | 20 // exporting the key to SPKI format, for use by serialization later. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 Status GetUsagesForGenerateAsymmetricKey( | 54 Status GetUsagesForGenerateAsymmetricKey( |
| 56 blink::WebCryptoKeyUsageMask combined_usages, | 55 blink::WebCryptoKeyUsageMask combined_usages, |
| 57 blink::WebCryptoKeyUsageMask all_public_usages, | 56 blink::WebCryptoKeyUsageMask all_public_usages, |
| 58 blink::WebCryptoKeyUsageMask all_private_usages, | 57 blink::WebCryptoKeyUsageMask all_private_usages, |
| 59 blink::WebCryptoKeyUsageMask* public_usages, | 58 blink::WebCryptoKeyUsageMask* public_usages, |
| 60 blink::WebCryptoKeyUsageMask* private_usages); | 59 blink::WebCryptoKeyUsageMask* private_usages); |
| 61 | 60 |
| 62 } // namespace webcrypto | 61 } // namespace webcrypto |
| 63 | 62 |
| 64 #endif // COMPONENTS_WEBCRYPTO_ALGORITHMS_ASYMMETRIC_KEY_UTIL_ | 63 #endif // COMPONENTS_WEBCRYPTO_ALGORITHMS_ASYMMETRIC_KEY_UTIL_ |
| OLD | NEW |