Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: public/platform/WebCryptoKeyAlgorithmParams.h

Issue 291583006: Remove WEBCRYPTO_HMAC_KEY_HAS_LENGTH. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698