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

Side by Side Diff: mozilla/security/nss/lib/pki/symmkey.c

Issue 14249009: Change the NSS and NSPR source tree to the new directory structure to be (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 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 | « mozilla/security/nss/lib/pki/pkitm.h ('k') | mozilla/security/nss/lib/pki/tdcache.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #ifdef DEBUG
6 static const char CVS_ID[] = "@(#) $RCSfile: symmkey.c,v $ $Revision: 1.7 $ $Dat e: 2012/04/25 14:50:07 $";
7 #endif /* DEBUG */
8
9 #ifndef NSSPKI_H
10 #include "nsspki.h"
11 #endif /* NSSPKI_H */
12
13 extern const NSSError NSS_ERROR_NOT_FOUND;
14
15 NSS_IMPLEMENT PRStatus
16 NSSSymmetricKey_Destroy (
17 NSSSymmetricKey *mk
18 )
19 {
20 nss_SetError(NSS_ERROR_NOT_FOUND);
21 return PR_FAILURE;
22 }
23
24 NSS_IMPLEMENT PRStatus
25 NSSSymmetricKey_DeleteStoredObject (
26 NSSSymmetricKey *mk,
27 NSSCallback *uhh
28 )
29 {
30 nss_SetError(NSS_ERROR_NOT_FOUND);
31 return PR_FAILURE;
32 }
33
34 NSS_IMPLEMENT PRUint32
35 NSSSymmetricKey_GetKeyLength (
36 NSSSymmetricKey *mk
37 )
38 {
39 nss_SetError(NSS_ERROR_NOT_FOUND);
40 return -1;
41 }
42
43 NSS_IMPLEMENT PRUint32
44 NSSSymmetricKey_GetKeyStrength (
45 NSSSymmetricKey *mk
46 )
47 {
48 nss_SetError(NSS_ERROR_NOT_FOUND);
49 return -1;
50 }
51
52 NSS_IMPLEMENT PRStatus
53 NSSSymmetricKey_IsStillPresent (
54 NSSSymmetricKey *mk
55 )
56 {
57 nss_SetError(NSS_ERROR_NOT_FOUND);
58 return PR_FAILURE;
59 }
60
61 NSS_IMPLEMENT NSSTrustDomain *
62 NSSSymmetricKey_GetTrustDomain (
63 NSSSymmetricKey *mk,
64 PRStatus *statusOpt
65 )
66 {
67 nss_SetError(NSS_ERROR_NOT_FOUND);
68 return NULL;
69 }
70
71 NSS_IMPLEMENT NSSToken *
72 NSSSymmetricKey_GetToken (
73 NSSSymmetricKey *mk,
74 PRStatus *statusOpt
75 )
76 {
77 nss_SetError(NSS_ERROR_NOT_FOUND);
78 return NULL;
79 }
80
81 NSS_IMPLEMENT NSSSlot *
82 NSSSymmetricKey_GetSlot (
83 NSSSymmetricKey *mk,
84 PRStatus *statusOpt
85 )
86 {
87 nss_SetError(NSS_ERROR_NOT_FOUND);
88 return NULL;
89 }
90
91 NSS_IMPLEMENT NSSModule *
92 NSSSymmetricKey_GetModule (
93 NSSSymmetricKey *mk,
94 PRStatus *statusOpt
95 )
96 {
97 nss_SetError(NSS_ERROR_NOT_FOUND);
98 return NULL;
99 }
100
101 NSS_IMPLEMENT NSSItem *
102 NSSSymmetricKey_Encrypt (
103 NSSSymmetricKey *mk,
104 NSSAlgorithmAndParameters *apOpt,
105 NSSItem *data,
106 NSSCallback *uhh,
107 NSSItem *rvOpt,
108 NSSArena *arenaOpt
109 )
110 {
111 nss_SetError(NSS_ERROR_NOT_FOUND);
112 return NULL;
113 }
114
115 NSS_IMPLEMENT NSSItem *
116 NSSSymmetricKey_Decrypt (
117 NSSSymmetricKey *mk,
118 NSSAlgorithmAndParameters *apOpt,
119 NSSItem *encryptedData,
120 NSSCallback *uhh,
121 NSSItem *rvOpt,
122 NSSArena *arenaOpt
123 )
124 {
125 nss_SetError(NSS_ERROR_NOT_FOUND);
126 return NULL;
127 }
128
129 NSS_IMPLEMENT NSSItem *
130 NSSSymmetricKey_Sign (
131 NSSSymmetricKey *mk,
132 NSSAlgorithmAndParameters *apOpt,
133 NSSItem *data,
134 NSSCallback *uhh,
135 NSSItem *rvOpt,
136 NSSArena *arenaOpt
137 )
138 {
139 nss_SetError(NSS_ERROR_NOT_FOUND);
140 return NULL;
141 }
142
143 NSS_IMPLEMENT NSSItem *
144 NSSSymmetricKey_SignRecover (
145 NSSSymmetricKey *mk,
146 NSSAlgorithmAndParameters *apOpt,
147 NSSItem *data,
148 NSSCallback *uhh,
149 NSSItem *rvOpt,
150 NSSArena *arenaOpt
151 )
152 {
153 nss_SetError(NSS_ERROR_NOT_FOUND);
154 return NULL;
155 }
156
157 NSS_IMPLEMENT PRStatus
158 NSSSymmetricKey_Verify (
159 NSSSymmetricKey *mk,
160 NSSAlgorithmAndParameters *apOpt,
161 NSSItem *data,
162 NSSItem *signature,
163 NSSCallback *uhh
164 )
165 {
166 nss_SetError(NSS_ERROR_NOT_FOUND);
167 return PR_FAILURE;
168 }
169
170 NSS_IMPLEMENT NSSItem *
171 NSSSymmetricKey_VerifyRecover (
172 NSSSymmetricKey *mk,
173 NSSAlgorithmAndParameters *apOpt,
174 NSSItem *signature,
175 NSSCallback *uhh,
176 NSSItem *rvOpt,
177 NSSArena *arenaOpt
178 )
179 {
180 nss_SetError(NSS_ERROR_NOT_FOUND);
181 return NULL;
182 }
183
184 NSS_IMPLEMENT NSSItem *
185 NSSSymmetricKey_WrapSymmetricKey (
186 NSSSymmetricKey *wrappingKey,
187 NSSAlgorithmAndParameters *apOpt,
188 NSSSymmetricKey *keyToWrap,
189 NSSCallback *uhh,
190 NSSItem *rvOpt,
191 NSSArena *arenaOpt
192 )
193 {
194 nss_SetError(NSS_ERROR_NOT_FOUND);
195 return NULL;
196 }
197
198 NSS_IMPLEMENT NSSItem *
199 NSSSymmetricKey_WrapPrivateKey (
200 NSSSymmetricKey *wrappingKey,
201 NSSAlgorithmAndParameters *apOpt,
202 NSSPrivateKey *keyToWrap,
203 NSSCallback *uhh,
204 NSSItem *rvOpt,
205 NSSArena *arenaOpt
206 )
207 {
208 nss_SetError(NSS_ERROR_NOT_FOUND);
209 return NULL;
210 }
211
212 NSS_IMPLEMENT NSSSymmetricKey *
213 NSSSymmetricKey_UnwrapSymmetricKey (
214 NSSSymmetricKey *wrappingKey,
215 NSSAlgorithmAndParameters *apOpt,
216 NSSItem *wrappedKey,
217 NSSOID *target,
218 PRUint32 keySizeOpt,
219 NSSOperations operations,
220 NSSCallback *uhh
221 )
222 {
223 nss_SetError(NSS_ERROR_NOT_FOUND);
224 return NULL;
225 }
226
227 NSS_IMPLEMENT NSSPrivateKey *
228 NSSSymmetricKey_UnwrapPrivateKey (
229 NSSSymmetricKey *wrappingKey,
230 NSSAlgorithmAndParameters *apOpt,
231 NSSItem *wrappedKey,
232 NSSUTF8 *labelOpt,
233 NSSItem *keyIDOpt,
234 PRBool persistant,
235 PRBool sensitive,
236 NSSToken *destinationOpt,
237 NSSCallback *uhh
238 )
239 {
240 nss_SetError(NSS_ERROR_NOT_FOUND);
241 return NULL;
242 }
243
244 NSS_IMPLEMENT NSSSymmetricKey *
245 NSSSymmetricKey_DeriveSymmetricKey (
246 NSSSymmetricKey *originalKey,
247 NSSAlgorithmAndParameters *apOpt,
248 NSSOID *target,
249 PRUint32 keySizeOpt,
250 NSSOperations operations,
251 NSSCallback *uhh
252 )
253 {
254 nss_SetError(NSS_ERROR_NOT_FOUND);
255 return NULL;
256 }
257
258 NSS_IMPLEMENT NSSCryptoContext *
259 NSSSymmetricKey_CreateCryptoContext (
260 NSSSymmetricKey *mk,
261 NSSAlgorithmAndParameters *apOpt,
262 NSSCallback *uhh
263 )
264 {
265 nss_SetError(NSS_ERROR_NOT_FOUND);
266 return NULL;
267 }
268
OLDNEW
« no previous file with comments | « mozilla/security/nss/lib/pki/pkitm.h ('k') | mozilla/security/nss/lib/pki/tdcache.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698