security/nss/lib/ckfw/ckfw.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

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 CKFW_H
michael@0 6 #define CKFW_H
michael@0 7
michael@0 8 /*
michael@0 9 * ckfw.h
michael@0 10 *
michael@0 11 * This file prototypes the private calls of the NSS Cryptoki Framework.
michael@0 12 */
michael@0 13
michael@0 14 #ifndef NSSBASET_H
michael@0 15 #include "nssbaset.h"
michael@0 16 #endif /* NSSBASET_H */
michael@0 17
michael@0 18 #ifndef NSSCKT_H
michael@0 19 #include "nssckt.h"
michael@0 20 #endif /* NSSCKT_H */
michael@0 21
michael@0 22 #ifndef NSSCKFWT_H
michael@0 23 #include "nssckfwt.h"
michael@0 24 #endif /* NSSCKFWT_H */
michael@0 25
michael@0 26 #ifndef NSSCKMDT_H
michael@0 27 #include "nssckmdt.h"
michael@0 28 #endif /* NSSCKMDT_H */
michael@0 29
michael@0 30 /*
michael@0 31 * NSSCKFWInstance
michael@0 32 *
michael@0 33 * -- create/destroy --
michael@0 34 * nssCKFWInstance_Create
michael@0 35 * nssCKFWInstance_Destroy
michael@0 36 *
michael@0 37 * -- implement public accessors --
michael@0 38 * nssCKFWInstance_GetMDInstance
michael@0 39 * nssCKFWInstance_GetArena
michael@0 40 * nssCKFWInstance_MayCreatePthreads
michael@0 41 * nssCKFWInstance_CreateMutex
michael@0 42 * nssCKFWInstance_GetConfigurationData
michael@0 43 * nssCKFWInstance_GetInitArgs
michael@0 44 *
michael@0 45 * -- private accessors --
michael@0 46 * nssCKFWInstance_CreateSessionHandle
michael@0 47 * nssCKFWInstance_ResolveSessionHandle
michael@0 48 * nssCKFWInstance_DestroySessionHandle
michael@0 49 * nssCKFWInstance_FindSessionHandle
michael@0 50 * nssCKFWInstance_CreateObjectHandle
michael@0 51 * nssCKFWInstance_ResolveObjectHandle
michael@0 52 * nssCKFWInstance_DestroyObjectHandle
michael@0 53 * nssCKFWInstance_FindObjectHandle
michael@0 54 *
michael@0 55 * -- module fronts --
michael@0 56 * nssCKFWInstance_GetNSlots
michael@0 57 * nssCKFWInstance_GetCryptokiVersion
michael@0 58 * nssCKFWInstance_GetManufacturerID
michael@0 59 * nssCKFWInstance_GetFlags
michael@0 60 * nssCKFWInstance_GetLibraryDescription
michael@0 61 * nssCKFWInstance_GetLibraryVersion
michael@0 62 * nssCKFWInstance_GetModuleHandlesSessionObjects
michael@0 63 * nssCKFWInstance_GetSlots
michael@0 64 * nssCKFWInstance_WaitForSlotEvent
michael@0 65 *
michael@0 66 * -- debugging versions only --
michael@0 67 * nssCKFWInstance_verifyPointer
michael@0 68 */
michael@0 69
michael@0 70 /*
michael@0 71 * nssCKFWInstance_Create
michael@0 72 *
michael@0 73 */
michael@0 74 NSS_EXTERN NSSCKFWInstance *
michael@0 75 nssCKFWInstance_Create
michael@0 76 (
michael@0 77 CK_C_INITIALIZE_ARGS_PTR pInitArgs,
michael@0 78 CryptokiLockingState LockingState,
michael@0 79 NSSCKMDInstance *mdInstance,
michael@0 80 CK_RV *pError
michael@0 81 );
michael@0 82
michael@0 83 /*
michael@0 84 * nssCKFWInstance_Destroy
michael@0 85 *
michael@0 86 */
michael@0 87 NSS_EXTERN CK_RV
michael@0 88 nssCKFWInstance_Destroy
michael@0 89 (
michael@0 90 NSSCKFWInstance *fwInstance
michael@0 91 );
michael@0 92
michael@0 93 /*
michael@0 94 * nssCKFWInstance_GetMDInstance
michael@0 95 *
michael@0 96 */
michael@0 97 NSS_EXTERN NSSCKMDInstance *
michael@0 98 nssCKFWInstance_GetMDInstance
michael@0 99 (
michael@0 100 NSSCKFWInstance *fwInstance
michael@0 101 );
michael@0 102
michael@0 103 /*
michael@0 104 * nssCKFWInstance_GetArena
michael@0 105 *
michael@0 106 */
michael@0 107 NSS_EXTERN NSSArena *
michael@0 108 nssCKFWInstance_GetArena
michael@0 109 (
michael@0 110 NSSCKFWInstance *fwInstance,
michael@0 111 CK_RV *pError
michael@0 112 );
michael@0 113
michael@0 114 /*
michael@0 115 * nssCKFWInstance_MayCreatePthreads
michael@0 116 *
michael@0 117 */
michael@0 118 NSS_EXTERN CK_BBOOL
michael@0 119 nssCKFWInstance_MayCreatePthreads
michael@0 120 (
michael@0 121 NSSCKFWInstance *fwInstance
michael@0 122 );
michael@0 123
michael@0 124 /*
michael@0 125 * nssCKFWInstance_CreateMutex
michael@0 126 *
michael@0 127 */
michael@0 128 NSS_EXTERN NSSCKFWMutex *
michael@0 129 nssCKFWInstance_CreateMutex
michael@0 130 (
michael@0 131 NSSCKFWInstance *fwInstance,
michael@0 132 NSSArena *arena,
michael@0 133 CK_RV *pError
michael@0 134 );
michael@0 135
michael@0 136 /*
michael@0 137 * nssCKFWInstance_GetConfigurationData
michael@0 138 *
michael@0 139 */
michael@0 140 NSS_EXTERN NSSUTF8 *
michael@0 141 nssCKFWInstance_GetConfigurationData
michael@0 142 (
michael@0 143 NSSCKFWInstance *fwInstance
michael@0 144 );
michael@0 145
michael@0 146 /*
michael@0 147 * nssCKFWInstance_GetInitArgs
michael@0 148 *
michael@0 149 */
michael@0 150 NSS_EXTERN CK_C_INITIALIZE_ARGS_PTR
michael@0 151 nssCKFWInstance_GetInitArgs
michael@0 152 (
michael@0 153 NSSCKFWInstance *fwInstance
michael@0 154 );
michael@0 155
michael@0 156 /*
michael@0 157 * nssCKFWInstance_CreateSessionHandle
michael@0 158 *
michael@0 159 */
michael@0 160 NSS_EXTERN CK_SESSION_HANDLE
michael@0 161 nssCKFWInstance_CreateSessionHandle
michael@0 162 (
michael@0 163 NSSCKFWInstance *fwInstance,
michael@0 164 NSSCKFWSession *fwSession,
michael@0 165 CK_RV *pError
michael@0 166 );
michael@0 167
michael@0 168 /*
michael@0 169 * nssCKFWInstance_ResolveSessionHandle
michael@0 170 *
michael@0 171 */
michael@0 172 NSS_EXTERN NSSCKFWSession *
michael@0 173 nssCKFWInstance_ResolveSessionHandle
michael@0 174 (
michael@0 175 NSSCKFWInstance *fwInstance,
michael@0 176 CK_SESSION_HANDLE hSession
michael@0 177 );
michael@0 178
michael@0 179 /*
michael@0 180 * nssCKFWInstance_DestroySessionHandle
michael@0 181 *
michael@0 182 */
michael@0 183 NSS_EXTERN void
michael@0 184 nssCKFWInstance_DestroySessionHandle
michael@0 185 (
michael@0 186 NSSCKFWInstance *fwInstance,
michael@0 187 CK_SESSION_HANDLE hSession
michael@0 188 );
michael@0 189
michael@0 190 /*
michael@0 191 * nssCKFWInstance_FindSessionHandle
michael@0 192 *
michael@0 193 */
michael@0 194 NSS_EXTERN CK_SESSION_HANDLE
michael@0 195 nssCKFWInstance_FindSessionHandle
michael@0 196 (
michael@0 197 NSSCKFWInstance *fwInstance,
michael@0 198 NSSCKFWSession *fwSession
michael@0 199 );
michael@0 200
michael@0 201 /*
michael@0 202 * nssCKFWInstance_CreateObjectHandle
michael@0 203 *
michael@0 204 */
michael@0 205 NSS_EXTERN CK_OBJECT_HANDLE
michael@0 206 nssCKFWInstance_CreateObjectHandle
michael@0 207 (
michael@0 208 NSSCKFWInstance *fwInstance,
michael@0 209 NSSCKFWObject *fwObject,
michael@0 210 CK_RV *pError
michael@0 211 );
michael@0 212
michael@0 213 /*
michael@0 214 * nssCKFWInstance_ResolveObjectHandle
michael@0 215 *
michael@0 216 */
michael@0 217 NSS_EXTERN NSSCKFWObject *
michael@0 218 nssCKFWInstance_ResolveObjectHandle
michael@0 219 (
michael@0 220 NSSCKFWInstance *fwInstance,
michael@0 221 CK_OBJECT_HANDLE hObject
michael@0 222 );
michael@0 223
michael@0 224 /*
michael@0 225 * nssCKFWInstance_ReassignObjectHandle
michael@0 226 *
michael@0 227 */
michael@0 228 NSS_EXTERN CK_RV
michael@0 229 nssCKFWInstance_ReassignObjectHandle
michael@0 230 (
michael@0 231 NSSCKFWInstance *fwInstance,
michael@0 232 CK_OBJECT_HANDLE hObject,
michael@0 233 NSSCKFWObject *fwObject
michael@0 234 );
michael@0 235
michael@0 236 /*
michael@0 237 * nssCKFWInstance_DestroyObjectHandle
michael@0 238 *
michael@0 239 */
michael@0 240 NSS_EXTERN void
michael@0 241 nssCKFWInstance_DestroyObjectHandle
michael@0 242 (
michael@0 243 NSSCKFWInstance *fwInstance,
michael@0 244 CK_OBJECT_HANDLE hObject
michael@0 245 );
michael@0 246
michael@0 247 /*
michael@0 248 * nssCKFWInstance_FindObjectHandle
michael@0 249 *
michael@0 250 */
michael@0 251 NSS_EXTERN CK_OBJECT_HANDLE
michael@0 252 nssCKFWInstance_FindObjectHandle
michael@0 253 (
michael@0 254 NSSCKFWInstance *fwInstance,
michael@0 255 NSSCKFWObject *fwObject
michael@0 256 );
michael@0 257
michael@0 258 /*
michael@0 259 * nssCKFWInstance_GetNSlots
michael@0 260 *
michael@0 261 */
michael@0 262 NSS_EXTERN CK_ULONG
michael@0 263 nssCKFWInstance_GetNSlots
michael@0 264 (
michael@0 265 NSSCKFWInstance *fwInstance,
michael@0 266 CK_RV *pError
michael@0 267 );
michael@0 268
michael@0 269 /*
michael@0 270 * nssCKFWInstance_GetCryptokiVersion
michael@0 271 *
michael@0 272 */
michael@0 273 NSS_EXTERN CK_VERSION
michael@0 274 nssCKFWInstance_GetCryptokiVersion
michael@0 275 (
michael@0 276 NSSCKFWInstance *fwInstance
michael@0 277 );
michael@0 278
michael@0 279 /*
michael@0 280 * nssCKFWInstance_GetManufacturerID
michael@0 281 *
michael@0 282 */
michael@0 283 NSS_EXTERN CK_RV
michael@0 284 nssCKFWInstance_GetManufacturerID
michael@0 285 (
michael@0 286 NSSCKFWInstance *fwInstance,
michael@0 287 CK_CHAR manufacturerID[32]
michael@0 288 );
michael@0 289
michael@0 290 /*
michael@0 291 * nssCKFWInstance_GetFlags
michael@0 292 *
michael@0 293 */
michael@0 294 NSS_EXTERN CK_ULONG
michael@0 295 nssCKFWInstance_GetFlags
michael@0 296 (
michael@0 297 NSSCKFWInstance *fwInstance
michael@0 298 );
michael@0 299
michael@0 300 /*
michael@0 301 * nssCKFWInstance_GetLibraryDescription
michael@0 302 *
michael@0 303 */
michael@0 304 NSS_EXTERN CK_RV
michael@0 305 nssCKFWInstance_GetLibraryDescription
michael@0 306 (
michael@0 307 NSSCKFWInstance *fwInstance,
michael@0 308 CK_CHAR libraryDescription[32]
michael@0 309 );
michael@0 310
michael@0 311 /*
michael@0 312 * nssCKFWInstance_GetLibraryVersion
michael@0 313 *
michael@0 314 */
michael@0 315 NSS_EXTERN CK_VERSION
michael@0 316 nssCKFWInstance_GetLibraryVersion
michael@0 317 (
michael@0 318 NSSCKFWInstance *fwInstance
michael@0 319 );
michael@0 320
michael@0 321 /*
michael@0 322 * nssCKFWInstance_GetModuleHandlesSessionObjects
michael@0 323 *
michael@0 324 */
michael@0 325 NSS_EXTERN CK_BBOOL
michael@0 326 nssCKFWInstance_GetModuleHandlesSessionObjects
michael@0 327 (
michael@0 328 NSSCKFWInstance *fwInstance
michael@0 329 );
michael@0 330
michael@0 331 /*
michael@0 332 * nssCKFWInstance_GetSlots
michael@0 333 *
michael@0 334 */
michael@0 335 NSS_EXTERN NSSCKFWSlot **
michael@0 336 nssCKFWInstance_GetSlots
michael@0 337 (
michael@0 338 NSSCKFWInstance *fwInstance,
michael@0 339 CK_RV *pError
michael@0 340 );
michael@0 341
michael@0 342 /*
michael@0 343 * nssCKFWInstance_WaitForSlotEvent
michael@0 344 *
michael@0 345 */
michael@0 346 NSS_EXTERN NSSCKFWSlot *
michael@0 347 nssCKFWInstance_WaitForSlotEvent
michael@0 348 (
michael@0 349 NSSCKFWInstance *fwInstance,
michael@0 350 CK_BBOOL block,
michael@0 351 CK_RV *pError
michael@0 352 );
michael@0 353
michael@0 354 /*
michael@0 355 * nssCKFWInstance_verifyPointer
michael@0 356 *
michael@0 357 */
michael@0 358 NSS_EXTERN CK_RV
michael@0 359 nssCKFWInstance_verifyPointer
michael@0 360 (
michael@0 361 const NSSCKFWInstance *fwInstance
michael@0 362 );
michael@0 363
michael@0 364
michael@0 365 /*
michael@0 366 * NSSCKFWSlot
michael@0 367 *
michael@0 368 * -- create/destroy --
michael@0 369 * nssCKFWSlot_Create
michael@0 370 * nssCKFWSlot_Destroy
michael@0 371 *
michael@0 372 * -- implement public accessors --
michael@0 373 * nssCKFWSlot_GetMDSlot
michael@0 374 * nssCKFWSlot_GetFWInstance
michael@0 375 * nssCKFWSlot_GetMDInstance
michael@0 376 *
michael@0 377 * -- private accessors --
michael@0 378 * nssCKFWSlot_GetSlotID
michael@0 379 *
michael@0 380 * -- module fronts --
michael@0 381 * nssCKFWSlot_GetSlotDescription
michael@0 382 * nssCKFWSlot_GetManufacturerID
michael@0 383 * nssCKFWSlot_GetTokenPresent
michael@0 384 * nssCKFWSlot_GetRemovableDevice
michael@0 385 * nssCKFWSlot_GetHardwareSlot
michael@0 386 * nssCKFWSlot_GetHardwareVersion
michael@0 387 * nssCKFWSlot_GetFirmwareVersion
michael@0 388 * nssCKFWSlot_GetToken
michael@0 389 */
michael@0 390
michael@0 391 /*
michael@0 392 * nssCKFWSlot_Create
michael@0 393 *
michael@0 394 */
michael@0 395 NSS_EXTERN NSSCKFWSlot *
michael@0 396 nssCKFWSlot_Create
michael@0 397 (
michael@0 398 NSSCKFWInstance *fwInstance,
michael@0 399 NSSCKMDSlot *mdSlot,
michael@0 400 CK_SLOT_ID slotID,
michael@0 401 CK_RV *pError
michael@0 402 );
michael@0 403
michael@0 404 /*
michael@0 405 * nssCKFWSlot_Destroy
michael@0 406 *
michael@0 407 */
michael@0 408 NSS_EXTERN CK_RV
michael@0 409 nssCKFWSlot_Destroy
michael@0 410 (
michael@0 411 NSSCKFWSlot *fwSlot
michael@0 412 );
michael@0 413
michael@0 414 /*
michael@0 415 * nssCKFWSlot_GetMDSlot
michael@0 416 *
michael@0 417 */
michael@0 418 NSS_EXTERN NSSCKMDSlot *
michael@0 419 nssCKFWSlot_GetMDSlot
michael@0 420 (
michael@0 421 NSSCKFWSlot *fwSlot
michael@0 422 );
michael@0 423
michael@0 424 /*
michael@0 425 * nssCKFWSlot_GetFWInstance
michael@0 426 *
michael@0 427 */
michael@0 428
michael@0 429 NSS_EXTERN NSSCKFWInstance *
michael@0 430 nssCKFWSlot_GetFWInstance
michael@0 431 (
michael@0 432 NSSCKFWSlot *fwSlot
michael@0 433 );
michael@0 434
michael@0 435 /*
michael@0 436 * nssCKFWSlot_GetMDInstance
michael@0 437 *
michael@0 438 */
michael@0 439
michael@0 440 NSS_EXTERN NSSCKMDInstance *
michael@0 441 nssCKFWSlot_GetMDInstance
michael@0 442 (
michael@0 443 NSSCKFWSlot *fwSlot
michael@0 444 );
michael@0 445
michael@0 446 /*
michael@0 447 * nssCKFWSlot_GetSlotID
michael@0 448 *
michael@0 449 */
michael@0 450 NSS_EXTERN CK_SLOT_ID
michael@0 451 nssCKFWSlot_GetSlotID
michael@0 452 (
michael@0 453 NSSCKFWSlot *fwSlot
michael@0 454 );
michael@0 455
michael@0 456 /*
michael@0 457 * nssCKFWSlot_GetSlotDescription
michael@0 458 *
michael@0 459 */
michael@0 460 NSS_EXTERN CK_RV
michael@0 461 nssCKFWSlot_GetSlotDescription
michael@0 462 (
michael@0 463 NSSCKFWSlot *fwSlot,
michael@0 464 CK_CHAR slotDescription[64]
michael@0 465 );
michael@0 466
michael@0 467 /*
michael@0 468 * nssCKFWSlot_GetManufacturerID
michael@0 469 *
michael@0 470 */
michael@0 471 NSS_EXTERN CK_RV
michael@0 472 nssCKFWSlot_GetManufacturerID
michael@0 473 (
michael@0 474 NSSCKFWSlot *fwSlot,
michael@0 475 CK_CHAR manufacturerID[32]
michael@0 476 );
michael@0 477
michael@0 478 /*
michael@0 479 * nssCKFWSlot_GetTokenPresent
michael@0 480 *
michael@0 481 */
michael@0 482 NSS_EXTERN CK_BBOOL
michael@0 483 nssCKFWSlot_GetTokenPresent
michael@0 484 (
michael@0 485 NSSCKFWSlot *fwSlot
michael@0 486 );
michael@0 487
michael@0 488 /*
michael@0 489 * nssCKFWSlot_GetRemovableDevice
michael@0 490 *
michael@0 491 */
michael@0 492 NSS_EXTERN CK_BBOOL
michael@0 493 nssCKFWSlot_GetRemovableDevice
michael@0 494 (
michael@0 495 NSSCKFWSlot *fwSlot
michael@0 496 );
michael@0 497
michael@0 498 /*
michael@0 499 * nssCKFWSlot_GetHardwareSlot
michael@0 500 *
michael@0 501 */
michael@0 502 NSS_EXTERN CK_BBOOL
michael@0 503 nssCKFWSlot_GetHardwareSlot
michael@0 504 (
michael@0 505 NSSCKFWSlot *fwSlot
michael@0 506 );
michael@0 507
michael@0 508 /*
michael@0 509 * nssCKFWSlot_GetHardwareVersion
michael@0 510 *
michael@0 511 */
michael@0 512 NSS_EXTERN CK_VERSION
michael@0 513 nssCKFWSlot_GetHardwareVersion
michael@0 514 (
michael@0 515 NSSCKFWSlot *fwSlot
michael@0 516 );
michael@0 517
michael@0 518 /*
michael@0 519 * nssCKFWSlot_GetFirmwareVersion
michael@0 520 *
michael@0 521 */
michael@0 522 NSS_EXTERN CK_VERSION
michael@0 523 nssCKFWSlot_GetFirmwareVersion
michael@0 524 (
michael@0 525 NSSCKFWSlot *fwSlot
michael@0 526 );
michael@0 527
michael@0 528 /*
michael@0 529 * nssCKFWSlot_GetToken
michael@0 530 *
michael@0 531 */
michael@0 532 NSS_EXTERN NSSCKFWToken *
michael@0 533 nssCKFWSlot_GetToken
michael@0 534 (
michael@0 535 NSSCKFWSlot *fwSlot,
michael@0 536 CK_RV *pError
michael@0 537 );
michael@0 538
michael@0 539 /*
michael@0 540 * nssCKFWSlot_ClearToken
michael@0 541 *
michael@0 542 */
michael@0 543 NSS_EXTERN void
michael@0 544 nssCKFWSlot_ClearToken
michael@0 545 (
michael@0 546 NSSCKFWSlot *fwSlot
michael@0 547 );
michael@0 548
michael@0 549 /*
michael@0 550 * NSSCKFWToken
michael@0 551 *
michael@0 552 * -- create/destroy --
michael@0 553 * nssCKFWToken_Create
michael@0 554 * nssCKFWToken_Destroy
michael@0 555 *
michael@0 556 * -- implement public accessors --
michael@0 557 * nssCKFWToken_GetMDToken
michael@0 558 * nssCKFWToken_GetFWSlot
michael@0 559 * nssCKFWToken_GetMDSlot
michael@0 560 * nssCKFWToken_GetSessionState
michael@0 561 *
michael@0 562 * -- private accessors --
michael@0 563 * nssCKFWToken_SetSessionState
michael@0 564 * nssCKFWToken_RemoveSession
michael@0 565 * nssCKFWToken_CloseAllSessions
michael@0 566 * nssCKFWToken_GetSessionCount
michael@0 567 * nssCKFWToken_GetRwSessionCount
michael@0 568 * nssCKFWToken_GetRoSessionCount
michael@0 569 * nssCKFWToken_GetSessionObjectHash
michael@0 570 * nssCKFWToken_GetMDObjectHash
michael@0 571 * nssCKFWToken_GetObjectHandleHash
michael@0 572 *
michael@0 573 * -- module fronts --
michael@0 574 * nssCKFWToken_InitToken
michael@0 575 * nssCKFWToken_GetLabel
michael@0 576 * nssCKFWToken_GetManufacturerID
michael@0 577 * nssCKFWToken_GetModel
michael@0 578 * nssCKFWToken_GetSerialNumber
michael@0 579 * nssCKFWToken_GetHasRNG
michael@0 580 * nssCKFWToken_GetIsWriteProtected
michael@0 581 * nssCKFWToken_GetLoginRequired
michael@0 582 * nssCKFWToken_GetUserPinInitialized
michael@0 583 * nssCKFWToken_GetRestoreKeyNotNeeded
michael@0 584 * nssCKFWToken_GetHasClockOnToken
michael@0 585 * nssCKFWToken_GetHasProtectedAuthenticationPath
michael@0 586 * nssCKFWToken_GetSupportsDualCryptoOperations
michael@0 587 * nssCKFWToken_GetMaxSessionCount
michael@0 588 * nssCKFWToken_GetMaxRwSessionCount
michael@0 589 * nssCKFWToken_GetMaxPinLen
michael@0 590 * nssCKFWToken_GetMinPinLen
michael@0 591 * nssCKFWToken_GetTotalPublicMemory
michael@0 592 * nssCKFWToken_GetFreePublicMemory
michael@0 593 * nssCKFWToken_GetTotalPrivateMemory
michael@0 594 * nssCKFWToken_GetFreePrivateMemory
michael@0 595 * nssCKFWToken_GetHardwareVersion
michael@0 596 * nssCKFWToken_GetFirmwareVersion
michael@0 597 * nssCKFWToken_GetUTCTime
michael@0 598 * nssCKFWToken_OpenSession
michael@0 599 * nssCKFWToken_GetMechanismCount
michael@0 600 * nssCKFWToken_GetMechanismTypes
michael@0 601 * nssCKFWToken_GetMechanism
michael@0 602 */
michael@0 603
michael@0 604 /*
michael@0 605 * nssCKFWToken_Create
michael@0 606 *
michael@0 607 */
michael@0 608 NSS_EXTERN NSSCKFWToken *
michael@0 609 nssCKFWToken_Create
michael@0 610 (
michael@0 611 NSSCKFWSlot *fwSlot,
michael@0 612 NSSCKMDToken *mdToken,
michael@0 613 CK_RV *pError
michael@0 614 );
michael@0 615
michael@0 616 /*
michael@0 617 * nssCKFWToken_Destroy
michael@0 618 *
michael@0 619 */
michael@0 620 NSS_EXTERN CK_RV
michael@0 621 nssCKFWToken_Destroy
michael@0 622 (
michael@0 623 NSSCKFWToken *fwToken
michael@0 624 );
michael@0 625
michael@0 626 /*
michael@0 627 * nssCKFWToken_GetMDToken
michael@0 628 *
michael@0 629 */
michael@0 630 NSS_EXTERN NSSCKMDToken *
michael@0 631 nssCKFWToken_GetMDToken
michael@0 632 (
michael@0 633 NSSCKFWToken *fwToken
michael@0 634 );
michael@0 635
michael@0 636 /*
michael@0 637 * nssCKFWToken_GetArena
michael@0 638 *
michael@0 639 */
michael@0 640 NSS_EXTERN NSSArena *
michael@0 641 nssCKFWToken_GetArena
michael@0 642 (
michael@0 643 NSSCKFWToken *fwToken,
michael@0 644 CK_RV *pError
michael@0 645 );
michael@0 646
michael@0 647 /*
michael@0 648 * nssCKFWToken_GetFWSlot
michael@0 649 *
michael@0 650 */
michael@0 651 NSS_EXTERN NSSCKFWSlot *
michael@0 652 nssCKFWToken_GetFWSlot
michael@0 653 (
michael@0 654 NSSCKFWToken *fwToken
michael@0 655 );
michael@0 656
michael@0 657 /*
michael@0 658 * nssCKFWToken_GetMDSlot
michael@0 659 *
michael@0 660 */
michael@0 661 NSS_EXTERN NSSCKMDSlot *
michael@0 662 nssCKFWToken_GetMDSlot
michael@0 663 (
michael@0 664 NSSCKFWToken *fwToken
michael@0 665 );
michael@0 666
michael@0 667 /*
michael@0 668 * nssCKFWToken_GetSessionState
michael@0 669 *
michael@0 670 */
michael@0 671 NSS_EXTERN CK_STATE
michael@0 672 nssCKFWToken_GetSessionState
michael@0 673 (
michael@0 674 NSSCKFWToken *fwToken
michael@0 675 );
michael@0 676
michael@0 677 /*
michael@0 678 * nssCKFWToken_InitToken
michael@0 679 *
michael@0 680 */
michael@0 681 NSS_EXTERN CK_RV
michael@0 682 nssCKFWToken_InitToken
michael@0 683 (
michael@0 684 NSSCKFWToken *fwToken,
michael@0 685 NSSItem *pin,
michael@0 686 NSSUTF8 *label
michael@0 687 );
michael@0 688
michael@0 689 /*
michael@0 690 * nssCKFWToken_GetLabel
michael@0 691 *
michael@0 692 */
michael@0 693 NSS_EXTERN CK_RV
michael@0 694 nssCKFWToken_GetLabel
michael@0 695 (
michael@0 696 NSSCKFWToken *fwToken,
michael@0 697 CK_CHAR label[32]
michael@0 698 );
michael@0 699
michael@0 700 /*
michael@0 701 * nssCKFWToken_GetManufacturerID
michael@0 702 *
michael@0 703 */
michael@0 704 NSS_EXTERN CK_RV
michael@0 705 nssCKFWToken_GetManufacturerID
michael@0 706 (
michael@0 707 NSSCKFWToken *fwToken,
michael@0 708 CK_CHAR manufacturerID[32]
michael@0 709 );
michael@0 710
michael@0 711 /*
michael@0 712 * nssCKFWToken_GetModel
michael@0 713 *
michael@0 714 */
michael@0 715 NSS_EXTERN CK_RV
michael@0 716 nssCKFWToken_GetModel
michael@0 717 (
michael@0 718 NSSCKFWToken *fwToken,
michael@0 719 CK_CHAR model[16]
michael@0 720 );
michael@0 721
michael@0 722 /*
michael@0 723 * nssCKFWToken_GetSerialNumber
michael@0 724 *
michael@0 725 */
michael@0 726 NSS_EXTERN CK_RV
michael@0 727 nssCKFWToken_GetSerialNumber
michael@0 728 (
michael@0 729 NSSCKFWToken *fwToken,
michael@0 730 CK_CHAR serialNumber[16]
michael@0 731 );
michael@0 732
michael@0 733 /*
michael@0 734 * nssCKFWToken_GetHasRNG
michael@0 735 *
michael@0 736 */
michael@0 737 NSS_EXTERN CK_BBOOL
michael@0 738 nssCKFWToken_GetHasRNG
michael@0 739 (
michael@0 740 NSSCKFWToken *fwToken
michael@0 741 );
michael@0 742
michael@0 743 /*
michael@0 744 * nssCKFWToken_GetIsWriteProtected
michael@0 745 *
michael@0 746 */
michael@0 747 NSS_EXTERN CK_BBOOL
michael@0 748 nssCKFWToken_GetIsWriteProtected
michael@0 749 (
michael@0 750 NSSCKFWToken *fwToken
michael@0 751 );
michael@0 752
michael@0 753 /*
michael@0 754 * nssCKFWToken_GetLoginRequired
michael@0 755 *
michael@0 756 */
michael@0 757 NSS_EXTERN CK_BBOOL
michael@0 758 nssCKFWToken_GetLoginRequired
michael@0 759 (
michael@0 760 NSSCKFWToken *fwToken
michael@0 761 );
michael@0 762
michael@0 763 /*
michael@0 764 * nssCKFWToken_GetUserPinInitialized
michael@0 765 *
michael@0 766 */
michael@0 767 NSS_EXTERN CK_BBOOL
michael@0 768 nssCKFWToken_GetUserPinInitialized
michael@0 769 (
michael@0 770 NSSCKFWToken *fwToken
michael@0 771 );
michael@0 772
michael@0 773 /*
michael@0 774 * nssCKFWToken_GetRestoreKeyNotNeeded
michael@0 775 *
michael@0 776 */
michael@0 777 NSS_EXTERN CK_BBOOL
michael@0 778 nssCKFWToken_GetRestoreKeyNotNeeded
michael@0 779 (
michael@0 780 NSSCKFWToken *fwToken
michael@0 781 );
michael@0 782
michael@0 783 /*
michael@0 784 * nssCKFWToken_GetHasClockOnToken
michael@0 785 *
michael@0 786 */
michael@0 787 NSS_EXTERN CK_BBOOL
michael@0 788 nssCKFWToken_GetHasClockOnToken
michael@0 789 (
michael@0 790 NSSCKFWToken *fwToken
michael@0 791 );
michael@0 792
michael@0 793 /*
michael@0 794 * nssCKFWToken_GetHasProtectedAuthenticationPath
michael@0 795 *
michael@0 796 */
michael@0 797 NSS_EXTERN CK_BBOOL
michael@0 798 nssCKFWToken_GetHasProtectedAuthenticationPath
michael@0 799 (
michael@0 800 NSSCKFWToken *fwToken
michael@0 801 );
michael@0 802
michael@0 803 /*
michael@0 804 * nssCKFWToken_GetSupportsDualCryptoOperations
michael@0 805 *
michael@0 806 */
michael@0 807 NSS_EXTERN CK_BBOOL
michael@0 808 nssCKFWToken_GetSupportsDualCryptoOperations
michael@0 809 (
michael@0 810 NSSCKFWToken *fwToken
michael@0 811 );
michael@0 812
michael@0 813 /*
michael@0 814 * nssCKFWToken_GetMaxSessionCount
michael@0 815 *
michael@0 816 */
michael@0 817 NSS_EXTERN CK_ULONG
michael@0 818 nssCKFWToken_GetMaxSessionCount
michael@0 819 (
michael@0 820 NSSCKFWToken *fwToken
michael@0 821 );
michael@0 822
michael@0 823 /*
michael@0 824 * nssCKFWToken_GetMaxRwSessionCount
michael@0 825 *
michael@0 826 */
michael@0 827 NSS_EXTERN CK_ULONG
michael@0 828 nssCKFWToken_GetMaxRwSessionCount
michael@0 829 (
michael@0 830 NSSCKFWToken *fwToken
michael@0 831 );
michael@0 832
michael@0 833 /*
michael@0 834 * nssCKFWToken_GetMaxPinLen
michael@0 835 *
michael@0 836 */
michael@0 837 NSS_EXTERN CK_ULONG
michael@0 838 nssCKFWToken_GetMaxPinLen
michael@0 839 (
michael@0 840 NSSCKFWToken *fwToken
michael@0 841 );
michael@0 842
michael@0 843 /*
michael@0 844 * nssCKFWToken_GetMinPinLen
michael@0 845 *
michael@0 846 */
michael@0 847 NSS_EXTERN CK_ULONG
michael@0 848 nssCKFWToken_GetMinPinLen
michael@0 849 (
michael@0 850 NSSCKFWToken *fwToken
michael@0 851 );
michael@0 852
michael@0 853 /*
michael@0 854 * nssCKFWToken_GetTotalPublicMemory
michael@0 855 *
michael@0 856 */
michael@0 857 NSS_EXTERN CK_ULONG
michael@0 858 nssCKFWToken_GetTotalPublicMemory
michael@0 859 (
michael@0 860 NSSCKFWToken *fwToken
michael@0 861 );
michael@0 862
michael@0 863 /*
michael@0 864 * nssCKFWToken_GetFreePublicMemory
michael@0 865 *
michael@0 866 */
michael@0 867 NSS_EXTERN CK_ULONG
michael@0 868 nssCKFWToken_GetFreePublicMemory
michael@0 869 (
michael@0 870 NSSCKFWToken *fwToken
michael@0 871 );
michael@0 872
michael@0 873 /*
michael@0 874 * nssCKFWToken_GetTotalPrivateMemory
michael@0 875 *
michael@0 876 */
michael@0 877 NSS_EXTERN CK_ULONG
michael@0 878 nssCKFWToken_GetTotalPrivateMemory
michael@0 879 (
michael@0 880 NSSCKFWToken *fwToken
michael@0 881 );
michael@0 882
michael@0 883 /*
michael@0 884 * nssCKFWToken_GetFreePrivateMemory
michael@0 885 *
michael@0 886 */
michael@0 887 NSS_EXTERN CK_ULONG
michael@0 888 nssCKFWToken_GetFreePrivateMemory
michael@0 889 (
michael@0 890 NSSCKFWToken *fwToken
michael@0 891 );
michael@0 892
michael@0 893 /*
michael@0 894 * nssCKFWToken_GetHardwareVersion
michael@0 895 *
michael@0 896 */
michael@0 897 NSS_EXTERN CK_VERSION
michael@0 898 nssCKFWToken_GetHardwareVersion
michael@0 899 (
michael@0 900 NSSCKFWToken *fwToken
michael@0 901 );
michael@0 902
michael@0 903 /*
michael@0 904 * nssCKFWToken_GetFirmwareVersion
michael@0 905 *
michael@0 906 */
michael@0 907 NSS_EXTERN CK_VERSION
michael@0 908 nssCKFWToken_GetFirmwareVersion
michael@0 909 (
michael@0 910 NSSCKFWToken *fwToken
michael@0 911 );
michael@0 912
michael@0 913 /*
michael@0 914 * nssCKFWToken_GetUTCTime
michael@0 915 *
michael@0 916 */
michael@0 917 NSS_EXTERN CK_RV
michael@0 918 nssCKFWToken_GetUTCTime
michael@0 919 (
michael@0 920 NSSCKFWToken *fwToken,
michael@0 921 CK_CHAR utcTime[16]
michael@0 922 );
michael@0 923
michael@0 924 /*
michael@0 925 * nssCKFWToken_OpenSession
michael@0 926 *
michael@0 927 */
michael@0 928 NSS_EXTERN NSSCKFWSession *
michael@0 929 nssCKFWToken_OpenSession
michael@0 930 (
michael@0 931 NSSCKFWToken *fwToken,
michael@0 932 CK_BBOOL rw,
michael@0 933 CK_VOID_PTR pApplication,
michael@0 934 CK_NOTIFY Notify,
michael@0 935 CK_RV *pError
michael@0 936 );
michael@0 937
michael@0 938 /*
michael@0 939 * nssCKFWToken_GetMechanismCount
michael@0 940 *
michael@0 941 */
michael@0 942 NSS_EXTERN CK_ULONG
michael@0 943 nssCKFWToken_GetMechanismCount
michael@0 944 (
michael@0 945 NSSCKFWToken *fwToken
michael@0 946 );
michael@0 947
michael@0 948 /*
michael@0 949 * nssCKFWToken_GetMechanismTypes
michael@0 950 *
michael@0 951 */
michael@0 952 NSS_EXTERN CK_RV
michael@0 953 nssCKFWToken_GetMechanismTypes
michael@0 954 (
michael@0 955 NSSCKFWToken *fwToken,
michael@0 956 CK_MECHANISM_TYPE types[]
michael@0 957 );
michael@0 958
michael@0 959 /*
michael@0 960 * nssCKFWToken_GetMechanism
michael@0 961 *
michael@0 962 */
michael@0 963 NSS_EXTERN NSSCKFWMechanism *
michael@0 964 nssCKFWToken_GetMechanism
michael@0 965 (
michael@0 966 NSSCKFWToken *fwToken,
michael@0 967 CK_MECHANISM_TYPE which,
michael@0 968 CK_RV *pError
michael@0 969 );
michael@0 970
michael@0 971 /*
michael@0 972 * nssCKFWToken_SetSessionState
michael@0 973 *
michael@0 974 */
michael@0 975 NSS_EXTERN CK_RV
michael@0 976 nssCKFWToken_SetSessionState
michael@0 977 (
michael@0 978 NSSCKFWToken *fwToken,
michael@0 979 CK_STATE newState
michael@0 980 );
michael@0 981
michael@0 982 /*
michael@0 983 * nssCKFWToken_RemoveSession
michael@0 984 *
michael@0 985 */
michael@0 986 NSS_EXTERN CK_RV
michael@0 987 nssCKFWToken_RemoveSession
michael@0 988 (
michael@0 989 NSSCKFWToken *fwToken,
michael@0 990 NSSCKFWSession *fwSession
michael@0 991 );
michael@0 992
michael@0 993 /*
michael@0 994 * nssCKFWToken_CloseAllSessions
michael@0 995 *
michael@0 996 */
michael@0 997 NSS_EXTERN CK_RV
michael@0 998 nssCKFWToken_CloseAllSessions
michael@0 999 (
michael@0 1000 NSSCKFWToken *fwToken
michael@0 1001 );
michael@0 1002
michael@0 1003 /*
michael@0 1004 * nssCKFWToken_GetSessionCount
michael@0 1005 *
michael@0 1006 */
michael@0 1007 NSS_EXTERN CK_ULONG
michael@0 1008 nssCKFWToken_GetSessionCount
michael@0 1009 (
michael@0 1010 NSSCKFWToken *fwToken
michael@0 1011 );
michael@0 1012
michael@0 1013 /*
michael@0 1014 * nssCKFWToken_GetRwSessionCount
michael@0 1015 *
michael@0 1016 */
michael@0 1017 NSS_EXTERN CK_ULONG
michael@0 1018 nssCKFWToken_GetRwSessionCount
michael@0 1019 (
michael@0 1020 NSSCKFWToken *fwToken
michael@0 1021 );
michael@0 1022
michael@0 1023 /*
michael@0 1024 * nssCKFWToken_GetRoSessionCount
michael@0 1025 *
michael@0 1026 */
michael@0 1027 NSS_EXTERN CK_ULONG
michael@0 1028 nssCKFWToken_GetRoSessionCount
michael@0 1029 (
michael@0 1030 NSSCKFWToken *fwToken
michael@0 1031 );
michael@0 1032
michael@0 1033 /*
michael@0 1034 * nssCKFWToken_GetSessionObjectHash
michael@0 1035 *
michael@0 1036 */
michael@0 1037 NSS_EXTERN nssCKFWHash *
michael@0 1038 nssCKFWToken_GetSessionObjectHash
michael@0 1039 (
michael@0 1040 NSSCKFWToken *fwToken
michael@0 1041 );
michael@0 1042
michael@0 1043 /*
michael@0 1044 * nssCKFWToken_GetMDObjectHash
michael@0 1045 *
michael@0 1046 */
michael@0 1047 NSS_EXTERN nssCKFWHash *
michael@0 1048 nssCKFWToken_GetMDObjectHash
michael@0 1049 (
michael@0 1050 NSSCKFWToken *fwToken
michael@0 1051 );
michael@0 1052
michael@0 1053 /*
michael@0 1054 * nssCKFWToken_GetObjectHandleHash
michael@0 1055 *
michael@0 1056 */
michael@0 1057 NSS_EXTERN nssCKFWHash *
michael@0 1058 nssCKFWToken_GetObjectHandleHash
michael@0 1059 (
michael@0 1060 NSSCKFWToken *fwToken
michael@0 1061 );
michael@0 1062
michael@0 1063 /*
michael@0 1064 * NSSCKFWMechanism
michael@0 1065 *
michael@0 1066 * -- create/destroy --
michael@0 1067 * nssCKFWMechanism_Create
michael@0 1068 * nssCKFWMechanism_Destroy
michael@0 1069 *
michael@0 1070 * -- implement public accessors --
michael@0 1071 * nssCKFWMechanism_GetMDMechanism
michael@0 1072 *
michael@0 1073 * -- private accessors --
michael@0 1074 *
michael@0 1075 * -- module fronts --
michael@0 1076 * nssCKFWMechanism_GetMinKeySize
michael@0 1077 * nssCKFWMechanism_GetMaxKeySize
michael@0 1078 * nssCKFWMechanism_GetInHardware
michael@0 1079 * nssCKFWMechanism_GetCanEncrypt
michael@0 1080 * nssCKFWMechanism_GetCanDecrypt
michael@0 1081 * nssCKFWMechanism_GetCanDigest
michael@0 1082 * nssCKFWMechanism_GetCanSignRecover
michael@0 1083 * nssCKFWMechanism_GetCanVerify
michael@0 1084 * nssCKFWMechanism_GetCanVerifyRecover
michael@0 1085 * nssCKFWMechanism_GetCanGenerate
michael@0 1086 * nssCKFWMechanism_GetCanGenerateKeyPair
michael@0 1087 * nssCKFWMechanism_GetCanWrap
michael@0 1088 * nssCKFWMechanism_GetCanUnwrap
michael@0 1089 * nssCKFWMechanism_GetCanDerive
michael@0 1090 * nssCKFWMechanism_EncryptInit
michael@0 1091 * nssCKFWMechanism_DecryptInit
michael@0 1092 * nssCKFWMechanism_DigestInit
michael@0 1093 * nssCKFWMechanism_SignInit
michael@0 1094 * nssCKFWMechanism_SignRecoverInit
michael@0 1095 * nssCKFWMechanism_VerifyInit
michael@0 1096 * nssCKFWMechanism_VerifyRecoverInit
michael@0 1097 * nssCKFWMechanism_GenerateKey
michael@0 1098 * nssCKFWMechanism_GenerateKeyPair
michael@0 1099 * nssCKFWMechanism_GetWrapKeyLength
michael@0 1100 * nssCKFWMechanism_WrapKey
michael@0 1101 * nssCKFWMechanism_UnwrapKey
michael@0 1102 * nssCKFWMechanism_DeriveKey
michael@0 1103 */
michael@0 1104
michael@0 1105 /*
michael@0 1106 * nssCKFWMechanism_Create
michael@0 1107 *
michael@0 1108 */
michael@0 1109 NSS_EXTERN NSSCKFWMechanism *
michael@0 1110 nssCKFWMechanism_Create
michael@0 1111 (
michael@0 1112 NSSCKMDMechanism *mdMechanism,
michael@0 1113 NSSCKMDToken *mdToken,
michael@0 1114 NSSCKFWToken *fwToken,
michael@0 1115 NSSCKMDInstance *mdInstance,
michael@0 1116 NSSCKFWInstance *fwInstance
michael@0 1117 );
michael@0 1118
michael@0 1119 /*
michael@0 1120 * nssCKFWMechanism_Destroy
michael@0 1121 *
michael@0 1122 */
michael@0 1123 NSS_EXTERN void
michael@0 1124 nssCKFWMechanism_Destroy
michael@0 1125 (
michael@0 1126 NSSCKFWMechanism *fwMechanism
michael@0 1127 );
michael@0 1128
michael@0 1129 /*
michael@0 1130 * nssCKFWMechanism_GetMDMechanism
michael@0 1131 *
michael@0 1132 */
michael@0 1133
michael@0 1134 NSS_EXTERN NSSCKMDMechanism *
michael@0 1135 nssCKFWMechanism_GetMDMechanism
michael@0 1136 (
michael@0 1137 NSSCKFWMechanism *fwMechanism
michael@0 1138 );
michael@0 1139
michael@0 1140 /*
michael@0 1141 * nssCKFWMechanism_GetMinKeySize
michael@0 1142 *
michael@0 1143 */
michael@0 1144 NSS_EXTERN CK_ULONG
michael@0 1145 nssCKFWMechanism_GetMinKeySize
michael@0 1146 (
michael@0 1147 NSSCKFWMechanism *fwMechanism,
michael@0 1148 CK_RV *pError
michael@0 1149 );
michael@0 1150
michael@0 1151 /*
michael@0 1152 * nssCKFWMechanism_GetMaxKeySize
michael@0 1153 *
michael@0 1154 */
michael@0 1155 NSS_EXTERN CK_ULONG
michael@0 1156 nssCKFWMechanism_GetMaxKeySize
michael@0 1157 (
michael@0 1158 NSSCKFWMechanism *fwMechanism,
michael@0 1159 CK_RV *pError
michael@0 1160 );
michael@0 1161
michael@0 1162 /*
michael@0 1163 * nssCKFWMechanism_GetInHardware
michael@0 1164 *
michael@0 1165 */
michael@0 1166 NSS_EXTERN CK_BBOOL
michael@0 1167 nssCKFWMechanism_GetInHardware
michael@0 1168 (
michael@0 1169 NSSCKFWMechanism *fwMechanism,
michael@0 1170 CK_RV *pError
michael@0 1171 );
michael@0 1172
michael@0 1173 /*
michael@0 1174 * the following are determined automatically by which of the cryptographic
michael@0 1175 * functions are defined for this mechanism.
michael@0 1176 */
michael@0 1177 /*
michael@0 1178 * nssCKFWMechanism_GetCanEncrypt
michael@0 1179 *
michael@0 1180 */
michael@0 1181 NSS_EXTERN CK_BBOOL
michael@0 1182 nssCKFWMechanism_GetCanEncrypt
michael@0 1183 (
michael@0 1184 NSSCKFWMechanism *fwMechanism,
michael@0 1185 CK_RV *pError
michael@0 1186 );
michael@0 1187
michael@0 1188 /*
michael@0 1189 * nssCKFWMechanism_GetCanDecrypt
michael@0 1190 *
michael@0 1191 */
michael@0 1192 NSS_EXTERN CK_BBOOL
michael@0 1193 nssCKFWMechanism_GetCanDecrypt
michael@0 1194 (
michael@0 1195 NSSCKFWMechanism *fwMechanism,
michael@0 1196 CK_RV *pError
michael@0 1197 );
michael@0 1198
michael@0 1199 /*
michael@0 1200 * nssCKFWMechanism_GetCanDigest
michael@0 1201 *
michael@0 1202 */
michael@0 1203 NSS_EXTERN CK_BBOOL
michael@0 1204 nssCKFWMechanism_GetCanDigest
michael@0 1205 (
michael@0 1206 NSSCKFWMechanism *fwMechanism,
michael@0 1207 CK_RV *pError
michael@0 1208 );
michael@0 1209
michael@0 1210 /*
michael@0 1211 * nssCKFWMechanism_GetCanSign
michael@0 1212 *
michael@0 1213 */
michael@0 1214 NSS_EXTERN CK_BBOOL
michael@0 1215 nssCKFWMechanism_GetCanSign
michael@0 1216 (
michael@0 1217 NSSCKFWMechanism *fwMechanism,
michael@0 1218 CK_RV *pError
michael@0 1219 );
michael@0 1220
michael@0 1221 /*
michael@0 1222 * nssCKFWMechanism_GetCanSignRecover
michael@0 1223 *
michael@0 1224 */
michael@0 1225 NSS_EXTERN CK_BBOOL
michael@0 1226 nssCKFWMechanism_GetCanSignRecover
michael@0 1227 (
michael@0 1228 NSSCKFWMechanism *fwMechanism,
michael@0 1229 CK_RV *pError
michael@0 1230 );
michael@0 1231
michael@0 1232 /*
michael@0 1233 * nssCKFWMechanism_GetCanVerify
michael@0 1234 *
michael@0 1235 */
michael@0 1236 NSS_EXTERN CK_BBOOL
michael@0 1237 nssCKFWMechanism_GetCanVerify
michael@0 1238 (
michael@0 1239 NSSCKFWMechanism *fwMechanism,
michael@0 1240 CK_RV *pError
michael@0 1241 );
michael@0 1242
michael@0 1243 /*
michael@0 1244 * nssCKFWMechanism_GetCanVerifyRecover
michael@0 1245 *
michael@0 1246 */
michael@0 1247 NSS_EXTERN CK_BBOOL
michael@0 1248 nssCKFWMechanism_GetCanVerifyRecover
michael@0 1249 (
michael@0 1250 NSSCKFWMechanism *fwMechanism,
michael@0 1251 CK_RV *pError
michael@0 1252 );
michael@0 1253
michael@0 1254 /*
michael@0 1255 * nssCKFWMechanism_GetCanGenerate
michael@0 1256 *
michael@0 1257 */
michael@0 1258 NSS_EXTERN CK_BBOOL
michael@0 1259 nssCKFWMechanism_GetCanGenerate
michael@0 1260 (
michael@0 1261 NSSCKFWMechanism *fwMechanism,
michael@0 1262 CK_RV *pError
michael@0 1263 );
michael@0 1264
michael@0 1265 /*
michael@0 1266 * nssCKFWMechanism_GetCanGenerateKeyPair
michael@0 1267 *
michael@0 1268 */
michael@0 1269 NSS_EXTERN CK_BBOOL
michael@0 1270 nssCKFWMechanism_GetCanGenerateKeyPair
michael@0 1271 (
michael@0 1272 NSSCKFWMechanism *fwMechanism,
michael@0 1273 CK_RV *pError
michael@0 1274 );
michael@0 1275
michael@0 1276 /*
michael@0 1277 * nssCKFWMechanism_GetCanWrap
michael@0 1278 *
michael@0 1279 */
michael@0 1280 NSS_EXTERN CK_BBOOL
michael@0 1281 nssCKFWMechanism_GetCanWrap
michael@0 1282 (
michael@0 1283 NSSCKFWMechanism *fwMechanism,
michael@0 1284 CK_RV *pError
michael@0 1285 );
michael@0 1286
michael@0 1287 /*
michael@0 1288 * nssCKFWMechanism_GetCanUnwrap
michael@0 1289 *
michael@0 1290 */
michael@0 1291 NSS_EXTERN CK_BBOOL
michael@0 1292 nssCKFWMechanism_GetCanUnwrap
michael@0 1293 (
michael@0 1294 NSSCKFWMechanism *fwMechanism,
michael@0 1295 CK_RV *pError
michael@0 1296 );
michael@0 1297
michael@0 1298 /*
michael@0 1299 * nssCKFWMechanism_GetCanDerive
michael@0 1300 *
michael@0 1301 */
michael@0 1302 NSS_EXTERN CK_BBOOL
michael@0 1303 nssCKFWMechanism_GetCanDerive
michael@0 1304 (
michael@0 1305 NSSCKFWMechanism *fwMechanism,
michael@0 1306 CK_RV *pError
michael@0 1307 );
michael@0 1308
michael@0 1309 /*
michael@0 1310 * nssCKFWMechanism_EncryptInit
michael@0 1311 */
michael@0 1312 NSS_EXTERN CK_RV
michael@0 1313 nssCKFWMechanism_EncryptInit
michael@0 1314 (
michael@0 1315 NSSCKFWMechanism *fwMechanism,
michael@0 1316 CK_MECHANISM *pMechanism,
michael@0 1317 NSSCKFWSession *fwSession,
michael@0 1318 NSSCKFWObject *fwObject
michael@0 1319 );
michael@0 1320
michael@0 1321 /*
michael@0 1322 * nssCKFWMechanism_DecryptInit
michael@0 1323 */
michael@0 1324 NSS_EXTERN CK_RV
michael@0 1325 nssCKFWMechanism_DecryptInit
michael@0 1326 (
michael@0 1327 NSSCKFWMechanism *fwMechanism,
michael@0 1328 CK_MECHANISM *pMechanism,
michael@0 1329 NSSCKFWSession *fwSession,
michael@0 1330 NSSCKFWObject *fwObject
michael@0 1331 );
michael@0 1332
michael@0 1333 /*
michael@0 1334 * nssCKFWMechanism_DigestInit
michael@0 1335 */
michael@0 1336 NSS_EXTERN CK_RV
michael@0 1337 nssCKFWMechanism_DigestInit
michael@0 1338 (
michael@0 1339 NSSCKFWMechanism *fwMechanism,
michael@0 1340 CK_MECHANISM *pMechanism,
michael@0 1341 NSSCKFWSession *fwSession
michael@0 1342 );
michael@0 1343
michael@0 1344 /*
michael@0 1345 * nssCKFWMechanism_SignInit
michael@0 1346 */
michael@0 1347 NSS_EXTERN CK_RV
michael@0 1348 nssCKFWMechanism_SignInit
michael@0 1349 (
michael@0 1350 NSSCKFWMechanism *fwMechanism,
michael@0 1351 CK_MECHANISM *pMechanism,
michael@0 1352 NSSCKFWSession *fwSession,
michael@0 1353 NSSCKFWObject *fwObject
michael@0 1354 );
michael@0 1355
michael@0 1356 /*
michael@0 1357 * nssCKFWMechanism_SignRecoverInit
michael@0 1358 */
michael@0 1359 NSS_EXTERN CK_RV
michael@0 1360 nssCKFWMechanism_SignRecoverInit
michael@0 1361 (
michael@0 1362 NSSCKFWMechanism *fwMechanism,
michael@0 1363 CK_MECHANISM *pMechanism,
michael@0 1364 NSSCKFWSession *fwSession,
michael@0 1365 NSSCKFWObject *fwObject
michael@0 1366 );
michael@0 1367
michael@0 1368 /*
michael@0 1369 * nssCKFWMechanism_VerifyInit
michael@0 1370 */
michael@0 1371 NSS_EXTERN CK_RV
michael@0 1372 nssCKFWMechanism_VerifyInit
michael@0 1373 (
michael@0 1374 NSSCKFWMechanism *fwMechanism,
michael@0 1375 CK_MECHANISM *pMechanism,
michael@0 1376 NSSCKFWSession *fwSession,
michael@0 1377 NSSCKFWObject *fwObject
michael@0 1378 );
michael@0 1379
michael@0 1380 /*
michael@0 1381 * nssCKFWMechanism_VerifyRecoverInit
michael@0 1382 */
michael@0 1383 NSS_EXTERN CK_RV
michael@0 1384 nssCKFWMechanism_VerifyRecoverInit
michael@0 1385 (
michael@0 1386 NSSCKFWMechanism *fwMechanism,
michael@0 1387 CK_MECHANISM *pMechanism,
michael@0 1388 NSSCKFWSession *fwSession,
michael@0 1389 NSSCKFWObject *fwObject
michael@0 1390 );
michael@0 1391
michael@0 1392 /*
michael@0 1393 * nssCKFWMechanism_GenerateKey
michael@0 1394 */
michael@0 1395 NSS_EXTERN NSSCKFWObject *
michael@0 1396 nssCKFWMechanism_GenerateKey
michael@0 1397 (
michael@0 1398 NSSCKFWMechanism *fwMechanism,
michael@0 1399 CK_MECHANISM_PTR pMechanism,
michael@0 1400 NSSCKFWSession *fwSession,
michael@0 1401 CK_ATTRIBUTE_PTR pTemplate,
michael@0 1402 CK_ULONG ulAttributeCount,
michael@0 1403 CK_RV *pError
michael@0 1404 );
michael@0 1405
michael@0 1406 /*
michael@0 1407 * nssCKFWMechanism_GenerateKeyPair
michael@0 1408 */
michael@0 1409 NSS_EXTERN CK_RV
michael@0 1410 nssCKFWMechanism_GenerateKeyPair
michael@0 1411 (
michael@0 1412 NSSCKFWMechanism *fwMechanism,
michael@0 1413 CK_MECHANISM_PTR pMechanism,
michael@0 1414 NSSCKFWSession *fwSession,
michael@0 1415 CK_ATTRIBUTE_PTR pPublicKeyTemplate,
michael@0 1416 CK_ULONG ulPublicKeyAttributeCount,
michael@0 1417 CK_ATTRIBUTE_PTR pPrivateKeyTemplate,
michael@0 1418 CK_ULONG ulPrivateKeyAttributeCount,
michael@0 1419 NSSCKFWObject **fwPublicKeyObject,
michael@0 1420 NSSCKFWObject **fwPrivateKeyObject
michael@0 1421 );
michael@0 1422
michael@0 1423 /*
michael@0 1424 * nssCKFWMechanism_GetWrapKeyLength
michael@0 1425 */
michael@0 1426 NSS_EXTERN CK_ULONG
michael@0 1427 nssCKFWMechanism_GetWrapKeyLength
michael@0 1428 (
michael@0 1429 NSSCKFWMechanism *fwMechanism,
michael@0 1430 CK_MECHANISM_PTR pMechanism,
michael@0 1431 NSSCKFWSession *fwSession,
michael@0 1432 NSSCKFWObject *fwWrappingKeyObject,
michael@0 1433 NSSCKFWObject *fwObject,
michael@0 1434 CK_RV *pError
michael@0 1435 );
michael@0 1436
michael@0 1437 /*
michael@0 1438 * nssCKFWMechanism_WrapKey
michael@0 1439 */
michael@0 1440 NSS_EXTERN CK_RV
michael@0 1441 nssCKFWMechanism_WrapKey
michael@0 1442 (
michael@0 1443 NSSCKFWMechanism *fwMechanism,
michael@0 1444 CK_MECHANISM_PTR pMechanism,
michael@0 1445 NSSCKFWSession *fwSession,
michael@0 1446 NSSCKFWObject *fwWrappingKeyObject,
michael@0 1447 NSSCKFWObject *fwObject,
michael@0 1448 NSSItem *wrappedKey
michael@0 1449 );
michael@0 1450
michael@0 1451 /*
michael@0 1452 * nssCKFWMechanism_UnwrapKey
michael@0 1453 */
michael@0 1454 NSS_EXTERN NSSCKFWObject *
michael@0 1455 nssCKFWMechanism_UnwrapKey
michael@0 1456 (
michael@0 1457 NSSCKFWMechanism *fwMechanism,
michael@0 1458 CK_MECHANISM_PTR pMechanism,
michael@0 1459 NSSCKFWSession *fwSession,
michael@0 1460 NSSCKFWObject *fwWrappingKeyObject,
michael@0 1461 NSSItem *wrappedKey,
michael@0 1462 CK_ATTRIBUTE_PTR pTemplate,
michael@0 1463 CK_ULONG ulAttributeCount,
michael@0 1464 CK_RV *pError
michael@0 1465 );
michael@0 1466
michael@0 1467 /*
michael@0 1468 * nssCKFWMechanism_DeriveKey
michael@0 1469 */
michael@0 1470 NSS_EXTERN NSSCKFWObject *
michael@0 1471 nssCKFWMechanism_DeriveKey
michael@0 1472 (
michael@0 1473 NSSCKFWMechanism *fwMechanism,
michael@0 1474 CK_MECHANISM_PTR pMechanism,
michael@0 1475 NSSCKFWSession *fwSession,
michael@0 1476 NSSCKFWObject *fwBaseKeyObject,
michael@0 1477 CK_ATTRIBUTE_PTR pTemplate,
michael@0 1478 CK_ULONG ulAttributeCount,
michael@0 1479 CK_RV *pError
michael@0 1480 );
michael@0 1481
michael@0 1482 /*
michael@0 1483 * NSSCKFWCryptoOperation
michael@0 1484 *
michael@0 1485 * -- create/destroy --
michael@0 1486 * nssCKFWCryptoOperation_Create
michael@0 1487 * nssCKFWCryptoOperation_Destroy
michael@0 1488 *
michael@0 1489 * -- implement public accessors --
michael@0 1490 * nssCKFWCryptoOperation_GetMDCryptoOperation
michael@0 1491 * nssCKFWCryptoOperation_GetType
michael@0 1492 *
michael@0 1493 * -- private accessors --
michael@0 1494 *
michael@0 1495 * -- module fronts --
michael@0 1496 * nssCKFWCryptoOperation_GetFinalLength
michael@0 1497 * nssCKFWCryptoOperation_GetOperationLength
michael@0 1498 * nssCKFWCryptoOperation_Final
michael@0 1499 * nssCKFWCryptoOperation_Update
michael@0 1500 * nssCKFWCryptoOperation_DigestUpdate
michael@0 1501 * nssCKFWCryptoOperation_DigestKey
michael@0 1502 * nssCKFWCryptoOperation_UpdateFinal
michael@0 1503 */
michael@0 1504
michael@0 1505 /*
michael@0 1506 * nssCKFWCrytoOperation_Create
michael@0 1507 */
michael@0 1508 NSS_EXTERN NSSCKFWCryptoOperation *
michael@0 1509 nssCKFWCryptoOperation_Create
michael@0 1510 (
michael@0 1511 NSSCKMDCryptoOperation *mdOperation,
michael@0 1512 NSSCKMDSession *mdSession,
michael@0 1513 NSSCKFWSession *fwSession,
michael@0 1514 NSSCKMDToken *mdToken,
michael@0 1515 NSSCKFWToken *fwToken,
michael@0 1516 NSSCKMDInstance *mdInstance,
michael@0 1517 NSSCKFWInstance *fwInstance,
michael@0 1518 NSSCKFWCryptoOperationType type,
michael@0 1519 CK_RV *pError
michael@0 1520 );
michael@0 1521
michael@0 1522 /*
michael@0 1523 * nssCKFWCryptoOperation_Destroy
michael@0 1524 */
michael@0 1525 NSS_EXTERN void
michael@0 1526 nssCKFWCryptoOperation_Destroy
michael@0 1527 (
michael@0 1528 NSSCKFWCryptoOperation *fwOperation
michael@0 1529 );
michael@0 1530
michael@0 1531 /*
michael@0 1532 * nssCKFWCryptoOperation_GetMDCryptoOperation
michael@0 1533 */
michael@0 1534 NSS_EXTERN NSSCKMDCryptoOperation *
michael@0 1535 nssCKFWCryptoOperation_GetMDCryptoOperation
michael@0 1536 (
michael@0 1537 NSSCKFWCryptoOperation *fwOperation
michael@0 1538 );
michael@0 1539
michael@0 1540 /*
michael@0 1541 * nssCKFWCryptoOperation_GetType
michael@0 1542 */
michael@0 1543 NSS_EXTERN NSSCKFWCryptoOperationType
michael@0 1544 nssCKFWCryptoOperation_GetType
michael@0 1545 (
michael@0 1546 NSSCKFWCryptoOperation *fwOperation
michael@0 1547 );
michael@0 1548
michael@0 1549 /*
michael@0 1550 * nssCKFWCryptoOperation_GetFinalLength
michael@0 1551 */
michael@0 1552 NSS_EXTERN CK_ULONG
michael@0 1553 nssCKFWCryptoOperation_GetFinalLength
michael@0 1554 (
michael@0 1555 NSSCKFWCryptoOperation *fwOperation,
michael@0 1556 CK_RV *pError
michael@0 1557 );
michael@0 1558
michael@0 1559 /*
michael@0 1560 * nssCKFWCryptoOperation_GetOperationLength
michael@0 1561 */
michael@0 1562 NSS_EXTERN CK_ULONG
michael@0 1563 nssCKFWCryptoOperation_GetOperationLength
michael@0 1564 (
michael@0 1565 NSSCKFWCryptoOperation *fwOperation,
michael@0 1566 NSSItem *inputBuffer,
michael@0 1567 CK_RV *pError
michael@0 1568 );
michael@0 1569
michael@0 1570 /*
michael@0 1571 * nssCKFWCryptoOperation_Final
michael@0 1572 */
michael@0 1573 NSS_EXTERN CK_RV
michael@0 1574 nssCKFWCryptoOperation_Final
michael@0 1575 (
michael@0 1576 NSSCKFWCryptoOperation *fwOperation,
michael@0 1577 NSSItem *outputBuffer
michael@0 1578 );
michael@0 1579
michael@0 1580 /*
michael@0 1581 * nssCKFWCryptoOperation_Update
michael@0 1582 */
michael@0 1583 NSS_EXTERN CK_RV
michael@0 1584 nssCKFWCryptoOperation_Update
michael@0 1585 (
michael@0 1586 NSSCKFWCryptoOperation *fwOperation,
michael@0 1587 NSSItem *inputBuffer,
michael@0 1588 NSSItem *outputBuffer
michael@0 1589 );
michael@0 1590
michael@0 1591 /*
michael@0 1592 * nssCKFWCryptoOperation_DigestUpdate
michael@0 1593 */
michael@0 1594 NSS_EXTERN CK_RV
michael@0 1595 nssCKFWCryptoOperation_DigestUpdate
michael@0 1596 (
michael@0 1597 NSSCKFWCryptoOperation *fwOperation,
michael@0 1598 NSSItem *inputBuffer
michael@0 1599 );
michael@0 1600
michael@0 1601 /*
michael@0 1602 * nssCKFWCryptoOperation_DigestKey
michael@0 1603 */
michael@0 1604 NSS_EXTERN CK_RV
michael@0 1605 nssCKFWCryptoOperation_DigestKey
michael@0 1606 (
michael@0 1607 NSSCKFWCryptoOperation *fwOperation,
michael@0 1608 NSSCKFWObject *fwKey
michael@0 1609 );
michael@0 1610
michael@0 1611 /*
michael@0 1612 * nssCKFWCryptoOperation_UpdateFinal
michael@0 1613 */
michael@0 1614 NSS_EXTERN CK_RV
michael@0 1615 nssCKFWCryptoOperation_UpdateFinal
michael@0 1616 (
michael@0 1617 NSSCKFWCryptoOperation *fwOperation,
michael@0 1618 NSSItem *inputBuffer,
michael@0 1619 NSSItem *outputBuffer
michael@0 1620 );
michael@0 1621
michael@0 1622 /*
michael@0 1623 * nssCKFWCryptoOperation_UpdateCombo
michael@0 1624 */
michael@0 1625 NSS_EXTERN CK_RV
michael@0 1626 nssCKFWCryptoOperation_UpdateCombo
michael@0 1627 (
michael@0 1628 NSSCKFWCryptoOperation *fwOperation,
michael@0 1629 NSSCKFWCryptoOperation *fwPeerOperation,
michael@0 1630 NSSItem *inputBuffer,
michael@0 1631 NSSItem *outputBuffer
michael@0 1632 );
michael@0 1633
michael@0 1634 /*
michael@0 1635 * NSSCKFWSession
michael@0 1636 *
michael@0 1637 * -- create/destroy --
michael@0 1638 * nssCKFWSession_Create
michael@0 1639 * nssCKFWSession_Destroy
michael@0 1640 *
michael@0 1641 * -- implement public accessors --
michael@0 1642 * nssCKFWSession_GetMDSession
michael@0 1643 * nssCKFWSession_GetArena
michael@0 1644 * nssCKFWSession_CallNotification
michael@0 1645 * nssCKFWSession_IsRWSession
michael@0 1646 * nssCKFWSession_IsSO
michael@0 1647 * nssCKFWSession_GetCurrentCryptoOperation
michael@0 1648 *
michael@0 1649 * -- private accessors --
michael@0 1650 * nssCKFWSession_GetFWSlot
michael@0 1651 * nssCKFWSession_GetSessionState
michael@0 1652 * nssCKFWSession_SetFWFindObjects
michael@0 1653 * nssCKFWSession_GetFWFindObjects
michael@0 1654 * nssCKFWSession_SetMDSession
michael@0 1655 * nssCKFWSession_SetHandle
michael@0 1656 * nssCKFWSession_GetHandle
michael@0 1657 * nssCKFWSession_RegisterSessionObject
michael@0 1658 * nssCKFWSession_DeregisterSessionObject
michael@0 1659 * nssCKFWSession_SetCurrentCryptoOperation
michael@0 1660 *
michael@0 1661 * -- module fronts --
michael@0 1662 * nssCKFWSession_GetDeviceError
michael@0 1663 * nssCKFWSession_Login
michael@0 1664 * nssCKFWSession_Logout
michael@0 1665 * nssCKFWSession_InitPIN
michael@0 1666 * nssCKFWSession_SetPIN
michael@0 1667 * nssCKFWSession_GetOperationStateLen
michael@0 1668 * nssCKFWSession_GetOperationState
michael@0 1669 * nssCKFWSession_SetOperationState
michael@0 1670 * nssCKFWSession_CreateObject
michael@0 1671 * nssCKFWSession_CopyObject
michael@0 1672 * nssCKFWSession_FindObjectsInit
michael@0 1673 * nssCKFWSession_SeedRandom
michael@0 1674 * nssCKFWSession_GetRandom
michael@0 1675 * nssCKFWSession_Final
michael@0 1676 * nssCKFWSession_Update
michael@0 1677 * nssCKFWSession_DigestUpdate
michael@0 1678 * nssCKFWSession_DigestKey
michael@0 1679 * nssCKFWSession_UpdateFinal
michael@0 1680 * nssCKFWSession_UpdateCombo
michael@0 1681 */
michael@0 1682
michael@0 1683 /*
michael@0 1684 * nssCKFWSession_Create
michael@0 1685 *
michael@0 1686 */
michael@0 1687 NSS_EXTERN NSSCKFWSession *
michael@0 1688 nssCKFWSession_Create
michael@0 1689 (
michael@0 1690 NSSCKFWToken *fwToken,
michael@0 1691 CK_BBOOL rw,
michael@0 1692 CK_VOID_PTR pApplication,
michael@0 1693 CK_NOTIFY Notify,
michael@0 1694 CK_RV *pError
michael@0 1695 );
michael@0 1696
michael@0 1697 /*
michael@0 1698 * nssCKFWSession_Destroy
michael@0 1699 *
michael@0 1700 */
michael@0 1701 NSS_EXTERN CK_RV
michael@0 1702 nssCKFWSession_Destroy
michael@0 1703 (
michael@0 1704 NSSCKFWSession *fwSession,
michael@0 1705 CK_BBOOL removeFromTokenHash
michael@0 1706 );
michael@0 1707
michael@0 1708 /*
michael@0 1709 * nssCKFWSession_GetMDSession
michael@0 1710 *
michael@0 1711 */
michael@0 1712 NSS_EXTERN NSSCKMDSession *
michael@0 1713 nssCKFWSession_GetMDSession
michael@0 1714 (
michael@0 1715 NSSCKFWSession *fwSession
michael@0 1716 );
michael@0 1717
michael@0 1718 /*
michael@0 1719 * nssCKFWSession_GetArena
michael@0 1720 *
michael@0 1721 */
michael@0 1722 NSS_EXTERN NSSArena *
michael@0 1723 nssCKFWSession_GetArena
michael@0 1724 (
michael@0 1725 NSSCKFWSession *fwSession,
michael@0 1726 CK_RV *pError
michael@0 1727 );
michael@0 1728
michael@0 1729 /*
michael@0 1730 * nssCKFWSession_CallNotification
michael@0 1731 *
michael@0 1732 */
michael@0 1733 NSS_EXTERN CK_RV
michael@0 1734 nssCKFWSession_CallNotification
michael@0 1735 (
michael@0 1736 NSSCKFWSession *fwSession,
michael@0 1737 CK_NOTIFICATION event
michael@0 1738 );
michael@0 1739
michael@0 1740 /*
michael@0 1741 * nssCKFWSession_IsRWSession
michael@0 1742 *
michael@0 1743 */
michael@0 1744 NSS_EXTERN CK_BBOOL
michael@0 1745 nssCKFWSession_IsRWSession
michael@0 1746 (
michael@0 1747 NSSCKFWSession *fwSession
michael@0 1748 );
michael@0 1749
michael@0 1750 /*
michael@0 1751 * nssCKFWSession_IsSO
michael@0 1752 *
michael@0 1753 */
michael@0 1754 NSS_EXTERN CK_BBOOL
michael@0 1755 nssCKFWSession_IsSO
michael@0 1756 (
michael@0 1757 NSSCKFWSession *fwSession
michael@0 1758 );
michael@0 1759
michael@0 1760 /*
michael@0 1761 * nssCKFWSession_GetFWSlot
michael@0 1762 *
michael@0 1763 */
michael@0 1764 NSS_EXTERN NSSCKFWSlot *
michael@0 1765 nssCKFWSession_GetFWSlot
michael@0 1766 (
michael@0 1767 NSSCKFWSession *fwSession
michael@0 1768 );
michael@0 1769
michael@0 1770 /*
michael@0 1771 * nssCFKWSession_GetSessionState
michael@0 1772 *
michael@0 1773 */
michael@0 1774 NSS_EXTERN CK_STATE
michael@0 1775 nssCKFWSession_GetSessionState
michael@0 1776 (
michael@0 1777 NSSCKFWSession *fwSession
michael@0 1778 );
michael@0 1779
michael@0 1780 /*
michael@0 1781 * nssCKFWSession_SetFWFindObjects
michael@0 1782 *
michael@0 1783 */
michael@0 1784 NSS_EXTERN CK_RV
michael@0 1785 nssCKFWSession_SetFWFindObjects
michael@0 1786 (
michael@0 1787 NSSCKFWSession *fwSession,
michael@0 1788 NSSCKFWFindObjects *fwFindObjects
michael@0 1789 );
michael@0 1790
michael@0 1791 /*
michael@0 1792 * nssCKFWSession_GetFWFindObjects
michael@0 1793 *
michael@0 1794 */
michael@0 1795 NSS_EXTERN NSSCKFWFindObjects *
michael@0 1796 nssCKFWSession_GetFWFindObjects
michael@0 1797 (
michael@0 1798 NSSCKFWSession *fwSesssion,
michael@0 1799 CK_RV *pError
michael@0 1800 );
michael@0 1801
michael@0 1802 /*
michael@0 1803 * nssCKFWSession_SetMDSession
michael@0 1804 *
michael@0 1805 */
michael@0 1806 NSS_EXTERN CK_RV
michael@0 1807 nssCKFWSession_SetMDSession
michael@0 1808 (
michael@0 1809 NSSCKFWSession *fwSession,
michael@0 1810 NSSCKMDSession *mdSession
michael@0 1811 );
michael@0 1812
michael@0 1813 /*
michael@0 1814 * nssCKFWSession_SetHandle
michael@0 1815 *
michael@0 1816 */
michael@0 1817 NSS_EXTERN CK_RV
michael@0 1818 nssCKFWSession_SetHandle
michael@0 1819 (
michael@0 1820 NSSCKFWSession *fwSession,
michael@0 1821 CK_SESSION_HANDLE hSession
michael@0 1822 );
michael@0 1823
michael@0 1824 /*
michael@0 1825 * nssCKFWSession_GetHandle
michael@0 1826 *
michael@0 1827 */
michael@0 1828 NSS_EXTERN CK_SESSION_HANDLE
michael@0 1829 nssCKFWSession_GetHandle
michael@0 1830 (
michael@0 1831 NSSCKFWSession *fwSession
michael@0 1832 );
michael@0 1833
michael@0 1834 /*
michael@0 1835 * nssCKFWSession_RegisterSessionObject
michael@0 1836 *
michael@0 1837 */
michael@0 1838 NSS_EXTERN CK_RV
michael@0 1839 nssCKFWSession_RegisterSessionObject
michael@0 1840 (
michael@0 1841 NSSCKFWSession *fwSession,
michael@0 1842 NSSCKFWObject *fwObject
michael@0 1843 );
michael@0 1844
michael@0 1845 /*
michael@0 1846 * nssCKFWSession_DeregisterSessionObject
michael@0 1847 *
michael@0 1848 */
michael@0 1849 NSS_EXTERN CK_RV
michael@0 1850 nssCKFWSession_DeregisterSessionObject
michael@0 1851 (
michael@0 1852 NSSCKFWSession *fwSession,
michael@0 1853 NSSCKFWObject *fwObject
michael@0 1854 );
michael@0 1855
michael@0 1856 /*
michael@0 1857 * nssCKFWSession_GetDeviceError
michael@0 1858 *
michael@0 1859 */
michael@0 1860 NSS_EXTERN CK_ULONG
michael@0 1861 nssCKFWSession_GetDeviceError
michael@0 1862 (
michael@0 1863 NSSCKFWSession *fwSession
michael@0 1864 );
michael@0 1865
michael@0 1866 /*
michael@0 1867 * nssCKFWSession_Login
michael@0 1868 *
michael@0 1869 */
michael@0 1870 NSS_EXTERN CK_RV
michael@0 1871 nssCKFWSession_Login
michael@0 1872 (
michael@0 1873 NSSCKFWSession *fwSession,
michael@0 1874 CK_USER_TYPE userType,
michael@0 1875 NSSItem *pin
michael@0 1876 );
michael@0 1877
michael@0 1878 /*
michael@0 1879 * nssCKFWSession_Logout
michael@0 1880 *
michael@0 1881 */
michael@0 1882 NSS_EXTERN CK_RV
michael@0 1883 nssCKFWSession_Logout
michael@0 1884 (
michael@0 1885 NSSCKFWSession *fwSession
michael@0 1886 );
michael@0 1887
michael@0 1888 /*
michael@0 1889 * nssCKFWSession_InitPIN
michael@0 1890 *
michael@0 1891 */
michael@0 1892 NSS_EXTERN CK_RV
michael@0 1893 nssCKFWSession_InitPIN
michael@0 1894 (
michael@0 1895 NSSCKFWSession *fwSession,
michael@0 1896 NSSItem *pin
michael@0 1897 );
michael@0 1898
michael@0 1899 /*
michael@0 1900 * nssCKFWSession_SetPIN
michael@0 1901 *
michael@0 1902 */
michael@0 1903 NSS_EXTERN CK_RV
michael@0 1904 nssCKFWSession_SetPIN
michael@0 1905 (
michael@0 1906 NSSCKFWSession *fwSession,
michael@0 1907 NSSItem *newPin,
michael@0 1908 NSSItem *oldPin
michael@0 1909 );
michael@0 1910
michael@0 1911 /*
michael@0 1912 * nssCKFWSession_GetOperationStateLen
michael@0 1913 *
michael@0 1914 */
michael@0 1915 NSS_EXTERN CK_ULONG
michael@0 1916 nssCKFWSession_GetOperationStateLen
michael@0 1917 (
michael@0 1918 NSSCKFWSession *fwSession,
michael@0 1919 CK_RV *pError
michael@0 1920 );
michael@0 1921
michael@0 1922 /*
michael@0 1923 * nssCKFWSession_GetOperationState
michael@0 1924 *
michael@0 1925 */
michael@0 1926 NSS_EXTERN CK_RV
michael@0 1927 nssCKFWSession_GetOperationState
michael@0 1928 (
michael@0 1929 NSSCKFWSession *fwSession,
michael@0 1930 NSSItem *buffer
michael@0 1931 );
michael@0 1932
michael@0 1933 /*
michael@0 1934 * nssCKFWSession_SetOperationState
michael@0 1935 *
michael@0 1936 */
michael@0 1937 NSS_EXTERN CK_RV
michael@0 1938 nssCKFWSession_SetOperationState
michael@0 1939 (
michael@0 1940 NSSCKFWSession *fwSession,
michael@0 1941 NSSItem *state,
michael@0 1942 NSSCKFWObject *encryptionKey,
michael@0 1943 NSSCKFWObject *authenticationKey
michael@0 1944 );
michael@0 1945
michael@0 1946 /*
michael@0 1947 * nssCKFWSession_CreateObject
michael@0 1948 *
michael@0 1949 */
michael@0 1950 NSS_EXTERN NSSCKFWObject *
michael@0 1951 nssCKFWSession_CreateObject
michael@0 1952 (
michael@0 1953 NSSCKFWSession *fwSession,
michael@0 1954 CK_ATTRIBUTE_PTR pTemplate,
michael@0 1955 CK_ULONG ulAttributeCount,
michael@0 1956 CK_RV *pError
michael@0 1957 );
michael@0 1958
michael@0 1959 /*
michael@0 1960 * nssCKFWSession_CopyObject
michael@0 1961 *
michael@0 1962 */
michael@0 1963 NSS_EXTERN NSSCKFWObject *
michael@0 1964 nssCKFWSession_CopyObject
michael@0 1965 (
michael@0 1966 NSSCKFWSession *fwSession,
michael@0 1967 NSSCKFWObject *object,
michael@0 1968 CK_ATTRIBUTE_PTR pTemplate,
michael@0 1969 CK_ULONG ulAttributeCount,
michael@0 1970 CK_RV *pError
michael@0 1971 );
michael@0 1972
michael@0 1973 /*
michael@0 1974 * nssCKFWSession_FindObjectsInit
michael@0 1975 *
michael@0 1976 */
michael@0 1977 NSS_EXTERN NSSCKFWFindObjects *
michael@0 1978 nssCKFWSession_FindObjectsInit
michael@0 1979 (
michael@0 1980 NSSCKFWSession *fwSession,
michael@0 1981 CK_ATTRIBUTE_PTR pTemplate,
michael@0 1982 CK_ULONG ulAttributeCount,
michael@0 1983 CK_RV *pError
michael@0 1984 );
michael@0 1985
michael@0 1986 /*
michael@0 1987 * nssCKFWSession_SetCurrentCryptoOperation
michael@0 1988 */
michael@0 1989 NSS_IMPLEMENT void
michael@0 1990 nssCKFWSession_SetCurrentCryptoOperation
michael@0 1991 (
michael@0 1992 NSSCKFWSession *fwSession,
michael@0 1993 NSSCKFWCryptoOperation * fwOperation,
michael@0 1994 NSSCKFWCryptoOperationState state
michael@0 1995 );
michael@0 1996
michael@0 1997 /*
michael@0 1998 * nssCKFWSession_GetCurrentCryptoOperation
michael@0 1999 */
michael@0 2000 NSS_IMPLEMENT NSSCKFWCryptoOperation *
michael@0 2001 nssCKFWSession_GetCurrentCryptoOperation
michael@0 2002 (
michael@0 2003 NSSCKFWSession *fwSession,
michael@0 2004 NSSCKFWCryptoOperationState state
michael@0 2005 );
michael@0 2006
michael@0 2007 /*
michael@0 2008 * nssCKFWSession_Final
michael@0 2009 * (terminate a cryptographic operation and get the result)
michael@0 2010 */
michael@0 2011 NSS_IMPLEMENT CK_RV
michael@0 2012 nssCKFWSession_Final
michael@0 2013 (
michael@0 2014 NSSCKFWSession *fwSession,
michael@0 2015 NSSCKFWCryptoOperationType type,
michael@0 2016 NSSCKFWCryptoOperationState state,
michael@0 2017 CK_BYTE_PTR outBuf,
michael@0 2018 CK_ULONG_PTR outBufLen
michael@0 2019 );
michael@0 2020
michael@0 2021 /*
michael@0 2022 * nssCKFWSession_Update
michael@0 2023 * (get the next step of an encrypt/decrypt operation)
michael@0 2024 */
michael@0 2025 NSS_IMPLEMENT CK_RV
michael@0 2026 nssCKFWSession_Update
michael@0 2027 (
michael@0 2028 NSSCKFWSession *fwSession,
michael@0 2029 NSSCKFWCryptoOperationType type,
michael@0 2030 NSSCKFWCryptoOperationState state,
michael@0 2031 CK_BYTE_PTR inBuf,
michael@0 2032 CK_ULONG inBufLen,
michael@0 2033 CK_BYTE_PTR outBuf,
michael@0 2034 CK_ULONG_PTR outBufLen
michael@0 2035 );
michael@0 2036
michael@0 2037 /*
michael@0 2038 * nssCKFWSession_DigestUpdate
michael@0 2039 * (do the next step of an digest/sign/verify operation)
michael@0 2040 */
michael@0 2041 NSS_IMPLEMENT CK_RV
michael@0 2042 nssCKFWSession_DigestUpdate
michael@0 2043 (
michael@0 2044 NSSCKFWSession *fwSession,
michael@0 2045 NSSCKFWCryptoOperationType type,
michael@0 2046 NSSCKFWCryptoOperationState state,
michael@0 2047 CK_BYTE_PTR inBuf,
michael@0 2048 CK_ULONG inBufLen
michael@0 2049 );
michael@0 2050
michael@0 2051 /*
michael@0 2052 * nssCKFWSession_DigestKey
michael@0 2053 * (do the next step of an digest/sign/verify operation)
michael@0 2054 */
michael@0 2055 NSS_IMPLEMENT CK_RV
michael@0 2056 nssCKFWSession_DigestKey
michael@0 2057 (
michael@0 2058 NSSCKFWSession *fwSession,
michael@0 2059 NSSCKFWObject *fwKey
michael@0 2060 );
michael@0 2061
michael@0 2062 /*
michael@0 2063 * nssCKFWSession_UpdateFinal
michael@0 2064 * (do a single-step of a cryptographic operation and get the result)
michael@0 2065 */
michael@0 2066 NSS_IMPLEMENT CK_RV
michael@0 2067 nssCKFWSession_UpdateFinal
michael@0 2068 (
michael@0 2069 NSSCKFWSession *fwSession,
michael@0 2070 NSSCKFWCryptoOperationType type,
michael@0 2071 NSSCKFWCryptoOperationState state,
michael@0 2072 CK_BYTE_PTR inBuf,
michael@0 2073 CK_ULONG inBufLen,
michael@0 2074 CK_BYTE_PTR outBuf,
michael@0 2075 CK_ULONG_PTR outBufLen
michael@0 2076 );
michael@0 2077
michael@0 2078 /*
michael@0 2079 * nssCKFWSession_UpdateCombo
michael@0 2080 * (do a combination encrypt/decrypt and sign/digest/verify operation)
michael@0 2081 */
michael@0 2082 NSS_IMPLEMENT CK_RV
michael@0 2083 nssCKFWSession_UpdateCombo
michael@0 2084 (
michael@0 2085 NSSCKFWSession *fwSession,
michael@0 2086 NSSCKFWCryptoOperationType encryptType,
michael@0 2087 NSSCKFWCryptoOperationType digestType,
michael@0 2088 NSSCKFWCryptoOperationState digestState,
michael@0 2089 CK_BYTE_PTR inBuf,
michael@0 2090 CK_ULONG inBufLen,
michael@0 2091 CK_BYTE_PTR outBuf,
michael@0 2092 CK_ULONG_PTR outBufLen
michael@0 2093 );
michael@0 2094
michael@0 2095 /*
michael@0 2096 * nssCKFWSession_SeedRandom
michael@0 2097 *
michael@0 2098 */
michael@0 2099 NSS_EXTERN CK_RV
michael@0 2100 nssCKFWSession_SeedRandom
michael@0 2101 (
michael@0 2102 NSSCKFWSession *fwSession,
michael@0 2103 NSSItem *seed
michael@0 2104 );
michael@0 2105
michael@0 2106 /*
michael@0 2107 * nssCKFWSession_GetRandom
michael@0 2108 *
michael@0 2109 */
michael@0 2110 NSS_EXTERN CK_RV
michael@0 2111 nssCKFWSession_GetRandom
michael@0 2112 (
michael@0 2113 NSSCKFWSession *fwSession,
michael@0 2114 NSSItem *buffer
michael@0 2115 );
michael@0 2116
michael@0 2117 /*
michael@0 2118 * NSSCKFWObject
michael@0 2119 *
michael@0 2120 * -- create/destroy --
michael@0 2121 * nssCKFWObject_Create
michael@0 2122 * nssCKFWObject_Finalize
michael@0 2123 * nssCKFWObject_Destroy
michael@0 2124 *
michael@0 2125 * -- implement public accessors --
michael@0 2126 * nssCKFWObject_GetMDObject
michael@0 2127 * nssCKFWObject_GetArena
michael@0 2128 *
michael@0 2129 * -- private accessors --
michael@0 2130 * nssCKFWObject_SetHandle
michael@0 2131 * nssCKFWObject_GetHandle
michael@0 2132 *
michael@0 2133 * -- module fronts --
michael@0 2134 * nssCKFWObject_IsTokenObject
michael@0 2135 * nssCKFWObject_GetAttributeCount
michael@0 2136 * nssCKFWObject_GetAttributeTypes
michael@0 2137 * nssCKFWObject_GetAttributeSize
michael@0 2138 * nssCKFWObject_GetAttribute
michael@0 2139 * nssCKFWObject_SetAttribute
michael@0 2140 * nssCKFWObject_GetObjectSize
michael@0 2141 */
michael@0 2142
michael@0 2143 /*
michael@0 2144 * nssCKFWObject_Create
michael@0 2145 *
michael@0 2146 */
michael@0 2147 NSS_EXTERN NSSCKFWObject *
michael@0 2148 nssCKFWObject_Create
michael@0 2149 (
michael@0 2150 NSSArena *arena,
michael@0 2151 NSSCKMDObject *mdObject,
michael@0 2152 NSSCKFWSession *fwSession,
michael@0 2153 NSSCKFWToken *fwToken,
michael@0 2154 NSSCKFWInstance *fwInstance,
michael@0 2155 CK_RV *pError
michael@0 2156 );
michael@0 2157
michael@0 2158 /*
michael@0 2159 * nssCKFWObject_Finalize
michael@0 2160 *
michael@0 2161 */
michael@0 2162 NSS_EXTERN void
michael@0 2163 nssCKFWObject_Finalize
michael@0 2164 (
michael@0 2165 NSSCKFWObject *fwObject,
michael@0 2166 PRBool removeFromHash
michael@0 2167 );
michael@0 2168
michael@0 2169 /*
michael@0 2170 * nssCKFWObject_Destroy
michael@0 2171 *
michael@0 2172 */
michael@0 2173 NSS_EXTERN void
michael@0 2174 nssCKFWObject_Destroy
michael@0 2175 (
michael@0 2176 NSSCKFWObject *fwObject
michael@0 2177 );
michael@0 2178
michael@0 2179 /*
michael@0 2180 * nssCKFWObject_GetMDObject
michael@0 2181 *
michael@0 2182 */
michael@0 2183 NSS_EXTERN NSSCKMDObject *
michael@0 2184 nssCKFWObject_GetMDObject
michael@0 2185 (
michael@0 2186 NSSCKFWObject *fwObject
michael@0 2187 );
michael@0 2188
michael@0 2189 /*
michael@0 2190 * nssCKFWObject_GetArena
michael@0 2191 *
michael@0 2192 */
michael@0 2193 NSS_EXTERN NSSArena *
michael@0 2194 nssCKFWObject_GetArena
michael@0 2195 (
michael@0 2196 NSSCKFWObject *fwObject,
michael@0 2197 CK_RV *pError
michael@0 2198 );
michael@0 2199
michael@0 2200 /*
michael@0 2201 * nssCKFWObject_SetHandle
michael@0 2202 *
michael@0 2203 */
michael@0 2204 NSS_EXTERN CK_RV
michael@0 2205 nssCKFWObject_SetHandle
michael@0 2206 (
michael@0 2207 NSSCKFWObject *fwObject,
michael@0 2208 CK_OBJECT_HANDLE hObject
michael@0 2209 );
michael@0 2210
michael@0 2211 /*
michael@0 2212 * nssCKFWObject_GetHandle
michael@0 2213 *
michael@0 2214 */
michael@0 2215 NSS_EXTERN CK_OBJECT_HANDLE
michael@0 2216 nssCKFWObject_GetHandle
michael@0 2217 (
michael@0 2218 NSSCKFWObject *fwObject
michael@0 2219 );
michael@0 2220
michael@0 2221 /*
michael@0 2222 * nssCKFWObject_IsTokenObject
michael@0 2223 *
michael@0 2224 */
michael@0 2225 NSS_EXTERN CK_BBOOL
michael@0 2226 nssCKFWObject_IsTokenObject
michael@0 2227 (
michael@0 2228 NSSCKFWObject *fwObject
michael@0 2229 );
michael@0 2230
michael@0 2231 /*
michael@0 2232 * nssCKFWObject_GetAttributeCount
michael@0 2233 *
michael@0 2234 */
michael@0 2235 NSS_EXTERN CK_ULONG
michael@0 2236 nssCKFWObject_GetAttributeCount
michael@0 2237 (
michael@0 2238 NSSCKFWObject *fwObject,
michael@0 2239 CK_RV *pError
michael@0 2240 );
michael@0 2241
michael@0 2242 /*
michael@0 2243 * nssCKFWObject_GetAttributeTypes
michael@0 2244 *
michael@0 2245 */
michael@0 2246 NSS_EXTERN CK_RV
michael@0 2247 nssCKFWObject_GetAttributeTypes
michael@0 2248 (
michael@0 2249 NSSCKFWObject *fwObject,
michael@0 2250 CK_ATTRIBUTE_TYPE_PTR typeArray,
michael@0 2251 CK_ULONG ulCount
michael@0 2252 );
michael@0 2253
michael@0 2254 /*
michael@0 2255 * nssCKFWObject_GetAttributeSize
michael@0 2256 *
michael@0 2257 */
michael@0 2258 NSS_EXTERN CK_ULONG
michael@0 2259 nssCKFWObject_GetAttributeSize
michael@0 2260 (
michael@0 2261 NSSCKFWObject *fwObject,
michael@0 2262 CK_ATTRIBUTE_TYPE attribute,
michael@0 2263 CK_RV *pError
michael@0 2264 );
michael@0 2265
michael@0 2266 /*
michael@0 2267 * nssCKFWObject_GetAttribute
michael@0 2268 *
michael@0 2269 * Usual NSS allocation rules:
michael@0 2270 * If itemOpt is not NULL, it will be returned; otherwise an NSSItem
michael@0 2271 * will be allocated. If itemOpt is not NULL but itemOpt->data is,
michael@0 2272 * the buffer will be allocated; otherwise, the buffer will be used.
michael@0 2273 * Any allocations will come from the optional arena, if one is
michael@0 2274 * specified.
michael@0 2275 */
michael@0 2276 NSS_EXTERN NSSItem *
michael@0 2277 nssCKFWObject_GetAttribute
michael@0 2278 (
michael@0 2279 NSSCKFWObject *fwObject,
michael@0 2280 CK_ATTRIBUTE_TYPE attribute,
michael@0 2281 NSSItem *itemOpt,
michael@0 2282 NSSArena *arenaOpt,
michael@0 2283 CK_RV *pError
michael@0 2284 );
michael@0 2285
michael@0 2286 /*
michael@0 2287 * nssCKFWObject_SetAttribute
michael@0 2288 *
michael@0 2289 */
michael@0 2290 NSS_EXTERN CK_RV
michael@0 2291 nssCKFWObject_SetAttribute
michael@0 2292 (
michael@0 2293 NSSCKFWObject *fwObject,
michael@0 2294 NSSCKFWSession *fwSession,
michael@0 2295 CK_ATTRIBUTE_TYPE attribute,
michael@0 2296 NSSItem *value
michael@0 2297 );
michael@0 2298
michael@0 2299 /*
michael@0 2300 * nssCKFWObject_GetObjectSize
michael@0 2301 *
michael@0 2302 */
michael@0 2303 NSS_EXTERN CK_ULONG
michael@0 2304 nssCKFWObject_GetObjectSize
michael@0 2305 (
michael@0 2306 NSSCKFWObject *fwObject,
michael@0 2307 CK_RV *pError
michael@0 2308 );
michael@0 2309
michael@0 2310 /*
michael@0 2311 * NSSCKFWFindObjects
michael@0 2312 *
michael@0 2313 * -- create/destroy --
michael@0 2314 * nssCKFWFindObjects_Create
michael@0 2315 * nssCKFWFindObjects_Destroy
michael@0 2316 *
michael@0 2317 * -- implement public accessors --
michael@0 2318 * nssCKFWFindObjects_GetMDFindObjects
michael@0 2319 *
michael@0 2320 * -- private accessors --
michael@0 2321 *
michael@0 2322 * -- module fronts --
michael@0 2323 * nssCKFWFindObjects_Next
michael@0 2324 */
michael@0 2325
michael@0 2326 /*
michael@0 2327 * nssCKFWFindObjects_Create
michael@0 2328 *
michael@0 2329 */
michael@0 2330 NSS_EXTERN NSSCKFWFindObjects *
michael@0 2331 nssCKFWFindObjects_Create
michael@0 2332 (
michael@0 2333 NSSCKFWSession *fwSession,
michael@0 2334 NSSCKFWToken *fwToken,
michael@0 2335 NSSCKFWInstance *fwInstance,
michael@0 2336 NSSCKMDFindObjects *mdFindObjects1,
michael@0 2337 NSSCKMDFindObjects *mdFindObjects2,
michael@0 2338 CK_RV *pError
michael@0 2339 );
michael@0 2340
michael@0 2341 /*
michael@0 2342 * nssCKFWFindObjects_Destroy
michael@0 2343 *
michael@0 2344 */
michael@0 2345 NSS_EXTERN void
michael@0 2346 nssCKFWFindObjects_Destroy
michael@0 2347 (
michael@0 2348 NSSCKFWFindObjects *fwFindObjects
michael@0 2349 );
michael@0 2350
michael@0 2351 /*
michael@0 2352 * nssCKFWFindObjects_GetMDFindObjects
michael@0 2353 *
michael@0 2354 */
michael@0 2355 NSS_EXTERN NSSCKMDFindObjects *
michael@0 2356 nssCKFWFindObjects_GetMDFindObjects
michael@0 2357 (
michael@0 2358 NSSCKFWFindObjects *fwFindObjects
michael@0 2359 );
michael@0 2360
michael@0 2361 /*
michael@0 2362 * nssCKFWFindObjects_Next
michael@0 2363 *
michael@0 2364 */
michael@0 2365 NSS_EXTERN NSSCKFWObject *
michael@0 2366 nssCKFWFindObjects_Next
michael@0 2367 (
michael@0 2368 NSSCKFWFindObjects *fwFindObjects,
michael@0 2369 NSSArena *arenaOpt,
michael@0 2370 CK_RV *pError
michael@0 2371 );
michael@0 2372
michael@0 2373 /*
michael@0 2374 * NSSCKFWMutex
michael@0 2375 *
michael@0 2376 * nssCKFWMutex_Create
michael@0 2377 * nssCKFWMutex_Destroy
michael@0 2378 * nssCKFWMutex_Lock
michael@0 2379 * nssCKFWMutex_Unlock
michael@0 2380 *
michael@0 2381 */
michael@0 2382
michael@0 2383 /*
michael@0 2384 * nssCKFWMutex_Create
michael@0 2385 *
michael@0 2386 */
michael@0 2387 NSS_EXTERN NSSCKFWMutex *
michael@0 2388 nssCKFWMutex_Create
michael@0 2389 (
michael@0 2390 CK_C_INITIALIZE_ARGS_PTR pInitArgs,
michael@0 2391 CryptokiLockingState LockingState,
michael@0 2392 NSSArena *arena,
michael@0 2393 CK_RV *pError
michael@0 2394 );
michael@0 2395
michael@0 2396 /*
michael@0 2397 * nssCKFWMutex_Destroy
michael@0 2398 *
michael@0 2399 */
michael@0 2400 NSS_EXTERN CK_RV
michael@0 2401 nssCKFWMutex_Destroy
michael@0 2402 (
michael@0 2403 NSSCKFWMutex *mutex
michael@0 2404 );
michael@0 2405
michael@0 2406 /*
michael@0 2407 * nssCKFWMutex_Lock
michael@0 2408 *
michael@0 2409 */
michael@0 2410 NSS_EXTERN CK_RV
michael@0 2411 nssCKFWMutex_Lock
michael@0 2412 (
michael@0 2413 NSSCKFWMutex *mutex
michael@0 2414 );
michael@0 2415
michael@0 2416 /*
michael@0 2417 * nssCKFWMutex_Unlock
michael@0 2418 *
michael@0 2419 */
michael@0 2420 NSS_EXTERN CK_RV
michael@0 2421 nssCKFWMutex_Unlock
michael@0 2422 (
michael@0 2423 NSSCKFWMutex *mutex
michael@0 2424 );
michael@0 2425
michael@0 2426 #endif /* CKFW_H */

mercurial