Home
last modified time | relevance | path

Searched refs:pKey (Results 1 – 11 of 11) sorted by relevance

/illumos-gate/usr/src/lib/libsqlite/src/
H A Dhash.c59 if( pH->copyKey && elem->pKey ){ in sqliteHashClear()
60 sqliteFree(elem->pKey); in sqliteHashClear()
83 uptr x = Addr(pKey);
218 if( (*xCompare)(elem->pKey,elem->nKey,pKey,nKey)==0 ){ in findElementGivenHash()
251 sqliteFree(elem->pKey); in removeElementGivenHash()
269 h = (*xHash)(pKey,nKey); in sqliteHashFind()
300 hraw = (*xHash)(pKey, nKey); in sqliteHashInsert()
316 if( pH->copyKey && pKey!=0 ){ in sqliteHashInsert()
318 if( new_elem->pKey==0 ){ in sqliteHashInsert()
322 memcpy((void*)new_elem->pKey, pKey, nKey); in sqliteHashInsert()
[all …]
H A Dbtree_rb.c59 void *pKey; member
122 void *pKey; member
136 const void *pKey,
747 const void *pKey, in memRbtreeInsert() argument
788 memcpy(pNode->pKey, pKey, nKey); in memRbtreeInsert()
825 memcpy( pOp->pKey, pNode->pKey, pOp->nKey ); in memRbtreeInsert()
841 memcpy( pOp->pKey, pCur->pNode->pKey, pOp->nKey ); in memRbtreeInsert()
873 const void *pKey, in memRbtreeMoveto() argument
946 pOp->pKey = pZ->pKey; in memRbtreeDelete()
971 pZ->pKey = pCur->pNode->pKey; in memRbtreeDelete()
[all …]
H A Dbtree.h71 int (*Moveto)(BtCursor*, const void *pKey, int nKey, int *pRes);
73 int (*Insert)(BtCursor*, const void *pKey, int nKey,
81 int (*KeyCompare)(BtCursor*, const void *pKey, int nKey,
121 #define sqliteBtreeMoveto(pCur, pKey, nKey, pRes)\ argument
122 (btCOps(pCur)->Moveto(pCur, pKey, nKey, pRes))
124 #define sqliteBtreeInsert(pCur, pKey, nKey, pData, nData) \ argument
125 (btCOps(pCur)->Insert(pCur, pKey, nKey, pData, nData))
133 #define sqliteBtreeKeyCompare(pCur, pKey, nKey, nIgnore, pRes)\ argument
134 (btCOps(pCur)->KeyCompare(pCur, pKey, nKey, nIgnore, pRes))
H A Dhash.h53 void *pKey; int nKey; /* Key associated with this element */ member
82 void *sqliteHashInsert(Hash*, const void *pKey, int nKey, void *pData);
83 void *sqliteHashFind(const Hash*, const void *pKey, int nKey);
101 #define sqliteHashKey(E) ((E)->pKey)
H A Dattach.c26 void sqliteAttach(Parse *pParse, Token *pFilename, Token *pDbname, Token *pKey){ in sqliteAttach() argument
99 if( pKey && pKey->z && pKey->n ){ in sqliteAttach()
100 sqliteSetNString(&zKey, pKey->z, pKey->n, 0); in sqliteAttach()
H A Dtclsqlite.c919 void *pKey; in DbObjCmd() local
924 pKey = Tcl_GetByteArrayFromObj(objv[2], &nKey); in DbObjCmd()
926 rc = sqlite_rekey(pDb->db, pKey, nKey); in DbObjCmd()
1025 void *pKey = 0; in DbMain() local
1061 pKey = Tcl_GetByteArrayFromObj(objv[objc-1], &nKey); in DbMain()
1089 p->db = sqlite_open_encrypted(zFile, pKey, nKey, 0, &zErrMsg); in DbMain()
H A Dbtree.c1332 const void *pKey, /* Key to compare against entry that pCur points to */ in fileBtreeKeyCompare() argument
1341 const char *zKey = (const char*)pKey; in fileBtreeKeyCompare()
1590 int fileBtreeMoveto(BtCursor *pCur, const void *pKey, int nKey, int *pRes){ in fileBtreeMoveto() argument
1605 rc = fileBtreeKeyCompare(pCur, pKey, nKey, 0, &c); in fileBtreeMoveto()
1917 const void *pKey, int nKey, /* The key */ in fillInCell() argument
1939 pPayload = pKey; in fillInCell()
1940 pKey = 0; in fillInCell()
2627 const void *pKey, int nKey, /* The key of the new record */ in fileBtreeInsert() argument
2651 rc = fileBtreeMoveto(pCur, pKey, nKey, &loc); in fileBtreeInsert()
2657 rc = fillInCell(pBt, &newCell, pKey, nKey, pData, nData); in fileBtreeInsert()
H A Dsqlite.h.in803 ** Open an encrypted SQLite database. If pKey==0 or nKey==0, this routine
811 const void *pKey, /* Pointer to the key */
827 const void *pKey, int nKey /* The new key */
/illumos-gate/usr/src/lib/libkmf/libkmf/common/
H A Dpk11keys.c183 const KMF_X509_SPKI *pKey, in PKCS_CreatePublicKey() argument
218 (KMF_OID *)&pKey->algorithm.algorithm); in PKCS_CreatePublicKey()
222 mrReturn = ExtractSPKIData(pKey, AlgorithmId, KeyParts, &uNumKeyParts); in PKCS_CreatePublicKey()
360 const KMF_X509_SPKI *pKey, in PKCS_AcquirePublicKeyHandle() argument
377 mrReturn = PKCS_CreatePublicKey(pKey, ckSession, &ckKeyHandle); in PKCS_AcquirePublicKeyHandle()
/illumos-gate/usr/src/lib/libkmf/ber_der/common/
H A Dclasn1.c2478 const KMF_X509_SPKI *pKey, in ExtractSPKIData() argument
2488 if (pKeyParts == NULL || uNumKeyParts == NULL || pKey == NULL) in ExtractSPKIData()
2497 (char *)pKey->algorithm.parameters.Data; in ExtractSPKIData()
2498 PubKeyParams.bv_len = pKey->algorithm.parameters.Length; in ExtractSPKIData()
2520 PubKeyData.bv_val = (char *)pKey->subjectPublicKey.Data; in ExtractSPKIData()
2521 PubKeyData.bv_len = pKey->subjectPublicKey.Length; in ExtractSPKIData()
2542 (KMF_DATA *)&pKey->algorithm.parameters); in ExtractSPKIData()
2545 (KMF_DATA *)&pKey->subjectPublicKey); in ExtractSPKIData()
2555 PubKeyData.bv_val = (char *)pKey->subjectPublicKey.Data; in ExtractSPKIData()
2556 PubKeyData.bv_len = pKey->subjectPublicKey.Length; in ExtractSPKIData()
/illumos-gate/usr/src/lib/libkmf/plugins/kmf_pkcs11/common/
H A Dpkcs11_spi.c771 KMFPK11_EncodePubKeyData(KMF_HANDLE_T handle, KMF_KEY_HANDLE *pKey, in KMFPK11_EncodePubKeyData() argument
796 if (pKey == NULL || pKey->keyp == CK_INVALID_HANDLE) in KMFPK11_EncodePubKeyData()
806 switch (pKey->keyalg) { in KMFPK11_EncodePubKeyData()
818 (CK_OBJECT_HANDLE)pKey->keyp, rsaTemplate, 4); in KMFPK11_EncodePubKeyData()
842 (CK_OBJECT_HANDLE)pKey->keyp, rsaTemplate, 4); in KMFPK11_EncodePubKeyData()
900 (CK_OBJECT_HANDLE)pKey->keyp, dsaTemplate, 6); in KMFPK11_EncodePubKeyData()
945 (CK_OBJECT_HANDLE)pKey->keyp, dsaTemplate, 6); in KMFPK11_EncodePubKeyData()
1030 (CK_OBJECT_HANDLE)pKey->keyp, in KMFPK11_EncodePubKeyData()
1076 if (pKey->keyalg != KMF_ECDSA) in KMFPK11_EncodePubKeyData()
1082 if (pKey->keyalg != KMF_ECDSA) in KMFPK11_EncodePubKeyData()