Mercurial > trustbridge > nss-cmake-static
comparison nss/lib/ckfw/nssckfwc.h @ 0:1e5118fa0cb1
This is NSS with a Cmake Buildsyste
To compile a static NSS library for Windows we've used the
Chromium-NSS fork and added a Cmake buildsystem to compile
it statically for Windows. See README.chromium for chromium
changes and README.trustbridge for our modifications.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 28 Jul 2014 10:47:06 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1e5118fa0cb1 |
---|---|
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 #ifndef NSSCKFWC_H | |
6 #define NSSCKFWC_H | |
7 | |
8 /* | |
9 * nssckfwc.h | |
10 * | |
11 * This file prototypes all of the NSS Cryptoki Framework "wrapper" | |
12 * which implement the PKCS#11 API. Technically, these are public | |
13 * routines (with capital "NSS" prefixes), since they are called | |
14 * from (generated) code within a Module using the Framework. | |
15 * However, they should not be called except from those generated | |
16 * calls. Hence, the prototypes have been split out into this file. | |
17 */ | |
18 | |
19 #ifndef NSSCKT_H | |
20 #include "nssckt.h" | |
21 #endif /* NSSCKT_H */ | |
22 | |
23 #ifndef NSSCKFWT_H | |
24 #include "nssckfwt.h" | |
25 #endif /* NSSCKFWT_H */ | |
26 | |
27 #ifndef NSSCKMDT_H | |
28 #include "nssckmdt.h" | |
29 #endif /* NSSCKMDT_H */ | |
30 | |
31 /* | |
32 * NSSCKFWC_Initialize | |
33 * NSSCKFWC_Finalize | |
34 * NSSCKFWC_GetInfo | |
35 * -- NSSCKFWC_GetFunctionList -- see the API insert file | |
36 * NSSCKFWC_GetSlotList | |
37 * NSSCKFWC_GetSlotInfo | |
38 * NSSCKFWC_GetTokenInfo | |
39 * NSSCKFWC_WaitForSlotEvent | |
40 * NSSCKFWC_GetMechanismList | |
41 * NSSCKFWC_GetMechanismInfo | |
42 * NSSCKFWC_InitToken | |
43 * NSSCKFWC_InitPIN | |
44 * NSSCKFWC_SetPIN | |
45 * NSSCKFWC_OpenSession | |
46 * NSSCKFWC_CloseSession | |
47 * NSSCKFWC_CloseAllSessions | |
48 * NSSCKFWC_GetSessionInfo | |
49 * NSSCKFWC_GetOperationState | |
50 * NSSCKFWC_SetOperationState | |
51 * NSSCKFWC_Login | |
52 * NSSCKFWC_Logout | |
53 * NSSCKFWC_CreateObject | |
54 * NSSCKFWC_CopyObject | |
55 * NSSCKFWC_DestroyObject | |
56 * NSSCKFWC_GetObjectSize | |
57 * NSSCKFWC_GetAttributeValue | |
58 * NSSCKFWC_SetAttributeValue | |
59 * NSSCKFWC_FindObjectsInit | |
60 * NSSCKFWC_FindObjects | |
61 * NSSCKFWC_FindObjectsFinal | |
62 * NSSCKFWC_EncryptInit | |
63 * NSSCKFWC_Encrypt | |
64 * NSSCKFWC_EncryptUpdate | |
65 * NSSCKFWC_EncryptFinal | |
66 * NSSCKFWC_DecryptInit | |
67 * NSSCKFWC_Decrypt | |
68 * NSSCKFWC_DecryptUpdate | |
69 * NSSCKFWC_DecryptFinal | |
70 * NSSCKFWC_DigestInit | |
71 * NSSCKFWC_Digest | |
72 * NSSCKFWC_DigestUpdate | |
73 * NSSCKFWC_DigestKey | |
74 * NSSCKFWC_DigestFinal | |
75 * NSSCKFWC_SignInit | |
76 * NSSCKFWC_Sign | |
77 * NSSCKFWC_SignUpdate | |
78 * NSSCKFWC_SignFinal | |
79 * NSSCKFWC_SignRecoverInit | |
80 * NSSCKFWC_SignRecover | |
81 * NSSCKFWC_VerifyInit | |
82 * NSSCKFWC_Verify | |
83 * NSSCKFWC_VerifyUpdate | |
84 * NSSCKFWC_VerifyFinal | |
85 * NSSCKFWC_VerifyRecoverInit | |
86 * NSSCKFWC_VerifyRecover | |
87 * NSSCKFWC_DigestEncryptUpdate | |
88 * NSSCKFWC_DecryptDigestUpdate | |
89 * NSSCKFWC_SignEncryptUpdate | |
90 * NSSCKFWC_DecryptVerifyUpdate | |
91 * NSSCKFWC_GenerateKey | |
92 * NSSCKFWC_GenerateKeyPair | |
93 * NSSCKFWC_WrapKey | |
94 * NSSCKFWC_UnwrapKey | |
95 * NSSCKFWC_DeriveKey | |
96 * NSSCKFWC_SeedRandom | |
97 * NSSCKFWC_GenerateRandom | |
98 * NSSCKFWC_GetFunctionStatus | |
99 * NSSCKFWC_CancelFunction | |
100 */ | |
101 | |
102 /* | |
103 * NSSCKFWC_Initialize | |
104 * | |
105 */ | |
106 NSS_EXTERN CK_RV | |
107 NSSCKFWC_Initialize | |
108 ( | |
109 NSSCKFWInstance **pFwInstance, | |
110 NSSCKMDInstance *mdInstance, | |
111 CK_VOID_PTR pInitArgs | |
112 ); | |
113 | |
114 /* | |
115 * NSSCKFWC_Finalize | |
116 * | |
117 */ | |
118 NSS_EXTERN CK_RV | |
119 NSSCKFWC_Finalize | |
120 ( | |
121 NSSCKFWInstance **pFwInstance | |
122 ); | |
123 | |
124 /* | |
125 * NSSCKFWC_GetInfo | |
126 * | |
127 */ | |
128 NSS_EXTERN CK_RV | |
129 NSSCKFWC_GetInfo | |
130 ( | |
131 NSSCKFWInstance *fwInstance, | |
132 CK_INFO_PTR pInfo | |
133 ); | |
134 | |
135 /* | |
136 * C_GetFunctionList is implemented entirely in the Module's file which | |
137 * includes the Framework API insert file. It requires no "actual" | |
138 * NSSCKFW routine. | |
139 */ | |
140 | |
141 /* | |
142 * NSSCKFWC_GetSlotList | |
143 * | |
144 */ | |
145 NSS_EXTERN CK_RV | |
146 NSSCKFWC_GetSlotList | |
147 ( | |
148 NSSCKFWInstance *fwInstance, | |
149 CK_BBOOL tokenPresent, | |
150 CK_SLOT_ID_PTR pSlotList, | |
151 CK_ULONG_PTR pulCount | |
152 ); | |
153 | |
154 /* | |
155 * NSSCKFWC_GetSlotInfo | |
156 * | |
157 */ | |
158 NSS_EXTERN CK_RV | |
159 NSSCKFWC_GetSlotInfo | |
160 ( | |
161 NSSCKFWInstance *fwInstance, | |
162 CK_SLOT_ID slotID, | |
163 CK_SLOT_INFO_PTR pInfo | |
164 ); | |
165 | |
166 /* | |
167 * NSSCKFWC_GetTokenInfo | |
168 * | |
169 */ | |
170 NSS_EXTERN CK_RV | |
171 NSSCKFWC_GetTokenInfo | |
172 ( | |
173 NSSCKFWInstance *fwInstance, | |
174 CK_SLOT_ID slotID, | |
175 CK_TOKEN_INFO_PTR pInfo | |
176 ); | |
177 | |
178 /* | |
179 * NSSCKFWC_WaitForSlotEvent | |
180 * | |
181 */ | |
182 NSS_EXTERN CK_RV | |
183 NSSCKFWC_WaitForSlotEvent | |
184 ( | |
185 NSSCKFWInstance *fwInstance, | |
186 CK_FLAGS flags, | |
187 CK_SLOT_ID_PTR pSlot, | |
188 CK_VOID_PTR pReserved | |
189 ); | |
190 | |
191 /* | |
192 * NSSCKFWC_GetMechanismList | |
193 * | |
194 */ | |
195 NSS_EXTERN CK_RV | |
196 NSSCKFWC_GetMechanismList | |
197 ( | |
198 NSSCKFWInstance *fwInstance, | |
199 CK_SLOT_ID slotID, | |
200 CK_MECHANISM_TYPE_PTR pMechanismList, | |
201 CK_ULONG_PTR pulCount | |
202 ); | |
203 | |
204 /* | |
205 * NSSCKFWC_GetMechanismInfo | |
206 * | |
207 */ | |
208 NSS_EXTERN CK_RV | |
209 NSSCKFWC_GetMechanismInfo | |
210 ( | |
211 NSSCKFWInstance *fwInstance, | |
212 CK_SLOT_ID slotID, | |
213 CK_MECHANISM_TYPE type, | |
214 CK_MECHANISM_INFO_PTR pInfo | |
215 ); | |
216 | |
217 /* | |
218 * NSSCKFWC_InitToken | |
219 * | |
220 */ | |
221 NSS_EXTERN CK_RV | |
222 NSSCKFWC_InitToken | |
223 ( | |
224 NSSCKFWInstance *fwInstance, | |
225 CK_SLOT_ID slotID, | |
226 CK_CHAR_PTR pPin, | |
227 CK_ULONG ulPinLen, | |
228 CK_CHAR_PTR pLabel | |
229 ); | |
230 | |
231 /* | |
232 * NSSCKFWC_InitPIN | |
233 * | |
234 */ | |
235 NSS_EXTERN CK_RV | |
236 NSSCKFWC_InitPIN | |
237 ( | |
238 NSSCKFWInstance *fwInstance, | |
239 CK_SESSION_HANDLE hSession, | |
240 CK_CHAR_PTR pPin, | |
241 CK_ULONG ulPinLen | |
242 ); | |
243 | |
244 /* | |
245 * NSSCKFWC_SetPIN | |
246 * | |
247 */ | |
248 NSS_EXTERN CK_RV | |
249 NSSCKFWC_SetPIN | |
250 ( | |
251 NSSCKFWInstance *fwInstance, | |
252 CK_SESSION_HANDLE hSession, | |
253 CK_CHAR_PTR pOldPin, | |
254 CK_ULONG ulOldLen, | |
255 CK_CHAR_PTR pNewPin, | |
256 CK_ULONG ulNewLen | |
257 ); | |
258 | |
259 /* | |
260 * NSSCKFWC_OpenSession | |
261 * | |
262 */ | |
263 NSS_EXTERN CK_RV | |
264 NSSCKFWC_OpenSession | |
265 ( | |
266 NSSCKFWInstance *fwInstance, | |
267 CK_SLOT_ID slotID, | |
268 CK_FLAGS flags, | |
269 CK_VOID_PTR pApplication, | |
270 CK_NOTIFY Notify, | |
271 CK_SESSION_HANDLE_PTR phSession | |
272 ); | |
273 | |
274 /* | |
275 * NSSCKFWC_CloseSession | |
276 * | |
277 */ | |
278 NSS_EXTERN CK_RV | |
279 NSSCKFWC_CloseSession | |
280 ( | |
281 NSSCKFWInstance *fwInstance, | |
282 CK_SESSION_HANDLE hSession | |
283 ); | |
284 | |
285 /* | |
286 * NSSCKFWC_CloseAllSessions | |
287 * | |
288 */ | |
289 NSS_EXTERN CK_RV | |
290 NSSCKFWC_CloseAllSessions | |
291 ( | |
292 NSSCKFWInstance *fwInstance, | |
293 CK_SLOT_ID slotID | |
294 ); | |
295 | |
296 /* | |
297 * NSSCKFWC_GetSessionInfo | |
298 * | |
299 */ | |
300 NSS_EXTERN CK_RV | |
301 NSSCKFWC_GetSessionInfo | |
302 ( | |
303 NSSCKFWInstance *fwInstance, | |
304 CK_SESSION_HANDLE hSession, | |
305 CK_SESSION_INFO_PTR pInfo | |
306 ); | |
307 | |
308 /* | |
309 * NSSCKFWC_GetOperationState | |
310 * | |
311 */ | |
312 NSS_EXTERN CK_RV | |
313 NSSCKFWC_GetOperationState | |
314 ( | |
315 NSSCKFWInstance *fwInstance, | |
316 CK_SESSION_HANDLE hSession, | |
317 CK_BYTE_PTR pOperationState, | |
318 CK_ULONG_PTR pulOperationStateLen | |
319 ); | |
320 | |
321 /* | |
322 * NSSCKFWC_SetOperationState | |
323 * | |
324 */ | |
325 NSS_EXTERN CK_RV | |
326 NSSCKFWC_SetOperationState | |
327 ( | |
328 NSSCKFWInstance *fwInstance, | |
329 CK_SESSION_HANDLE hSession, | |
330 CK_BYTE_PTR pOperationState, | |
331 CK_ULONG ulOperationStateLen, | |
332 CK_OBJECT_HANDLE hEncryptionKey, | |
333 CK_OBJECT_HANDLE hAuthenticationKey | |
334 ); | |
335 | |
336 /* | |
337 * NSSCKFWC_Login | |
338 * | |
339 */ | |
340 NSS_EXTERN CK_RV | |
341 NSSCKFWC_Login | |
342 ( | |
343 NSSCKFWInstance *fwInstance, | |
344 CK_SESSION_HANDLE hSession, | |
345 CK_USER_TYPE userType, | |
346 CK_CHAR_PTR pPin, | |
347 CK_ULONG ulPinLen | |
348 ); | |
349 | |
350 /* | |
351 * NSSCKFWC_Logout | |
352 * | |
353 */ | |
354 NSS_EXTERN CK_RV | |
355 NSSCKFWC_Logout | |
356 ( | |
357 NSSCKFWInstance *fwInstance, | |
358 CK_SESSION_HANDLE hSession | |
359 ); | |
360 | |
361 /* | |
362 * NSSCKFWC_CreateObject | |
363 * | |
364 */ | |
365 NSS_EXTERN CK_RV | |
366 NSSCKFWC_CreateObject | |
367 ( | |
368 NSSCKFWInstance *fwInstance, | |
369 CK_SESSION_HANDLE hSession, | |
370 CK_ATTRIBUTE_PTR pTemplate, | |
371 CK_ULONG ulCount, | |
372 CK_OBJECT_HANDLE_PTR phObject | |
373 ); | |
374 | |
375 /* | |
376 * NSSCKFWC_CopyObject | |
377 * | |
378 */ | |
379 NSS_EXTERN CK_RV | |
380 NSSCKFWC_CopyObject | |
381 ( | |
382 NSSCKFWInstance *fwInstance, | |
383 CK_SESSION_HANDLE hSession, | |
384 CK_OBJECT_HANDLE hObject, | |
385 CK_ATTRIBUTE_PTR pTemplate, | |
386 CK_ULONG ulCount, | |
387 CK_OBJECT_HANDLE_PTR phNewObject | |
388 ); | |
389 | |
390 /* | |
391 * NSSCKFWC_DestroyObject | |
392 * | |
393 */ | |
394 NSS_EXTERN CK_RV | |
395 NSSCKFWC_DestroyObject | |
396 ( | |
397 NSSCKFWInstance *fwInstance, | |
398 CK_SESSION_HANDLE hSession, | |
399 CK_OBJECT_HANDLE hObject | |
400 ); | |
401 | |
402 /* | |
403 * NSSCKFWC_GetObjectSize | |
404 * | |
405 */ | |
406 NSS_EXTERN CK_RV | |
407 NSSCKFWC_GetObjectSize | |
408 ( | |
409 NSSCKFWInstance *fwInstance, | |
410 CK_SESSION_HANDLE hSession, | |
411 CK_OBJECT_HANDLE hObject, | |
412 CK_ULONG_PTR pulSize | |
413 ); | |
414 | |
415 /* | |
416 * NSSCKFWC_GetAttributeValue | |
417 * | |
418 */ | |
419 NSS_EXTERN CK_RV | |
420 NSSCKFWC_GetAttributeValue | |
421 ( | |
422 NSSCKFWInstance *fwInstance, | |
423 CK_SESSION_HANDLE hSession, | |
424 CK_OBJECT_HANDLE hObject, | |
425 CK_ATTRIBUTE_PTR pTemplate, | |
426 CK_ULONG ulCount | |
427 ); | |
428 | |
429 /* | |
430 * NSSCKFWC_SetAttributeValue | |
431 * | |
432 */ | |
433 NSS_EXTERN CK_RV | |
434 NSSCKFWC_SetAttributeValue | |
435 ( | |
436 NSSCKFWInstance *fwInstance, | |
437 CK_SESSION_HANDLE hSession, | |
438 CK_OBJECT_HANDLE hObject, | |
439 CK_ATTRIBUTE_PTR pTemplate, | |
440 CK_ULONG ulCount | |
441 ); | |
442 | |
443 /* | |
444 * NSSCKFWC_FindObjectsInit | |
445 * | |
446 */ | |
447 NSS_EXTERN CK_RV | |
448 NSSCKFWC_FindObjectsInit | |
449 ( | |
450 NSSCKFWInstance *fwInstance, | |
451 CK_SESSION_HANDLE hSession, | |
452 CK_ATTRIBUTE_PTR pTemplate, | |
453 CK_ULONG ulCount | |
454 ); | |
455 | |
456 /* | |
457 * NSSCKFWC_FindObjects | |
458 * | |
459 */ | |
460 NSS_EXTERN CK_RV | |
461 NSSCKFWC_FindObjects | |
462 ( | |
463 NSSCKFWInstance *fwInstance, | |
464 CK_SESSION_HANDLE hSession, | |
465 CK_OBJECT_HANDLE_PTR phObject, | |
466 CK_ULONG ulMaxObjectCount, | |
467 CK_ULONG_PTR pulObjectCount | |
468 ); | |
469 | |
470 /* | |
471 * NSSCKFWC_FindObjectsFinal | |
472 * | |
473 */ | |
474 NSS_EXTERN CK_RV | |
475 NSSCKFWC_FindObjectsFinal | |
476 ( | |
477 NSSCKFWInstance *fwInstance, | |
478 CK_SESSION_HANDLE hSession | |
479 ); | |
480 | |
481 /* | |
482 * NSSCKFWC_EncryptInit | |
483 * | |
484 */ | |
485 NSS_EXTERN CK_RV | |
486 NSSCKFWC_EncryptInit | |
487 ( | |
488 NSSCKFWInstance *fwInstance, | |
489 CK_SESSION_HANDLE hSession, | |
490 CK_MECHANISM_PTR pMechanism, | |
491 CK_OBJECT_HANDLE hKey | |
492 ); | |
493 | |
494 /* | |
495 * NSSCKFWC_Encrypt | |
496 * | |
497 */ | |
498 NSS_EXTERN CK_RV | |
499 NSSCKFWC_Encrypt | |
500 ( | |
501 NSSCKFWInstance *fwInstance, | |
502 CK_SESSION_HANDLE hSession, | |
503 CK_BYTE_PTR pData, | |
504 CK_ULONG ulDataLen, | |
505 CK_BYTE_PTR pEncryptedData, | |
506 CK_ULONG_PTR pulEncryptedDataLen | |
507 ); | |
508 | |
509 /* | |
510 * NSSCKFWC_EncryptUpdate | |
511 * | |
512 */ | |
513 NSS_EXTERN CK_RV | |
514 NSSCKFWC_EncryptUpdate | |
515 ( | |
516 NSSCKFWInstance *fwInstance, | |
517 CK_SESSION_HANDLE hSession, | |
518 CK_BYTE_PTR pPart, | |
519 CK_ULONG ulPartLen, | |
520 CK_BYTE_PTR pEncryptedPart, | |
521 CK_ULONG_PTR pulEncryptedPartLen | |
522 ); | |
523 | |
524 /* | |
525 * NSSCKFWC_EncryptFinal | |
526 * | |
527 */ | |
528 NSS_EXTERN CK_RV | |
529 NSSCKFWC_EncryptFinal | |
530 ( | |
531 NSSCKFWInstance *fwInstance, | |
532 CK_SESSION_HANDLE hSession, | |
533 CK_BYTE_PTR pLastEncryptedPart, | |
534 CK_ULONG_PTR pulLastEncryptedPartLen | |
535 ); | |
536 | |
537 /* | |
538 * NSSCKFWC_DecryptInit | |
539 * | |
540 */ | |
541 NSS_EXTERN CK_RV | |
542 NSSCKFWC_DecryptInit | |
543 ( | |
544 NSSCKFWInstance *fwInstance, | |
545 CK_SESSION_HANDLE hSession, | |
546 CK_MECHANISM_PTR pMechanism, | |
547 CK_OBJECT_HANDLE hKey | |
548 ); | |
549 | |
550 /* | |
551 * NSSCKFWC_Decrypt | |
552 * | |
553 */ | |
554 NSS_EXTERN CK_RV | |
555 NSSCKFWC_Decrypt | |
556 ( | |
557 NSSCKFWInstance *fwInstance, | |
558 CK_SESSION_HANDLE hSession, | |
559 CK_BYTE_PTR pEncryptedData, | |
560 CK_ULONG ulEncryptedDataLen, | |
561 CK_BYTE_PTR pData, | |
562 CK_ULONG_PTR pulDataLen | |
563 ); | |
564 | |
565 /* | |
566 * NSSCKFWC_DecryptUpdate | |
567 * | |
568 */ | |
569 NSS_EXTERN CK_RV | |
570 NSSCKFWC_DecryptUpdate | |
571 ( | |
572 NSSCKFWInstance *fwInstance, | |
573 CK_SESSION_HANDLE hSession, | |
574 CK_BYTE_PTR pEncryptedPart, | |
575 CK_ULONG ulEncryptedPartLen, | |
576 CK_BYTE_PTR pPart, | |
577 CK_ULONG_PTR pulPartLen | |
578 ); | |
579 | |
580 /* | |
581 * NSSCKFWC_DecryptFinal | |
582 * | |
583 */ | |
584 NSS_EXTERN CK_RV | |
585 NSSCKFWC_DecryptFinal | |
586 ( | |
587 NSSCKFWInstance *fwInstance, | |
588 CK_SESSION_HANDLE hSession, | |
589 CK_BYTE_PTR pLastPart, | |
590 CK_ULONG_PTR pulLastPartLen | |
591 ); | |
592 | |
593 /* | |
594 * NSSCKFWC_DigestInit | |
595 * | |
596 */ | |
597 NSS_EXTERN CK_RV | |
598 NSSCKFWC_DigestInit | |
599 ( | |
600 NSSCKFWInstance *fwInstance, | |
601 CK_SESSION_HANDLE hSession, | |
602 CK_MECHANISM_PTR pMechanism | |
603 ); | |
604 | |
605 /* | |
606 * NSSCKFWC_Digest | |
607 * | |
608 */ | |
609 NSS_EXTERN CK_RV | |
610 NSSCKFWC_Digest | |
611 ( | |
612 NSSCKFWInstance *fwInstance, | |
613 CK_SESSION_HANDLE hSession, | |
614 CK_BYTE_PTR pData, | |
615 CK_ULONG ulDataLen, | |
616 CK_BYTE_PTR pDigest, | |
617 CK_ULONG_PTR pulDigestLen | |
618 ); | |
619 | |
620 /* | |
621 * NSSCKFWC_DigestUpdate | |
622 * | |
623 */ | |
624 NSS_EXTERN CK_RV | |
625 NSSCKFWC_DigestUpdate | |
626 ( | |
627 NSSCKFWInstance *fwInstance, | |
628 CK_SESSION_HANDLE hSession, | |
629 CK_BYTE_PTR pData, | |
630 CK_ULONG ulDataLen | |
631 ); | |
632 | |
633 /* | |
634 * NSSCKFWC_DigestKey | |
635 * | |
636 */ | |
637 NSS_EXTERN CK_RV | |
638 NSSCKFWC_DigestKey | |
639 ( | |
640 NSSCKFWInstance *fwInstance, | |
641 CK_SESSION_HANDLE hSession, | |
642 CK_OBJECT_HANDLE hKey | |
643 ); | |
644 | |
645 /* | |
646 * NSSCKFWC_DigestFinal | |
647 * | |
648 */ | |
649 NSS_EXTERN CK_RV | |
650 NSSCKFWC_DigestFinal | |
651 ( | |
652 NSSCKFWInstance *fwInstance, | |
653 CK_SESSION_HANDLE hSession, | |
654 CK_BYTE_PTR pDigest, | |
655 CK_ULONG_PTR pulDigestLen | |
656 ); | |
657 | |
658 /* | |
659 * NSSCKFWC_SignInit | |
660 * | |
661 */ | |
662 NSS_EXTERN CK_RV | |
663 NSSCKFWC_SignInit | |
664 ( | |
665 NSSCKFWInstance *fwInstance, | |
666 CK_SESSION_HANDLE hSession, | |
667 CK_MECHANISM_PTR pMechanism, | |
668 CK_OBJECT_HANDLE hKey | |
669 ); | |
670 | |
671 /* | |
672 * NSSCKFWC_Sign | |
673 * | |
674 */ | |
675 NSS_EXTERN CK_RV | |
676 NSSCKFWC_Sign | |
677 ( | |
678 NSSCKFWInstance *fwInstance, | |
679 CK_SESSION_HANDLE hSession, | |
680 CK_BYTE_PTR pData, | |
681 CK_ULONG ulDataLen, | |
682 CK_BYTE_PTR pSignature, | |
683 CK_ULONG_PTR pulSignatureLen | |
684 ); | |
685 | |
686 /* | |
687 * NSSCKFWC_SignUpdate | |
688 * | |
689 */ | |
690 NSS_EXTERN CK_RV | |
691 NSSCKFWC_SignUpdate | |
692 ( | |
693 NSSCKFWInstance *fwInstance, | |
694 CK_SESSION_HANDLE hSession, | |
695 CK_BYTE_PTR pPart, | |
696 CK_ULONG ulPartLen | |
697 ); | |
698 | |
699 /* | |
700 * NSSCKFWC_SignFinal | |
701 * | |
702 */ | |
703 NSS_EXTERN CK_RV | |
704 NSSCKFWC_SignFinal | |
705 ( | |
706 NSSCKFWInstance *fwInstance, | |
707 CK_SESSION_HANDLE hSession, | |
708 CK_BYTE_PTR pSignature, | |
709 CK_ULONG_PTR pulSignatureLen | |
710 ); | |
711 | |
712 /* | |
713 * NSSCKFWC_SignRecoverInit | |
714 * | |
715 */ | |
716 NSS_EXTERN CK_RV | |
717 NSSCKFWC_SignRecoverInit | |
718 ( | |
719 NSSCKFWInstance *fwInstance, | |
720 CK_SESSION_HANDLE hSession, | |
721 CK_MECHANISM_PTR pMechanism, | |
722 CK_OBJECT_HANDLE hKey | |
723 ); | |
724 | |
725 /* | |
726 * NSSCKFWC_SignRecover | |
727 * | |
728 */ | |
729 NSS_EXTERN CK_RV | |
730 NSSCKFWC_SignRecover | |
731 ( | |
732 NSSCKFWInstance *fwInstance, | |
733 CK_SESSION_HANDLE hSession, | |
734 CK_BYTE_PTR pData, | |
735 CK_ULONG ulDataLen, | |
736 CK_BYTE_PTR pSignature, | |
737 CK_ULONG_PTR pulSignatureLen | |
738 ); | |
739 | |
740 /* | |
741 * NSSCKFWC_VerifyInit | |
742 * | |
743 */ | |
744 NSS_EXTERN CK_RV | |
745 NSSCKFWC_VerifyInit | |
746 ( | |
747 NSSCKFWInstance *fwInstance, | |
748 CK_SESSION_HANDLE hSession, | |
749 CK_MECHANISM_PTR pMechanism, | |
750 CK_OBJECT_HANDLE hKey | |
751 ); | |
752 | |
753 /* | |
754 * NSSCKFWC_Verify | |
755 * | |
756 */ | |
757 NSS_EXTERN CK_RV | |
758 NSSCKFWC_Verify | |
759 ( | |
760 NSSCKFWInstance *fwInstance, | |
761 CK_SESSION_HANDLE hSession, | |
762 CK_BYTE_PTR pData, | |
763 CK_ULONG ulDataLen, | |
764 CK_BYTE_PTR pSignature, | |
765 CK_ULONG ulSignatureLen | |
766 ); | |
767 | |
768 /* | |
769 * NSSCKFWC_VerifyUpdate | |
770 * | |
771 */ | |
772 NSS_EXTERN CK_RV | |
773 NSSCKFWC_VerifyUpdate | |
774 ( | |
775 NSSCKFWInstance *fwInstance, | |
776 CK_SESSION_HANDLE hSession, | |
777 CK_BYTE_PTR pPart, | |
778 CK_ULONG ulPartLen | |
779 ); | |
780 | |
781 /* | |
782 * NSSCKFWC_VerifyFinal | |
783 * | |
784 */ | |
785 NSS_EXTERN CK_RV | |
786 NSSCKFWC_VerifyFinal | |
787 ( | |
788 NSSCKFWInstance *fwInstance, | |
789 CK_SESSION_HANDLE hSession, | |
790 CK_BYTE_PTR pSignature, | |
791 CK_ULONG ulSignatureLen | |
792 ); | |
793 | |
794 /* | |
795 * NSSCKFWC_VerifyRecoverInit | |
796 * | |
797 */ | |
798 NSS_EXTERN CK_RV | |
799 NSSCKFWC_VerifyRecoverInit | |
800 ( | |
801 NSSCKFWInstance *fwInstance, | |
802 CK_SESSION_HANDLE hSession, | |
803 CK_MECHANISM_PTR pMechanism, | |
804 CK_OBJECT_HANDLE hKey | |
805 ); | |
806 | |
807 /* | |
808 * NSSCKFWC_VerifyRecover | |
809 * | |
810 */ | |
811 NSS_EXTERN CK_RV | |
812 NSSCKFWC_VerifyRecover | |
813 ( | |
814 NSSCKFWInstance *fwInstance, | |
815 CK_SESSION_HANDLE hSession, | |
816 CK_BYTE_PTR pSignature, | |
817 CK_ULONG ulSignatureLen, | |
818 CK_BYTE_PTR pData, | |
819 CK_ULONG_PTR pulDataLen | |
820 ); | |
821 | |
822 /* | |
823 * NSSCKFWC_DigestEncryptUpdate | |
824 * | |
825 */ | |
826 NSS_EXTERN CK_RV | |
827 NSSCKFWC_DigestEncryptUpdate | |
828 ( | |
829 NSSCKFWInstance *fwInstance, | |
830 CK_SESSION_HANDLE hSession, | |
831 CK_BYTE_PTR pPart, | |
832 CK_ULONG ulPartLen, | |
833 CK_BYTE_PTR pEncryptedPart, | |
834 CK_ULONG_PTR pulEncryptedPartLen | |
835 ); | |
836 | |
837 /* | |
838 * NSSCKFWC_DecryptDigestUpdate | |
839 * | |
840 */ | |
841 NSS_EXTERN CK_RV | |
842 NSSCKFWC_DecryptDigestUpdate | |
843 ( | |
844 NSSCKFWInstance *fwInstance, | |
845 CK_SESSION_HANDLE hSession, | |
846 CK_BYTE_PTR pEncryptedPart, | |
847 CK_ULONG ulEncryptedPartLen, | |
848 CK_BYTE_PTR pPart, | |
849 CK_ULONG_PTR pulPartLen | |
850 ); | |
851 | |
852 /* | |
853 * NSSCKFWC_SignEncryptUpdate | |
854 * | |
855 */ | |
856 NSS_EXTERN CK_RV | |
857 NSSCKFWC_SignEncryptUpdate | |
858 ( | |
859 NSSCKFWInstance *fwInstance, | |
860 CK_SESSION_HANDLE hSession, | |
861 CK_BYTE_PTR pPart, | |
862 CK_ULONG ulPartLen, | |
863 CK_BYTE_PTR pEncryptedPart, | |
864 CK_ULONG_PTR pulEncryptedPartLen | |
865 ); | |
866 | |
867 /* | |
868 * NSSCKFWC_DecryptVerifyUpdate | |
869 * | |
870 */ | |
871 NSS_EXTERN CK_RV | |
872 NSSCKFWC_DecryptVerifyUpdate | |
873 ( | |
874 NSSCKFWInstance *fwInstance, | |
875 CK_SESSION_HANDLE hSession, | |
876 CK_BYTE_PTR pEncryptedPart, | |
877 CK_ULONG ulEncryptedPartLen, | |
878 CK_BYTE_PTR pPart, | |
879 CK_ULONG_PTR pulPartLen | |
880 ); | |
881 | |
882 /* | |
883 * NSSCKFWC_GenerateKey | |
884 * | |
885 */ | |
886 NSS_EXTERN CK_RV | |
887 NSSCKFWC_GenerateKey | |
888 ( | |
889 NSSCKFWInstance *fwInstance, | |
890 CK_SESSION_HANDLE hSession, | |
891 CK_MECHANISM_PTR pMechanism, | |
892 CK_ATTRIBUTE_PTR pTemplate, | |
893 CK_ULONG ulCount, | |
894 CK_OBJECT_HANDLE_PTR phKey | |
895 ); | |
896 | |
897 /* | |
898 * NSSCKFWC_GenerateKeyPair | |
899 * | |
900 */ | |
901 NSS_EXTERN CK_RV | |
902 NSSCKFWC_GenerateKeyPair | |
903 ( | |
904 NSSCKFWInstance *fwInstance, | |
905 CK_SESSION_HANDLE hSession, | |
906 CK_MECHANISM_PTR pMechanism, | |
907 CK_ATTRIBUTE_PTR pPublicKeyTemplate, | |
908 CK_ULONG ulPublicKeyAttributeCount, | |
909 CK_ATTRIBUTE_PTR pPrivateKeyTemplate, | |
910 CK_ULONG ulPrivateKeyAttributeCount, | |
911 CK_OBJECT_HANDLE_PTR phPublicKey, | |
912 CK_OBJECT_HANDLE_PTR phPrivateKey | |
913 ); | |
914 | |
915 /* | |
916 * NSSCKFWC_WrapKey | |
917 * | |
918 */ | |
919 NSS_EXTERN CK_RV | |
920 NSSCKFWC_WrapKey | |
921 ( | |
922 NSSCKFWInstance *fwInstance, | |
923 CK_SESSION_HANDLE hSession, | |
924 CK_MECHANISM_PTR pMechanism, | |
925 CK_OBJECT_HANDLE hWrappingKey, | |
926 CK_OBJECT_HANDLE hKey, | |
927 CK_BYTE_PTR pWrappedKey, | |
928 CK_ULONG_PTR pulWrappedKeyLen | |
929 ); | |
930 | |
931 /* | |
932 * NSSCKFWC_UnwrapKey | |
933 * | |
934 */ | |
935 NSS_EXTERN CK_RV | |
936 NSSCKFWC_UnwrapKey | |
937 ( | |
938 NSSCKFWInstance *fwInstance, | |
939 CK_SESSION_HANDLE hSession, | |
940 CK_MECHANISM_PTR pMechanism, | |
941 CK_OBJECT_HANDLE hUnwrappingKey, | |
942 CK_BYTE_PTR pWrappedKey, | |
943 CK_ULONG ulWrappedKeyLen, | |
944 CK_ATTRIBUTE_PTR pTemplate, | |
945 CK_ULONG ulAttributeCount, | |
946 CK_OBJECT_HANDLE_PTR phKey | |
947 ); | |
948 | |
949 /* | |
950 * NSSCKFWC_DeriveKey | |
951 * | |
952 */ | |
953 NSS_EXTERN CK_RV | |
954 NSSCKFWC_DeriveKey | |
955 ( | |
956 NSSCKFWInstance *fwInstance, | |
957 CK_SESSION_HANDLE hSession, | |
958 CK_MECHANISM_PTR pMechanism, | |
959 CK_OBJECT_HANDLE hBaseKey, | |
960 CK_ATTRIBUTE_PTR pTemplate, | |
961 CK_ULONG ulAttributeCount, | |
962 CK_OBJECT_HANDLE_PTR phKey | |
963 ); | |
964 | |
965 /* | |
966 * NSSCKFWC_SeedRandom | |
967 * | |
968 */ | |
969 NSS_EXTERN CK_RV | |
970 NSSCKFWC_SeedRandom | |
971 ( | |
972 NSSCKFWInstance *fwInstance, | |
973 CK_SESSION_HANDLE hSession, | |
974 CK_BYTE_PTR pSeed, | |
975 CK_ULONG ulSeedLen | |
976 ); | |
977 | |
978 /* | |
979 * NSSCKFWC_GenerateRandom | |
980 * | |
981 */ | |
982 NSS_EXTERN CK_RV | |
983 NSSCKFWC_GenerateRandom | |
984 ( | |
985 NSSCKFWInstance *fwInstance, | |
986 CK_SESSION_HANDLE hSession, | |
987 CK_BYTE_PTR pRandomData, | |
988 CK_ULONG ulRandomLen | |
989 ); | |
990 | |
991 /* | |
992 * NSSCKFWC_GetFunctionStatus | |
993 * | |
994 */ | |
995 NSS_EXTERN CK_RV | |
996 NSSCKFWC_GetFunctionStatus | |
997 ( | |
998 NSSCKFWInstance *fwInstance, | |
999 CK_SESSION_HANDLE hSession | |
1000 ); | |
1001 | |
1002 /* | |
1003 * NSSCKFWC_CancelFunction | |
1004 * | |
1005 */ | |
1006 NSS_EXTERN CK_RV | |
1007 NSSCKFWC_CancelFunction | |
1008 ( | |
1009 NSSCKFWInstance *fwInstance, | |
1010 CK_SESSION_HANDLE hSession | |
1011 ); | |
1012 | |
1013 #endif /* NSSCKFWC_H */ |