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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "WebCommon.h" | 34 #include "WebCommon.h" |
35 #include "WebPrivatePtr.h" | 35 #include "WebPrivatePtr.h" |
36 | 36 |
37 #if INSIDE_BLINK | 37 #if INSIDE_BLINK |
38 #include "wtf/PassOwnPtr.h" | 38 #include "wtf/PassOwnPtr.h" |
39 #endif | 39 #endif |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
| 43 enum WebCryptoOperation { |
| 44 WebCryptoOperationEncrypt, |
| 45 WebCryptoOperationDecrypt, |
| 46 WebCryptoOperationSign, |
| 47 WebCryptoOperationVerify, |
| 48 WebCryptoOperationDigest, |
| 49 WebCryptoOperationGenerateKey, |
| 50 WebCryptoOperationImportKey, |
| 51 WebCryptoOperationDeriveKey, |
| 52 WebCryptoOperationDeriveBits, |
| 53 WebCryptoOperationWrapKey, |
| 54 WebCryptoOperationUnwrapKey, |
| 55 WebCryptoOperationLast = WebCryptoOperationUnwrapKey, |
| 56 }; |
| 57 |
43 enum WebCryptoAlgorithmId { | 58 enum WebCryptoAlgorithmId { |
44 WebCryptoAlgorithmIdAesCbc, | 59 WebCryptoAlgorithmIdAesCbc, |
45 WebCryptoAlgorithmIdHmac, | 60 WebCryptoAlgorithmIdHmac, |
46 WebCryptoAlgorithmIdRsaSsaPkcs1v1_5, | 61 WebCryptoAlgorithmIdRsaSsaPkcs1v1_5, |
47 WebCryptoAlgorithmIdSha1, | 62 WebCryptoAlgorithmIdSha1, |
48 WebCryptoAlgorithmIdSha256, | 63 WebCryptoAlgorithmIdSha256, |
49 WebCryptoAlgorithmIdSha384, | 64 WebCryptoAlgorithmIdSha384, |
50 WebCryptoAlgorithmIdSha512, | 65 WebCryptoAlgorithmIdSha512, |
51 WebCryptoAlgorithmIdAesGcm, | 66 WebCryptoAlgorithmIdAesGcm, |
52 WebCryptoAlgorithmIdRsaOaep, | 67 WebCryptoAlgorithmIdRsaOaep, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 private: | 148 private: |
134 BLINK_PLATFORM_EXPORT void assign(const WebCryptoAlgorithm& other); | 149 BLINK_PLATFORM_EXPORT void assign(const WebCryptoAlgorithm& other); |
135 BLINK_PLATFORM_EXPORT void reset(); | 150 BLINK_PLATFORM_EXPORT void reset(); |
136 | 151 |
137 WebPrivatePtr<WebCryptoAlgorithmPrivate> m_private; | 152 WebPrivatePtr<WebCryptoAlgorithmPrivate> m_private; |
138 }; | 153 }; |
139 | 154 |
140 } // namespace blink | 155 } // namespace blink |
141 | 156 |
142 #endif | 157 #endif |
OLD | NEW |