Shu Zhang
2013-07-17 01:10:10 UTC
Hello trousers users,
I'd like to send a secret securely from a server to a client with TPM
and make sure only the client with the TPM can get the secret. I
wonder if something like this would work:
1. generate and register an RSA key pair on the client's TPM, copy its
UUID as well as its public key to the server
2. when the connection between the client and server is established,
the server encrypts the secret using the TPM public key, sends the
encrypted secret and the UUID of the TPM key to the client
3. the client's TPM loads the TPM key using the UUID and unbinds the
encrypted secret
I understand Tspi_Data_Unbind can unbind data encrypted with
Tspi_Data_Bind using the same key, but would it also work with data
encrypted outside TPM? I'm guessing if the same decryption algorithm
is used as the encryption, then it would, but I don't know much about
RSA.
Thank you.
Shu
I'd like to send a secret securely from a server to a client with TPM
and make sure only the client with the TPM can get the secret. I
wonder if something like this would work:
1. generate and register an RSA key pair on the client's TPM, copy its
UUID as well as its public key to the server
2. when the connection between the client and server is established,
the server encrypts the secret using the TPM public key, sends the
encrypted secret and the UUID of the TPM key to the client
3. the client's TPM loads the TPM key using the UUID and unbinds the
encrypted secret
I understand Tspi_Data_Unbind can unbind data encrypted with
Tspi_Data_Bind using the same key, but would it also work with data
encrypted outside TPM? I'm guessing if the same decryption algorithm
is used as the encryption, then it would, but I don't know much about
RSA.
Thank you.
Shu