/bind-9.11.3/lib/isc/include/pk11/ |
H A D | pk11.h | 172 CK_RV (*Notify) (CK_SESSION_HANDLE hSession, 178 pkcs_C_CloseSession(CK_SESSION_HANDLE hSession); 181 pkcs_C_Login(CK_SESSION_HANDLE hSession, CK_USER_TYPE userType, 185 pkcs_C_Logout(CK_SESSION_HANDLE hSession); 188 pkcs_C_CreateObject(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, 192 pkcs_C_DestroyObject(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject); 195 pkcs_C_GetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, 199 pkcs_C_SetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, 203 pkcs_C_FindObjectsInit(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, 207 pkcs_C_FindObjects(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE_PT [all...] |
/bind-9.11.3/lib/isc/include/pkcs11/ |
H A D | pkcs11f.h | 143 CK_SESSION_HANDLE hSession, /* the session's handle */ 154 CK_SESSION_HANDLE hSession, /* the session's handle */ 187 CK_SESSION_HANDLE hSession /* the session's handle */ 205 CK_SESSION_HANDLE hSession, /* the session's handle */ 217 CK_SESSION_HANDLE hSession, /* session's handle */ 230 CK_SESSION_HANDLE hSession, /* session's handle */ 243 CK_SESSION_HANDLE hSession, /* the session's handle */ 255 CK_SESSION_HANDLE hSession /* the session's handle */ 267 CK_SESSION_HANDLE hSession, /* the session's handle */ 281 CK_SESSION_HANDLE hSession, /* th [all...] |
H A D | pkcs11t.h | 1167 CK_SESSION_HANDLE hSession, /* the session's handle */
|
/bind-9.11.3/lib/isc/unix/ |
H A D | pk11_api.c | 134 CK_RV (*Notify) (CK_SESSION_HANDLE hSession, 160 pkcs_C_CloseSession(CK_SESSION_HANDLE hSession) { argument 172 return (*sym)(hSession); 176 pkcs_C_Login(CK_SESSION_HANDLE hSession, CK_USER_TYPE userType, argument 190 return (*sym)(hSession, userType, pPin, usPinLen); 194 pkcs_C_Logout(CK_SESSION_HANDLE hSession) { argument 206 return (*sym)(hSession); 210 pkcs_C_CreateObject(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, argument 224 return (*sym)(hSession, pTemplate, usCount, phObject); 228 pkcs_C_DestroyObject(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDL argument 132 pkcs_C_OpenSession(CK_SLOT_ID slotID, CK_FLAGS flags, CK_VOID_PTR pApplication, CK_RV (*Notify) (CK_SESSION_HANDLE hSession, CK_NOTIFICATION event, CK_VOID_PTR pApplication), CK_SESSION_HANDLE_PTR phSession) argument 244 pkcs_C_GetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG usCount) argument 263 pkcs_C_SetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG usCount) argument 282 pkcs_C_FindObjectsInit(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG usCount) argument 300 pkcs_C_FindObjects(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE_PTR phObject, CK_ULONG usMaxObjectCount, CK_ULONG_PTR pusObjectCount) argument 318 pkcs_C_FindObjectsFinal(CK_SESSION_HANDLE hSession) argument 336 pkcs_C_EncryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey) argument 354 pkcs_C_Encrypt(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pEncryptedData, CK_ULONG_PTR pulEncryptedDataLen) argument 374 pkcs_C_DigestInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism) argument 390 pkcs_C_DigestUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, CK_ULONG ulPartLen) argument 408 pkcs_C_DigestFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pDigest, CK_ULONG_PTR pulDigestLen) argument 426 pkcs_C_SignInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey) argument 444 pkcs_C_Sign(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen) argument 463 pkcs_C_SignUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, CK_ULONG ulPartLen) argument 481 pkcs_C_SignFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen) argument 499 pkcs_C_VerifyInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey) argument 517 pkcs_C_Verify(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen) argument 536 pkcs_C_VerifyUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, CK_ULONG ulPartLen) argument 554 pkcs_C_VerifyFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen) argument 572 pkcs_C_GenerateKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) argument 591 pkcs_C_GenerateKeyPair(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pPublicKeyTemplate, CK_ULONG usPublicKeyAttributeCount, CK_ATTRIBUTE_PTR pPrivateKeyTemplate, CK_ULONG usPrivateKeyAttributeCount, CK_OBJECT_HANDLE_PTR phPrivateKey, CK_OBJECT_HANDLE_PTR phPublicKey) argument 622 pkcs_C_DeriveKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument 646 pkcs_C_SeedRandom(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSeed, CK_ULONG ulSeedLen) argument 664 pkcs_C_GenerateRandom(CK_SESSION_HANDLE hSession, CK_BYTE_PTR RandomData, CK_ULONG ulRandomLen) argument [all...] |
/bind-9.11.3/lib/isc/win32/ |
H A D | pk11_api.c | 172 CK_RV (*Notify) (CK_SESSION_HANDLE hSession, 196 pkcs_C_CloseSession(CK_SESSION_HANDLE hSession) { argument 206 return (*sym)(hSession); 210 pkcs_C_Login(CK_SESSION_HANDLE hSession, argument 223 return (*sym)(hSession, userType, pPin, usPinLen); 227 pkcs_C_Logout(CK_SESSION_HANDLE hSession) { argument 236 return (*sym)(hSession); 240 pkcs_C_CreateObject(CK_SESSION_HANDLE hSession, argument 254 return (*sym)(hSession, pTemplate, usCount, phObject); 258 pkcs_C_DestroyObject(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDL argument 169 pkcs_C_OpenSession(CK_SLOT_ID slotID, CK_FLAGS flags, CK_VOID_PTR pApplication, CK_RV (*Notify) (CK_SESSION_HANDLE hSession, CK_NOTIFICATION event, CK_VOID_PTR pApplication), CK_SESSION_HANDLE_PTR phSession) argument 272 pkcs_C_GetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG usCount) argument 290 pkcs_C_SetAttributeValue(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG usCount) argument 308 pkcs_C_FindObjectsInit(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG usCount) argument 325 pkcs_C_FindObjects(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE_PTR phObject, CK_ULONG usMaxObjectCount, CK_ULONG_PTR pusObjectCount) argument 342 pkcs_C_FindObjectsFinal(CK_SESSION_HANDLE hSession) argument 356 pkcs_C_EncryptInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey) argument 372 pkcs_C_Encrypt(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pEncryptedData, CK_ULONG_PTR pulEncryptedDataLen) argument 391 pkcs_C_DigestInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism) argument 406 pkcs_C_DigestUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, CK_ULONG ulPartLen) argument 423 pkcs_C_DigestFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pDigest, CK_ULONG_PTR pulDigestLen) argument 439 pkcs_C_SignInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey) argument 455 pkcs_C_Sign(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen) argument 473 pkcs_C_SignUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, CK_ULONG ulPartLen) argument 489 pkcs_C_SignFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen) argument 505 pkcs_C_VerifyInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey) argument 521 pkcs_C_Verify(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen) argument 539 pkcs_C_VerifyUpdate(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, CK_ULONG ulPartLen) argument 556 pkcs_C_VerifyFinal(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen) argument 572 pkcs_C_GenerateKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey) argument 590 pkcs_C_GenerateKeyPair(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pPublicKeyTemplate, CK_ULONG usPublicKeyAttributeCount, CK_ATTRIBUTE_PTR pPrivateKeyTemplate, CK_ULONG usPrivateKeyAttributeCount, CK_OBJECT_HANDLE_PTR phPrivateKey, CK_OBJECT_HANDLE_PTR phPublicKey) argument 619 pkcs_C_DeriveKey(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey) argument 643 pkcs_C_SeedRandom(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSeed, CK_ULONG ulSeedLen) argument 659 pkcs_C_GenerateRandom(CK_SESSION_HANDLE hSession, CK_BYTE_PTR RandomData, CK_ULONG ulRandomLen) argument [all...] |
/bind-9.11.3/bin/tests/pkcs11/benchmarks/ |
H A D | login.c | 91 CK_SESSION_HANDLE *hSession; local 137 hSession = (CK_SESSION_HANDLE *) 139 if (hSession == NULL) { 144 hSession[i] = CK_INVALID_HANDLE; 161 free(hSession); 174 NULL_PTR, NULL_PTR, &hSession[i]); 186 rv = pkcs_C_Login(hSession[i], CKU_USER, 199 rv = pkcs_C_Logout(hSession[i]); 230 if (hSession[j] == CK_INVALID_HANDLE) 233 rv = pkcs_C_CloseSession(hSession[ [all...] |
H A D | session.c | 87 CK_SESSION_HANDLE *hSession; local 129 hSession = (CK_SESSION_HANDLE *) 131 if (hSession == NULL) { 136 hSession[i] = CK_INVALID_HANDLE; 150 free(hSession); 163 NULL_PTR, NULL_PTR, &hSession[i]); 195 if (hSession[i] == CK_INVALID_HANDLE) 197 rv = pkcs_C_CloseSession(hSession[i]); 207 free(hSession);
|
H A D | sha1.c | 90 CK_SESSION_HANDLE hSession = CK_INVALID_HANDLE; local 152 hSession = pctx.session; 155 rv = pkcs_C_GenerateRandom(hSession, buf, len); 167 rv = pkcs_C_DigestInit(hSession, &mech); 176 rv = pkcs_C_DigestUpdate(hSession, buf, len); 188 rv = pkcs_C_DigestFinal(hSession, buf, &len);
|
H A D | find.c | 92 CK_SESSION_HANDLE hSession = CK_INVALID_HANDLE; local 169 hSession = pctx.session; 177 rv = pkcs_C_FindObjectsInit(hSession, sTemplate, 1); 186 rv = pkcs_C_FindObjects(hSession, &sKey, 1, &found); 195 rv = pkcs_C_FindObjectsFinal(hSession);
|
H A D | verify.c | 119 CK_SESSION_HANDLE hSession = CK_INVALID_HANDLE; local 211 hSession = pctx.session; 217 rv = pkcs_C_CreateObject(hSession, kTemplate, 7, &hKey); 226 rv = pkcs_C_GenerateRandom(hSession, buf, len); 239 rv = pkcs_C_VerifyInit(hSession, &mech, hKey); 250 rv = pkcs_C_Verify(hSession, buf, len, sig, slen); 280 rv = pkcs_C_DestroyObject(hSession, hKey);
|
H A D | random.c | 90 CK_SESSION_HANDLE hSession = CK_INVALID_HANDLE; local 151 hSession = pctx.session; 160 rv = pkcs_C_GenerateRandom(hSession, buf, len);
|
H A D | create.c | 98 CK_SESSION_HANDLE hSession = CK_INVALID_HANDLE; local 192 hSession = pctx.session; 195 rv = pkcs_C_GenerateRandom(hSession, buf, len); 212 rv = pkcs_C_CreateObject(hSession, kTemplate, 5, &hKey[i]); 247 rv = pkcs_C_DestroyObject(hSession, hKey[i]);
|
H A D | genrsa.c | 95 CK_SESSION_HANDLE hSession = CK_INVALID_HANDLE; local 219 hSession = pctx.session; 232 rv = pkcs_C_GenerateKeyPair(hSession, &mech, 270 rv = pkcs_C_DestroyObject(hSession, pubKey[i]); 280 rv = pkcs_C_DestroyObject(hSession, privKey[i]);
|
H A D | pubrsa.c | 118 CK_SESSION_HANDLE hSession = CK_INVALID_HANDLE; local 219 hSession = pctx.session; 232 rv = pkcs_C_CreateObject(hSession, kTemplate, 8, &hKey[i]); 267 rv = pkcs_C_DestroyObject(hSession, hKey[i]);
|
H A D | sign.c | 192 CK_SESSION_HANDLE hSession = CK_INVALID_HANDLE; local 290 hSession = pctx.session; 296 rv = pkcs_C_CreateObject(hSession, kTemplate, 13, &hKey); 304 rv = pkcs_C_GenerateRandom(hSession, buf, len); 317 rv = pkcs_C_SignInit(hSession, &mech, hKey); 328 rv = pkcs_C_Sign(hSession, buf, len, sig, &slen); 358 rv = pkcs_C_DestroyObject(hSession, hKey);
|
H A D | privrsa.c | 191 CK_SESSION_HANDLE hSession = CK_INVALID_HANDLE; local 298 hSession = pctx.session; 311 rv = pkcs_C_CreateObject(hSession, kTemplate, 14, &hKey[i]); 346 rv = pkcs_C_DestroyObject(hSession, hKey[i]);
|
/bind-9.11.3/bin/pkcs11/ |
H A D | pkcs11-destroy.c | 80 CK_SESSION_HANDLE hSession; local 172 hSession = pctx.session; 174 rv = pkcs_C_FindObjectsInit(hSession, search_template, 183 rv = pkcs_C_FindObjects(hSession, akey, 50, &ulObjectCount); 209 rv = pkcs_C_GetAttributeValue(hSession, akey[i], 245 rv = pkcs_C_DestroyObject(hSession, akey[i]); 258 rv = pkcs_C_FindObjectsFinal(hSession);
|
H A D | pkcs11-list.c | 65 CK_SESSION_HANDLE hSession; local 166 hSession = pctx.session; 168 rv = pkcs_C_FindObjectsInit(hSession, search_template, all ? 0 : 1); 177 rv = pkcs_C_FindObjects(hSession, akey, 50, &ulObjectCount); 206 rv = pkcs_C_GetAttributeValue(hSession, akey[i], 247 pkcs_C_GetAttributeValue(hSession, akey[i], 258 rv = pkcs_C_FindObjectsFinal(hSession);
|
H A D | pkcs11-keygen.c | 275 CK_SESSION_HANDLE hSession; local 584 hSession = pctx.session; 587 rv = pkcs_C_FindObjectsInit(hSession, search_template, 1); 593 rv = pkcs_C_FindObjects(hSession, &privatekey, 1, &ulObjectCount); 638 rv = pkcs_C_GenerateKey(hSession, &dpmech, domain_template, 649 rv = pkcs_C_GetAttributeValue(hSession, domainparams, 663 rv = pkcs_C_GetAttributeValue(hSession, domainparams, 703 rv = pkcs_C_GenerateKeyPair(hSession, &mech, 723 rv = pkcs_C_DestroyObject(hSession, domainparams); 732 rv = pkcs_C_FindObjectsFinal(hSession); [all...] |
/bind-9.11.3/bin/tests/pkcs11/ |
H A D | pkcs11-md5sum.c | 83 CK_SESSION_HANDLE hSession; local 154 hSession = pctx.session; 156 rv = pkcs_C_DigestInit(hSession, &mech); 183 rv = pkcs_C_DigestUpdate(hSession, (CK_BYTE_PTR) buffer, 196 rv = pkcs_C_DigestUpdate(hSession, (CK_BYTE_PTR) buffer, 208 rv = pkcs_C_DigestFinal(hSession, (CK_BYTE_PTR) digest, &len);
|
H A D | pkcs11-hmacmd5.c | 88 CK_SESSION_HANDLE hSession; local 232 hSession = pctx.session; 234 rv = pkcs_C_CreateObject(hSession, keyTemplate, (CK_ULONG) 6, &hKey); 246 rv = pkcs_C_SignInit(hSession, &mech, hKey); 273 rv = pkcs_C_SignUpdate(hSession, (CK_BYTE_PTR) buffer, 286 rv = pkcs_C_SignUpdate(hSession, (CK_BYTE_PTR) buffer, 298 rv = pkcs_C_SignFinal(hSession, (CK_BYTE_PTR) digest, &len); 314 rv = pkcs_C_DestroyObject(hSession, hKey);
|