Commit Graph
2 Commits
Author SHA1 Message Date
Jarkko Sakkinen 5ca4c20cfd keys, trusted: select hash algorithm for TPM2 chips
Added 'hash=' option for selecting the hash algorithm for add_key()
syscall and documentation for it.

Added entry for sm3-256 to the following tables in order to support
TPM_ALG_SM3_256:

* hash_algo_name
* hash_digest_size

Includes support for the following hash algorithms:

* sha1
* sha256
* sha384
* sha512
* sm3-256

Signed-off-by: Jarkko Sakkinen <[email protected]>
Tested-by: Colin Ian King <[email protected]>
Reviewed-by: James Morris <[email protected]>
Reviewed-by: Mimi Zohar <[email protected]>
Acked-by: Peter Huewe <[email protected]>
2015-12-20 15:27:12 +02:00
Dmitry Kasatkin ee08997fee crypto: provide single place for hash algo information
This patch provides a single place for information about hash algorithms,
such as hash sizes and kernel driver names, which will be used by IMA
and the public key code.

Changelog:
- Fix sparse and checkpatch warnings
- Move hash algo enums to uapi for userspace signing functions.

Signed-off-by: Dmitry Kasatkin <[email protected]>
Signed-off-by: Mimi Zohar <[email protected]>
Acked-by: Herbert Xu <[email protected]>
2013-10-25 17:14:03 -04:00