Home
last modified time | relevance | path

Searched refs:bytesRequested (Results 1 – 9 of 9) sorted by relevance

/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/rpc/tcstp/
H A Drpc_random.c30 UINT32 bytesRequested, /* in */ in RPC_GetRandom_TP() argument
41 if (setData(TCSD_PACKET_TYPE_UINT32, 1, &bytesRequested, 0, &hte->comm)) in RPC_GetRandom_TP()
50 if (getData(TCSD_PACKET_TYPE_UINT32, 0, &bytesRequested, 0, &hte->comm)) { in RPC_GetRandom_TP()
54 *randomBytes = (BYTE *) malloc(bytesRequested); in RPC_GetRandom_TP()
56 LogError("malloc of %u bytes failed.", bytesRequested); in RPC_GetRandom_TP()
60 if (getData(TCSD_PACKET_TYPE_PBYTE, 1, *randomBytes, bytesRequested, &hte->comm)) { in RPC_GetRandom_TP()
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/rpc/tcstp/
H A Drpc_random.c34 UINT32 bytesRequested; in tcs_wrap_GetRandom() local
46 if (getData(TCSD_PACKET_TYPE_UINT32, 1, &bytesRequested, 0, &data->comm)) in tcs_wrap_GetRandom()
51 result = TCSP_GetRandom_Internal(hContext, &bytesRequested, &randomBytes); in tcs_wrap_GetRandom()
57 if (setData(TCSD_PACKET_TYPE_UINT32, 0, &bytesRequested, 0, &data->comm)) { in tcs_wrap_GetRandom()
61 if (setData(TCSD_PACKET_TYPE_PBYTE, 1, randomBytes, bytesRequested, &data->comm)) { in tcs_wrap_GetRandom()
/netbsd-src/crypto/external/cpl/trousers/dist/src/tcs/
H A Dtcsi_random.c40 UINT32 * bytesRequested, /* in, out */ in TCSP_GetRandom_Internal() argument
48 LogDebugFn("%u bytes", *bytesRequested); in TCSP_GetRandom_Internal()
56 *bytesRequested - totalReturned, NULL))) in TCSP_GetRandom_Internal()
100 } while (totalReturned < *bytesRequested && retries--); in TCSP_GetRandom_Internal()
102 if (totalReturned != *bytesRequested) { in TCSP_GetRandom_Internal()
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/
H A Dtspi_changeauth.c102 UINT32 bytesRequested; in Tspi_ChangeAuthAsym()
190 bytesRequested = 20; in Tspi_ChangeAuthAsym()
191 if ((result = get_local_random(tspContext, FALSE, bytesRequested, in Tspi_ChangeAuthAsym()
242 if ((result = get_local_random(tspContext, FALSE, bytesRequested, in Tspi_ChangeAuthAsym()
246 if ((result = get_local_random(tspContext, FALSE, bytesRequested, in Tspi_ChangeAuthAsym()
250 if ((result = get_local_random(tspContext, FALSE, bytesRequested, in Tspi_ChangeAuthAsym()
H A Dtsp_random.c27 UINT32 bytesRequested, /* in */ in Transport_GetRandom() argument
43 Trspi_LoadBlob_UINT32(&offset, bytesRequested, data); in Transport_GetRandom()
/netbsd-src/sys/dev/ic/
H A Dtpm.c495 uint32_t bytesRequested; in tpm12_rng() member
513 command.bytesRequested = htobe32(sizeof(response.bytes)); in tpm12_rng()
635 uint16_t bytesRequested; in tpm20_rng() member
653 command.bytesRequested = htobe16(sizeof(response.bytes)); in tpm20_rng()
/netbsd-src/crypto/external/cpl/trousers/dist/src/include/tss/
H A Dtcs.h541 UINT32* bytesRequested, // in, out
/netbsd-src/crypto/external/cpl/trousers/dist/src/tspi/rpc/
H A Dtcs_api.c1354 UINT32 bytesRequested, /* in */ in RPC_GetRandom() argument
1365 result = RPC_GetRandom_TP(entry, bytesRequested, randomBytes); in RPC_GetRandom()
/netbsd-src/crypto/external/cpl/trousers/dist/src/include/
H A Dtcs_utils.h676 UINT32 * bytesRequested, /* in, out */