Lines Matching refs:pub

26     TPMT_PUBLIC pub = {0};  in tpmt_marshal_success()  local
27 uint8_t buffer[sizeof(tkt) + sizeof(pub)] = { 0 }; in tpmt_marshal_success()
58 pub.type = TPM2_ALG_RSA; in tpmt_marshal_success()
59 pub.parameters.rsaDetail.symmetric.algorithm = TPM2_ALG_AES; in tpmt_marshal_success()
60 pub.parameters.rsaDetail.symmetric.keyBits.aes = 128; in tpmt_marshal_success()
61 pub.parameters.rsaDetail.symmetric.mode.aes = TPM2_ALG_CBC; in tpmt_marshal_success()
62 rc = Tss2_MU_TPMT_PUBLIC_Marshal(&pub, buffer, buffer_size, NULL); in tpmt_marshal_success()
78 TPMT_PUBLIC_PARMS pub = {0}; in tpmt_marshal_success_offset() local
79 uint8_t buffer[sizeof(tkt) + sizeof(pub) + 10] = { 0 }; in tpmt_marshal_success_offset()
113 pub.type = TPM2_ALG_KEYEDHASH; in tpmt_marshal_success_offset()
114 pub.parameters.keyedHashDetail.scheme.scheme = TPM2_ALG_HMAC; in tpmt_marshal_success_offset()
115 pub.parameters.keyedHashDetail.scheme.details.hmac.hashAlg = TPM2_ALG_SHA256; in tpmt_marshal_success_offset()
117 rc = Tss2_MU_TPMT_PUBLIC_PARMS_Marshal(&pub, buffer, buffer_size, &offset); in tpmt_marshal_success_offset()
134 TPMT_PUBLIC_PARMS pub = {0}; in tpmt_marshal_buffer_null_with_offset() local
135 size_t buffer_size = sizeof(tkt) + sizeof(pub) + 10; in tpmt_marshal_buffer_null_with_offset()
151 pub.type = TPM2_ALG_KEYEDHASH; in tpmt_marshal_buffer_null_with_offset()
152 pub.parameters.keyedHashDetail.scheme.scheme = TPM2_ALG_HMAC; in tpmt_marshal_buffer_null_with_offset()
153 pub.parameters.keyedHashDetail.scheme.details.hmac.hashAlg = TPM2_ALG_SHA256; in tpmt_marshal_buffer_null_with_offset()
155 rc = Tss2_MU_TPMT_PUBLIC_PARMS_Marshal(&pub, NULL, buffer_size, &offset); in tpmt_marshal_buffer_null_with_offset()
167 TPMT_PUBLIC_PARMS pub = {0}; in tpmt_marshal_buffer_null_offset_null() local
173 rc = Tss2_MU_TPMT_PUBLIC_PARMS_Marshal(&pub, NULL, sizeof(pub), NULL); in tpmt_marshal_buffer_null_offset_null()
184 TPMT_PUBLIC_PARMS pub = {0}; in tpmt_marshal_buffer_size_lt_data_nad_lt_offset() local
185 uint8_t buffer[sizeof(tkt) + sizeof(pub) + 10] = { 0 }; in tpmt_marshal_buffer_size_lt_data_nad_lt_offset()
200 pub.type = TPM2_ALG_KEYEDHASH; in tpmt_marshal_buffer_size_lt_data_nad_lt_offset()
201 pub.parameters.keyedHashDetail.scheme.scheme = TPM2_ALG_HMAC; in tpmt_marshal_buffer_size_lt_data_nad_lt_offset()
202 pub.parameters.keyedHashDetail.scheme.details.hmac.hashAlg = TPM2_ALG_SHA256; in tpmt_marshal_buffer_size_lt_data_nad_lt_offset()
204 rc = Tss2_MU_TPMT_PUBLIC_PARMS_Marshal(&pub, buffer, 8, &offset); in tpmt_marshal_buffer_size_lt_data_nad_lt_offset()
216 TPMT_PUBLIC_PARMS pub = {0}; in tpmt_unmarshal_success() local
217 uint8_t buffer[sizeof(tkt) + sizeof(pub)] = { 0 }; in tpmt_unmarshal_success()
257 rc = Tss2_MU_TPMT_PUBLIC_PARMS_Unmarshal(buffer, buffer_size, &offset, &pub); in tpmt_unmarshal_success()
259 assert_int_equal (pub.type, TPM2_ALG_KEYEDHASH); in tpmt_unmarshal_success()
260 assert_int_equal (pub.parameters.keyedHashDetail.scheme.scheme, TPM2_ALG_HMAC); in tpmt_unmarshal_success()
261 assert_int_equal (pub.parameters.keyedHashDetail.scheme.details.hmac.hashAlg, TPM2_ALG_SHA256); in tpmt_unmarshal_success()