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 #ifndef COMPONENTS_WEBCRYPTO_ALGORITHMS_SECRET_KEY_UTIL_ | 5 #ifndef COMPONENTS_WEBCRYPTO_ALGORITHMS_SECRET_KEY_UTIL_ |
6 #define COMPONENTS_WEBCRYPTO_ALGORITHMS_SECRET_KEY_UTIL_ | 6 #define COMPONENTS_WEBCRYPTO_ALGORITHMS_SECRET_KEY_UTIL_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" | 13 #include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h" |
12 #include "third_party/WebKit/public/platform/WebCryptoKey.h" | 14 #include "third_party/WebKit/public/platform/WebCryptoKey.h" |
13 | 15 |
14 // This file contains functions shared by multiple symmetric key algorithms. | 16 // This file contains functions shared by multiple symmetric key algorithms. |
15 | 17 |
16 namespace webcrypto { | 18 namespace webcrypto { |
17 | 19 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 Status ReadSecretKeyNoExpectedAlgJwk( | 66 Status ReadSecretKeyNoExpectedAlgJwk( |
65 const CryptoData& key_data, | 67 const CryptoData& key_data, |
66 bool expected_extractable, | 68 bool expected_extractable, |
67 blink::WebCryptoKeyUsageMask expected_usages, | 69 blink::WebCryptoKeyUsageMask expected_usages, |
68 std::vector<uint8_t>* raw_key_data, | 70 std::vector<uint8_t>* raw_key_data, |
69 JwkReader* jwk); | 71 JwkReader* jwk); |
70 | 72 |
71 } // namespace webcrypto | 73 } // namespace webcrypto |
72 | 74 |
73 #endif // COMPONENTS_WEBCRYPTO_ALGORITHMS_SECRET_KEY_UTIL_ | 75 #endif // COMPONENTS_WEBCRYPTO_ALGORITHMS_SECRET_KEY_UTIL_ |
OLD | NEW |