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

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

Issue 248963006: [webcrypto] Add key usage for 'deriveBits' (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 | « Source/modules/crypto/NormalizeAlgorithm.h ('k') | 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) 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 }; 43 };
44 44
45 enum WebCryptoKeyUsage { 45 enum WebCryptoKeyUsage {
46 WebCryptoKeyUsageEncrypt = 1 << 0, 46 WebCryptoKeyUsageEncrypt = 1 << 0,
47 WebCryptoKeyUsageDecrypt = 1 << 1, 47 WebCryptoKeyUsageDecrypt = 1 << 1,
48 WebCryptoKeyUsageSign = 1 << 2, 48 WebCryptoKeyUsageSign = 1 << 2,
49 WebCryptoKeyUsageVerify = 1 << 3, 49 WebCryptoKeyUsageVerify = 1 << 3,
50 WebCryptoKeyUsageDeriveKey = 1 << 4, 50 WebCryptoKeyUsageDeriveKey = 1 << 4,
51 WebCryptoKeyUsageWrapKey = 1 << 5, 51 WebCryptoKeyUsageWrapKey = 1 << 5,
52 WebCryptoKeyUsageUnwrapKey = 1 << 6, 52 WebCryptoKeyUsageUnwrapKey = 1 << 6,
53 WebCryptoKeyUsageDeriveBits = 1 << 7,
53 #if INSIDE_BLINK 54 #if INSIDE_BLINK
54 EndOfWebCryptoKeyUsage, 55 EndOfWebCryptoKeyUsage,
55 #endif 56 #endif
56 }; 57 };
57 58
58 // A bitfield of WebCryptoKeyUsage 59 // A bitfield of WebCryptoKeyUsage
59 typedef int WebCryptoKeyUsageMask; 60 typedef int WebCryptoKeyUsageMask;
60 61
61 enum WebCryptoKeyFormat { 62 enum WebCryptoKeyFormat {
62 WebCryptoKeyFormatRaw, 63 WebCryptoKeyFormatRaw,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // Base class for the embedder to define its own opaque key handle. The lifetime 129 // Base class for the embedder to define its own opaque key handle. The lifetime
129 // of this object is controlled by WebCryptoKey using reference counting. 130 // of this object is controlled by WebCryptoKey using reference counting.
130 class WebCryptoKeyHandle { 131 class WebCryptoKeyHandle {
131 public: 132 public:
132 virtual ~WebCryptoKeyHandle() { } 133 virtual ~WebCryptoKeyHandle() { }
133 }; 134 };
134 135
135 } // namespace blink 136 } // namespace blink
136 137
137 #endif 138 #endif
OLDNEW
« no previous file with comments | « Source/modules/crypto/NormalizeAlgorithm.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698