| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |