trunks, tpm_manager: prepare for ownership earlier

Taking TPM ownership during OOBE can only be started when
Chrome sends an appropriate command to cryptohomed. However,
there are several operations that can be done on the TPM,
and which are needed for taking ownership, before that:
create SRK(s) and the salting key for sessions using the
default well-known TPM password.
Some of these operations are lengthy, so performing them
earlier allows to minimize the remaining time for taking
the TPM ownership and improve UX.

TEST=go through OOBE on eve

Change-Id: Id73b4252940c767fc2fa45414ed2ff7bdbec4887
Commit-Ready: Andrey Pronin <>
Tested-by: Andrey Pronin <>
Reviewed-by: Darren Krahn <>
15 files changed