OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 BLINK_PLATFORM_EXPORT const WebCryptoEcKeyGenParams* ecKeyGenParams() const; | 202 BLINK_PLATFORM_EXPORT const WebCryptoEcKeyGenParams* ecKeyGenParams() const; |
203 BLINK_PLATFORM_EXPORT const WebCryptoEcKeyImportParams* ecKeyImportParams() | 203 BLINK_PLATFORM_EXPORT const WebCryptoEcKeyImportParams* ecKeyImportParams() |
204 const; | 204 const; |
205 BLINK_PLATFORM_EXPORT const WebCryptoEcdhKeyDeriveParams* | 205 BLINK_PLATFORM_EXPORT const WebCryptoEcdhKeyDeriveParams* |
206 ecdhKeyDeriveParams() const; | 206 ecdhKeyDeriveParams() const; |
207 BLINK_PLATFORM_EXPORT const WebCryptoAesDerivedKeyParams* | 207 BLINK_PLATFORM_EXPORT const WebCryptoAesDerivedKeyParams* |
208 aesDerivedKeyParams() const; | 208 aesDerivedKeyParams() const; |
209 BLINK_PLATFORM_EXPORT const WebCryptoHkdfParams* hkdfParams() const; | 209 BLINK_PLATFORM_EXPORT const WebCryptoHkdfParams* hkdfParams() const; |
210 BLINK_PLATFORM_EXPORT const WebCryptoPbkdf2Params* pbkdf2Params() const; | 210 BLINK_PLATFORM_EXPORT const WebCryptoPbkdf2Params* pbkdf2Params() const; |
211 | 211 |
212 // Returns true if the provided algorithm ID is for a hash (in other words, SH
A-*) | 212 // Returns true if the provided algorithm ID is for a hash (in other words, |
| 213 // SHA-*) |
213 BLINK_PLATFORM_EXPORT static bool isHash(WebCryptoAlgorithmId); | 214 BLINK_PLATFORM_EXPORT static bool isHash(WebCryptoAlgorithmId); |
214 // Returns true if the provided algorithm ID is for a key derivation function | 215 // Returns true if the provided algorithm ID is for a key derivation function |
215 BLINK_PLATFORM_EXPORT static bool isKdf(WebCryptoAlgorithmId); | 216 BLINK_PLATFORM_EXPORT static bool isKdf(WebCryptoAlgorithmId); |
216 | 217 |
217 private: | 218 private: |
218 BLINK_PLATFORM_EXPORT void assign(const WebCryptoAlgorithm& other); | 219 BLINK_PLATFORM_EXPORT void assign(const WebCryptoAlgorithm& other); |
219 BLINK_PLATFORM_EXPORT void reset(); | 220 BLINK_PLATFORM_EXPORT void reset(); |
220 | 221 |
221 WebPrivatePtr<WebCryptoAlgorithmPrivate> m_private; | 222 WebPrivatePtr<WebCryptoAlgorithmPrivate> m_private; |
222 }; | 223 }; |
223 | 224 |
224 } // namespace blink | 225 } // namespace blink |
225 | 226 |
226 #endif | 227 #endif |
OLD | NEW |