| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_UTIL_H_ | 5 #ifndef CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_UTIL_H_ |
| 6 #define CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_UTIL_H_ | 6 #define CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_UTIL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // Creates an AES-CBC algorithm whose parameters struct is compatible with key | 87 // Creates an AES-CBC algorithm whose parameters struct is compatible with key |
| 88 // generation. | 88 // generation. |
| 89 CONTENT_EXPORT blink::WebCryptoAlgorithm CreateAesCbcKeyGenAlgorithm( | 89 CONTENT_EXPORT blink::WebCryptoAlgorithm CreateAesCbcKeyGenAlgorithm( |
| 90 unsigned short key_length_bits); | 90 unsigned short key_length_bits); |
| 91 | 91 |
| 92 // Creates an AES-GCM algorithm whose parameters struct is compatible with key | 92 // Creates an AES-GCM algorithm whose parameters struct is compatible with key |
| 93 // generation. | 93 // generation. |
| 94 blink::WebCryptoAlgorithm CreateAesGcmKeyGenAlgorithm( | 94 blink::WebCryptoAlgorithm CreateAesGcmKeyGenAlgorithm( |
| 95 unsigned short key_length_bits); | 95 unsigned short key_length_bits); |
| 96 | 96 |
| 97 // Creates an AES-KW algorithm whose parameters struct is compatible with key |
| 98 // generation. |
| 99 blink::WebCryptoAlgorithm CreateAesKwKeyGenAlgorithm( |
| 100 unsigned short key_length_bits); |
| 101 |
| 97 } // namespace webcrypto | 102 } // namespace webcrypto |
| 98 | 103 |
| 99 } // namespace content | 104 } // namespace content |
| 100 | 105 |
| 101 #endif // CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_UTIL_H_ | 106 #endif // CONTENT_RENDERER_WEBCRYPTO_WEBCRYPTO_UTIL_H_ |
| OLD | NEW |