Home
last modified time | relevance | path

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

/onnv-gate/usr/src/lib/libsqlite/src/
H A Dhash.c62 if( pH->copyKey && elem->pKey ){ in sqliteHashClear()
63 sqliteFree(elem->pKey); in sqliteHashClear()
74 static int intHash(const void *pKey, int nKey){ in intHash() argument
85 static int ptrHash(const void *pKey, int nKey){
86 uptr x = Addr(pKey);
99 static int strHash(const void *pKey, int nKey){ in strHash() argument
100 return sqliteHashNoCase((const char*)pKey, nKey); in strHash()
110 static int binHash(const void *pKey, int nKey){ in binHash() argument
112 const char *z = (const char *)pKey; in binHash()
182 int h = (*xHash)(elem->pKey, elem->nKey) & (new_size-1); in rehash()
[all …]
H A Dbtree_rb.c62 void *pKey; member
125 void *pKey; member
139 const void *pKey,
693 static int memRbtreeKeyCompare(RbtCursor* pCur, const void *pKey, int nKey, in memRbtreeKeyCompare() argument
704 *pRes = key_compare(pCur->pNode->pKey, pCur->pNode->nKey-nIgnore, in memRbtreeKeyCompare()
705 pKey, nKey); in memRbtreeKeyCompare()
750 const void *pKey, in memRbtreeInsert() argument
784 memRbtreeMoveto( pCur, pKey, nKey, &match); in memRbtreeInsert()
789 pNode->pKey = sqliteMallocRaw(nKey); in memRbtreeInsert()
791 memcpy(pNode->pKey, pKey, nKey); in memRbtreeInsert()
[all …]
H A Dhash.h56 void *pKey; int nKey; /* Key associated with this element */ member
85 void *sqliteHashInsert(Hash*, const void *pKey, int nKey, void *pData);
86 void *sqliteHashFind(const Hash*, const void *pKey, int nKey);
104 #define sqliteHashKey(E) ((E)->pKey)
H A Dbtree.h74 int (*Moveto)(BtCursor*, const void *pKey, int nKey, int *pRes);
76 int (*Insert)(BtCursor*, const void *pKey, int nKey,
84 int (*KeyCompare)(BtCursor*, const void *pKey, int nKey,
124 #define sqliteBtreeMoveto(pCur, pKey, nKey, pRes)\ argument
125 (btCOps(pCur)->Moveto(pCur, pKey, nKey, pRes))
127 #define sqliteBtreeInsert(pCur, pKey, nKey, pData, nData) \ argument
128 (btCOps(pCur)->Insert(pCur, pKey, nKey, pData, nData))
136 #define sqliteBtreeKeyCompare(pCur, pKey, nKey, nIgnore, pRes)\ argument
137 (btCOps(pCur)->KeyCompare(pCur, pKey, nKey, nIgnore, pRes))
H A Dattach.c29 void sqliteAttach(Parse *pParse, Token *pFilename, Token *pDbname, Token *pKey){ in sqliteAttach() argument
102 if( pKey && pKey->z && pKey->n ){ in sqliteAttach()
103 sqliteSetNString(&zKey, pKey->z, pKey->n, 0); in sqliteAttach()
H A Dtclsqlite.c922 void *pKey; in DbObjCmd() local
927 pKey = Tcl_GetByteArrayFromObj(objv[2], &nKey); in DbObjCmd()
929 rc = sqlite_rekey(pDb->db, pKey, nKey); in DbObjCmd()
1028 void *pKey = 0; in DbMain() local
1064 pKey = Tcl_GetByteArrayFromObj(objv[objc-1], &nKey); in DbMain()
1092 p->db = sqlite_open_encrypted(zFile, pKey, nKey, 0, &zErrMsg); in DbMain()
H A Dbtree.c1334 const void *pKey, /* Key to compare against entry that pCur points to */ in fileBtreeKeyCompare() argument
1343 const char *zKey = (const char*)pKey; in fileBtreeKeyCompare()
1592 int fileBtreeMoveto(BtCursor *pCur, const void *pKey, int nKey, int *pRes){ in fileBtreeMoveto() argument
1607 rc = fileBtreeKeyCompare(pCur, pKey, nKey, 0, &c); in fileBtreeMoveto()
1919 const void *pKey, int nKey, /* The key */ in fillInCell() argument
1941 pPayload = pKey; in fillInCell()
1942 pKey = 0; in fillInCell()
2629 const void *pKey, int nKey, /* The key of the new record */ in fileBtreeInsert() argument
2653 rc = fileBtreeMoveto(pCur, pKey, nKey, &loc); in fileBtreeInsert()
2659 rc = fillInCell(pBt, &newCell, pKey, nKey, pData, nData); in fileBtreeInsert()
H A Dsqlite.h.in806 ** Open an encrypted SQLite database. If pKey==0 or nKey==0, this routine
814 const void *pKey, /* Pointer to the key */
830 const void *pKey, int nKey /* The new key */
/onnv-gate/usr/src/lib/libkmsagent/common/
H A DKMSAgentPKIKeyOpenSSL.cpp70 void SetPKey(void *i_pPKeyImpl, void *pKey) { in SetPKey() argument
72 pPKeyControl->pPKey = (EVP_PKEY *)pKey; in SetPKey()
180 EVP_PKEY *pKey = NULL; in LoadPrivateKeyFromBIO() local
192 pKey=PEM_read_bio_PrivateKey(i_pBio,NULL,NULL,i_pPassphrase); in LoadPrivateKeyFromBIO()
193 if (pKey == NULL) in LoadPrivateKeyFromBIO()
199 io_pPKeyControl->pPKey = pKey; in LoadPrivateKeyFromBIO()
318 EVP_PKEY *pKey = NULL; in LoadPublicKeyFromBIO() local
335 pKey = PEM_read_bio_PUBKEY(i_pBio, NULL, NULL, NULL); in LoadPublicKeyFromBIO()
336 if (pKey == NULL) in LoadPublicKeyFromBIO()
342 io_pPublicKeyControl->pPKey = pKey; in LoadPublicKeyFromBIO()
H A DKMSAgentPKIKey.cpp148 CPrivateKey::SetNative(void *pKey) in SetNative() argument
150 SetPKey(m_pPKeyImpl, pKey); in SetNative()
H A DKMSAgent.cpp3834 CPrivateKey *pKey; in KMSAgent_ChangeLocalPWD() local
3838 pKey = new CPrivateKey; in KMSAgent_ChangeLocalPWD()
3841 pCert, pKey); in KMSAgent_ChangeLocalPWD()
3845 bSuccess = StoreAgentPKI(i_pProfile, pCert, pKey, i_pNewPassphrase); in KMSAgent_ChangeLocalPWD()
/onnv-gate/usr/src/lib/pkcs11/pkcs11_kms/common/
H A DkmsKeystoreUtil.c566 kms_decode_description(char *description, kms_object_t *pKey) in kms_decode_description() argument
593 &pKey->class, in kms_decode_description()
594 &pKey->key_type, in kms_decode_description()
596 &pKey->mechanism, in kms_decode_description()
600 pKey->bool_attr_mask = boolattrs; in kms_decode_description()
612 KMSAgent_Key *pKey, in kms_new_key_object() argument
632 keylen = (CK_ULONG)pKey->m_iKeyLength; in kms_new_key_object()
639 template[4].pValue = pKey->m_acKey; in kms_new_key_object()
640 template[4].ulValueLen = pKey->m_iKeyLength; in kms_new_key_object()
723 KMSAgent_Key *pKey; in KMS_RetrieveKeyObj() local
[all …]
/onnv-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()
/onnv-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()
/onnv-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()