.type = TCG_PTS_DH_NONCE_FINISH,
.nonce_len = nonce_len,
.hash_algo = hash_algo,
- .initiator_nonce = initiator_nonce,
- .initiator_pub_val = initiator_pub_val,
+ .initiator_nonce = chunk_clone(initiator_nonce),
+ .initiator_pub_val = chunk_clone(initiator_pub_val),
);
return &this->public.pa_tnc_attribute;
.nonce_len = nonce_len,
.dh_group = dh_group,
.hash_algo_set = hash_algo_set,
- .responder_nonce = responder_nonce,
- .responder_pub_val = responder_pub_val,
+ .responder_nonce = chunk_clone(responder_nonce),
+ .responder_pub_val = chunk_clone(responder_pub_val),
);
return &this->public.pa_tnc_attribute;