• Home
  • Raw
  • Download

Lines Matching refs:data

51 static int TSS_sha1(const unsigned char *data, unsigned int datalen,  in TSS_sha1()  argument
63 ret = crypto_shash_digest(&sdesc->shash, data, datalen, digest); in TSS_sha1()
74 unsigned char *data; in TSS_rawhmac() local
95 data = va_arg(argp, unsigned char *); in TSS_rawhmac()
96 if (data == NULL) { in TSS_rawhmac()
100 ret = crypto_shash_update(&sdesc->shash, data, dlen); in TSS_rawhmac()
122 unsigned char *data; in TSS_authhmac() local
145 data = va_arg(argp, unsigned char *); in TSS_authhmac()
146 if (!data) { in TSS_authhmac()
150 ret = crypto_shash_update(&sdesc->shash, data, dlen); in TSS_authhmac()
410 ret = trusted_tpm_send(tb->data, MAX_BUF_SIZE); in osap()
414 s->handle = LOAD32(tb->data, TPM_DATA_OFFSET); in osap()
415 memcpy(s->enonce, &(tb->data[TPM_DATA_OFFSET + sizeof(uint32_t)]), in osap()
417 memcpy(enonce, &(tb->data[TPM_DATA_OFFSET + sizeof(uint32_t) + in osap()
434 ret = trusted_tpm_send(tb->data, MAX_BUF_SIZE); in oiap()
438 *handle = LOAD32(tb->data, TPM_DATA_OFFSET); in oiap()
439 memcpy(nonce, &tb->data[TPM_DATA_OFFSET + sizeof(uint32_t)], in oiap()
459 const unsigned char *data, uint32_t datalen, in tpm_seal() argument
519 sizeof(uint32_t), &datsize, datalen, data, 0, in tpm_seal()
528 &datsize, datalen, data, 0, 0); in tpm_seal()
540 tpm_buf_append(tb, data, datalen); in tpm_seal()
546 ret = trusted_tpm_send(tb->data, MAX_BUF_SIZE); in tpm_seal()
551 sealinfosize = LOAD32(tb->data, TPM_DATA_OFFSET + sizeof(uint32_t)); in tpm_seal()
552 encdatasize = LOAD32(tb->data, TPM_DATA_OFFSET + sizeof(uint32_t) + in tpm_seal()
558 ret = TSS_checkhmac1(tb->data, ordinal, td->nonceodd, sess.secret, in tpm_seal()
564 memcpy(blob, tb->data + TPM_DATA_OFFSET, storedsize); in tpm_seal()
579 unsigned char *data, unsigned int *datalen) in tpm_unseal() argument
637 ret = trusted_tpm_send(tb->data, MAX_BUF_SIZE); in tpm_unseal()
643 *datalen = LOAD32(tb->data, TPM_DATA_OFFSET); in tpm_unseal()
644 ret = TSS_checkhmac2(tb->data, ordinal, nonceodd, in tpm_unseal()
654 memcpy(data, tb->data + TPM_DATA_OFFSET + sizeof(uint32_t), *datalen); in tpm_unseal()