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