# \[PATCH v2 0/3\] TPM2: select hash algorithm for a trusted key

- From: Jarkko Sakkinen \<hidden\>
- Date: 2015-10-30 11:35:21 
- List: linux-api
- Page: https://ratatoskr.run/linux-api/2015/10/4610554
- Thread: https://ratatoskr.run/linux-api/2015/10/4610554/t.md

```text
Jarkko Sakkinen (3):
  keys, trusted: select the hash algorithm
  crypto: add entry for sm3-256
  tpm: choose hash algorithm for sealing when using TPM 2.0

 Documentation/security/keys-trusted-encrypted.txt |  3 ++
 crypto/hash_info.c                                |  2 ++
 drivers/char/tpm/tpm.h                            | 10 ++++--
 drivers/char/tpm/tpm2-cmd.c                       | 42 +++++++++++++++++++++--
 include/crypto/hash_info.h                        |  3 ++
 include/keys/trusted-type.h                       |  1 +
 include/uapi/linux/hash_info.h                    |  1 +
 security/keys/Kconfig                             |  1 +
 security/keys/trusted.c                           | 20 ++++++++++-
 9 files changed, 76 insertions(+), 7 deletions(-)

-- 
2.5.0
```
