| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 | 78 |
| 79 BLINK_PLATFORM_EXPORT WebCryptoKeyAlgorithmParamsType paramsType() const; | 79 BLINK_PLATFORM_EXPORT WebCryptoKeyAlgorithmParamsType paramsType() const; |
| 80 | 80 |
| 81 // Returns the type-specific parameters for this key. If the requested | 81 // Returns the type-specific parameters for this key. If the requested |
| 82 // parameters are not applicable (for instance an HMAC key does not have | 82 // parameters are not applicable (for instance an HMAC key does not have |
| 83 // any AES parameters) then returns 0. | 83 // any AES parameters) then returns 0. |
| 84 BLINK_PLATFORM_EXPORT WebCryptoAesKeyAlgorithmParams* aesParams() const; | 84 BLINK_PLATFORM_EXPORT WebCryptoAesKeyAlgorithmParams* aesParams() const; |
| 85 BLINK_PLATFORM_EXPORT WebCryptoHmacKeyAlgorithmParams* hmacParams() const; | 85 BLINK_PLATFORM_EXPORT WebCryptoHmacKeyAlgorithmParams* hmacParams() const; |
| 86 BLINK_PLATFORM_EXPORT WebCryptoRsaHashedKeyAlgorithmParams* rsaHashedParams(
) const; | 86 BLINK_PLATFORM_EXPORT WebCryptoRsaHashedKeyAlgorithmParams* rsaHashedParams(
) const; |
| 87 | 87 |
| 88 // Write the algorithm parameters to a dictionary. |
| 89 BLINK_PLATFORM_EXPORT void writeToDictionary(WebCryptoKeyAlgorithmDictionary
*) const; |
| 90 |
| 88 private: | 91 private: |
| 89 BLINK_PLATFORM_EXPORT void assign(const WebCryptoKeyAlgorithm& other); | 92 BLINK_PLATFORM_EXPORT void assign(const WebCryptoKeyAlgorithm& other); |
| 90 BLINK_PLATFORM_EXPORT void reset(); | 93 BLINK_PLATFORM_EXPORT void reset(); |
| 91 | 94 |
| 92 WebPrivatePtr<WebCryptoKeyAlgorithmPrivate> m_private; | 95 WebPrivatePtr<WebCryptoKeyAlgorithmPrivate> m_private; |
| 93 }; | 96 }; |
| 94 | 97 |
| 95 } // namespace blink | 98 } // namespace blink |
| 96 | 99 |
| 97 #endif | 100 #endif |
| OLD | NEW |