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

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

Issue 184453005: [webcrypto] Change HMAC key generation length from bytes to bits. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add rebased tests Created 6 years, 9 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
OLDNEW
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 19 matching lines...) Expand all
30 30
31 #ifndef WebCrypto_h 31 #ifndef WebCrypto_h
32 #define WebCrypto_h 32 #define WebCrypto_h
33 33
34 #include "WebCommon.h" 34 #include "WebCommon.h"
35 #include "WebCryptoAlgorithm.h" 35 #include "WebCryptoAlgorithm.h"
36 #include "WebCryptoKey.h" 36 #include "WebCryptoKey.h"
37 #include "WebPrivatePtr.h" 37 #include "WebPrivatePtr.h"
38 38
39 // FIXME: Remove this once chromium side is updated. 39 // FIXME: Remove this once chromium side is updated.
40 #define WEBCRYPTO_HAS_KEY_ALGORITHM 1 40 #define WEBCRYPTO_HMAC_BITS 1
41 41
42 namespace WebCore { class CryptoResult; } 42 namespace WebCore { class CryptoResult; }
43 43
44 #if INSIDE_BLINK 44 #if INSIDE_BLINK
45 namespace WTF { template <typename T> class PassRefPtr; } 45 namespace WTF { template <typename T> class PassRefPtr; }
46 #endif 46 #endif
47 47
48 namespace blink { 48 namespace blink {
49 49
50 class WebArrayBuffer; 50 class WebArrayBuffer;
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // and is not part of the WebCrypto standard. 189 // and is not part of the WebCrypto standard.
190 virtual bool digestSynchronous(const WebCryptoAlgorithmId algorithmId, const unsigned char* data, unsigned dataSize, WebArrayBuffer& result) { return false; } 190 virtual bool digestSynchronous(const WebCryptoAlgorithmId algorithmId, const unsigned char* data, unsigned dataSize, WebArrayBuffer& result) { return false; }
191 191
192 protected: 192 protected:
193 virtual ~WebCrypto() { } 193 virtual ~WebCrypto() { }
194 }; 194 };
195 195
196 } // namespace blink 196 } // namespace blink
197 197
198 #endif 198 #endif
OLDNEW
« no previous file with comments | « Source/modules/crypto/NormalizeAlgorithm.cpp ('k') | public/platform/WebCryptoAlgorithmParams.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698