diff options
author | Denis Kenzior <denkenz@gmail.com> | 2018-10-09 17:49:13 +0100 |
---|---|---|
committer | James Morris <james.morris@microsoft.com> | 2018-10-26 09:30:47 +0100 |
commit | 4574e923a251485f32653155548d893da091ebc0 (patch) | |
tree | 8a6c4b11984db716caf44811110e0355a6de351c /crypto/asymmetric_keys/mscode_parser.c | |
parent | 9c955615601225002643f6b7824d89fb5af79b8a (diff) | |
download | linux-crypto-4574e923a251485f32653155548d893da091ebc0.tar.gz linux-crypto-4574e923a251485f32653155548d893da091ebc0.zip |
KEYS: asym_tpm: Implement the decrypt operation [ver #2]
This patch implements the pkey_decrypt operation using the private key
blob. The blob is first loaded into the TPM via tpm_loadkey2. Once the
handle is obtained, tpm_unbind operation is used to decrypt the data on
the TPM and the result is returned. The key loaded by tpm_loadkey2 is
then evicted via tpm_flushspecific operation.
This patch assumes that the SRK authorization is a well known 20-byte of
zeros and the same holds for the key authorization of the provided key.
Signed-off-by: Denis Kenzior <denkenz@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Marcel Holtmann <marcel@holtmann.org>
Reviewed-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: James Morris <james.morris@microsoft.com>
Diffstat (limited to 'crypto/asymmetric_keys/mscode_parser.c')
0 files changed, 0 insertions, 0 deletions