| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 } | 116 } |
| 117 | 117 |
| 118 unsigned short lengthBits() const { return m_lengthBits; } | 118 unsigned short lengthBits() const { return m_lengthBits; } |
| 119 | 119 |
| 120 private: | 120 private: |
| 121 const unsigned short m_lengthBits; | 121 const unsigned short m_lengthBits; |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 class WebCryptoHmacImportParams : public WebCryptoAlgorithmParamsWithHash { | 124 class WebCryptoHmacImportParams : public WebCryptoAlgorithmParamsWithHash { |
| 125 public: | 125 public: |
| 126 // FIXME: Remove this constructor once it is no longer used by Chromium. http:
//crbug.com/431085 | 126 // FIXME: Remove this constructor once it is no longer used by Chromium. |
| 127 // http://crbug.com/431085 |
| 127 explicit WebCryptoHmacImportParams(const WebCryptoAlgorithm& hash) | 128 explicit WebCryptoHmacImportParams(const WebCryptoAlgorithm& hash) |
| 128 : WebCryptoAlgorithmParamsWithHash(hash), | 129 : WebCryptoAlgorithmParamsWithHash(hash), |
| 129 m_hasLengthBits(false), | 130 m_hasLengthBits(false), |
| 130 m_optionalLengthBits(0) {} | 131 m_optionalLengthBits(0) {} |
| 131 | 132 |
| 132 WebCryptoHmacImportParams(const WebCryptoAlgorithm& hash, | 133 WebCryptoHmacImportParams(const WebCryptoAlgorithm& hash, |
| 133 bool hasLengthBits, | 134 bool hasLengthBits, |
| 134 unsigned lengthBits) | 135 unsigned lengthBits) |
| 135 : WebCryptoAlgorithmParamsWithHash(hash), | 136 : WebCryptoAlgorithmParamsWithHash(hash), |
| 136 m_hasLengthBits(hasLengthBits), | 137 m_hasLengthBits(hasLengthBits), |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 unsigned iterations() const { return m_iterations; } | 411 unsigned iterations() const { return m_iterations; } |
| 411 | 412 |
| 412 private: | 413 private: |
| 413 const WebVector<unsigned char> m_salt; | 414 const WebVector<unsigned char> m_salt; |
| 414 const unsigned m_iterations; | 415 const unsigned m_iterations; |
| 415 }; | 416 }; |
| 416 | 417 |
| 417 } // namespace blink | 418 } // namespace blink |
| 418 | 419 |
| 419 #endif | 420 #endif |
| OLD | NEW |