Home
last modified time | relevance | path

Searched refs:pubKeySize (Results 1 – 5 of 5) sorted by relevance

/netbsd/src/crypto/external/cpl/trousers/dist/src/tcs/rpc/tcstp/
Drpc_maint.c211 UINT32 pubKeySize; in tcs_wrap_LoadManuMaintPub() local
227 if (getData(TCSD_PACKET_TYPE_UINT32, 2, &pubKeySize, 0, &data->comm)) in tcs_wrap_LoadManuMaintPub()
230 pubKey = (BYTE *)malloc(pubKeySize); in tcs_wrap_LoadManuMaintPub()
232 LogError("malloc of %d bytes failed.", pubKeySize); in tcs_wrap_LoadManuMaintPub()
236 if (getData(TCSD_PACKET_TYPE_PBYTE, 3, pubKey, pubKeySize, &data->comm)) { in tcs_wrap_LoadManuMaintPub()
243 result = TCSP_LoadManuMaintPub_Internal(hContext, antiReplay, pubKeySize, pubKey, in tcs_wrap_LoadManuMaintPub()
Drpc_key.c67 UINT32 pubKeySize; in tcs_wrap_GetPubkey() local
93 result = TCSP_GetPubKey_Internal(hContext, hKey, pAuth, &pubKeySize, &pubKey); in tcs_wrap_GetPubkey()
105 if (setData(TCSD_PACKET_TYPE_UINT32, i++, &pubKeySize, 0, &data->comm)) { in tcs_wrap_GetPubkey()
109 if (setData(TCSD_PACKET_TYPE_PBYTE, i++, pubKey, pubKeySize, &data->comm)) { in tcs_wrap_GetPubkey()
389 UINT32 pubKeySize; in tcs_wrap_OwnerReadInternalPub() local
408 … result = TCSP_OwnerReadInternalPub_Internal(hContext, hKey, &ownerAuth, &pubKeySize, &pubKeyData); in tcs_wrap_OwnerReadInternalPub()
416 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &pubKeySize, 0, &data->comm)) in tcs_wrap_OwnerReadInternalPub()
418 if (setData(TCSD_PACKET_TYPE_PBYTE, 2, pubKeyData, pubKeySize, &data->comm)) in tcs_wrap_OwnerReadInternalPub()
/netbsd/src/crypto/external/cpl/trousers/dist/src/tspi/
Dtspi_sign.c111 UINT32 pubKeySize; in Tspi_Hash_VerifySignature() local
123 if ((result = obj_rsakey_get_modulus(hKey, &pubKeySize, &pubKey))) in Tspi_Hash_VerifySignature()
137 result = Trspi_Verify(TSS_HASH_SHA1, hashData, hashDataSize, pubKey, pubKeySize, in Tspi_Hash_VerifySignature()
140 … result = Trspi_Verify(TSS_HASH_OTHER, hashData, hashDataSize, pubKey, pubKeySize, in Tspi_Hash_VerifySignature()
Dtspi_migration.c41 UINT32 pubKeySize; in Tspi_TPM_AuthorizeMigrationTicket() local
97 pubKeySize = offset; in Tspi_TPM_AuthorizeMigrationTicket()
104 result |= Trspi_HashUpdate(&hashCtx, pubKeySize, pubKeyBlob); in Tspi_TPM_AuthorizeMigrationTicket()
114pubKeySize, pubKeyBlob, &ownerAuth, in Tspi_TPM_AuthorizeMigrationTicket()
Dtspi_cmk.c129 UINT32 pubKeySize; in Tspi_TPM_CMKCreateTicket() local
148 if ((result = obj_rsakey_get_pub_blob(hVerifyKey, &pubKeySize, &pubKey))) in Tspi_TPM_CMKCreateTicket()
161 result |= Trspi_HashUpdate(&hashCtx, pubKeySize, pubKey); in Tspi_TPM_CMKCreateTicket()
172 if ((result = RPC_CMK_CreateTicket(hContext, pubKeySize, pubKey, sigData, sigSize, sig, in Tspi_TPM_CMKCreateTicket()