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 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebCryptoKeyAlgorithmParams_h | 31 #ifndef WebCryptoKeyAlgorithmParams_h |
32 #define WebCryptoKeyAlgorithmParams_h | 32 #define WebCryptoKeyAlgorithmParams_h |
33 | 33 |
34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
35 #include "WebCryptoAlgorithm.h" | 35 #include "WebCryptoAlgorithm.h" |
36 #include "WebVector.h" | 36 #include "WebVector.h" |
37 | 37 |
38 // FIXME: Delete this once the chromium side has picked up the API change. | |
39 #define WEBCRYPTO_HMAC_KEY_HAS_LENGTH 1 | |
40 | |
41 namespace blink { | 38 namespace blink { |
42 | 39 |
43 enum WebCryptoKeyAlgorithmParamsType { | 40 enum WebCryptoKeyAlgorithmParamsType { |
44 WebCryptoKeyAlgorithmParamsTypeNone, | 41 WebCryptoKeyAlgorithmParamsTypeNone, |
45 WebCryptoKeyAlgorithmParamsTypeHmac, | 42 WebCryptoKeyAlgorithmParamsTypeHmac, |
46 WebCryptoKeyAlgorithmParamsTypeAes, | 43 WebCryptoKeyAlgorithmParamsTypeAes, |
47 WebCryptoKeyAlgorithmParamsTypeRsa, | 44 WebCryptoKeyAlgorithmParamsTypeRsa, |
48 WebCryptoKeyAlgorithmParamsTypeRsaHashed | 45 WebCryptoKeyAlgorithmParamsTypeRsaHashed |
49 }; | 46 }; |
50 | 47 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 return WebCryptoKeyAlgorithmParamsTypeRsaHashed; | 149 return WebCryptoKeyAlgorithmParamsTypeRsaHashed; |
153 } | 150 } |
154 | 151 |
155 private: | 152 private: |
156 WebCryptoAlgorithm m_hash; | 153 WebCryptoAlgorithm m_hash; |
157 }; | 154 }; |
158 | 155 |
159 } // namespace blink | 156 } // namespace blink |
160 | 157 |
161 #endif | 158 #endif |
OLD | NEW |