Messages in this thread |  | | Subject | Re: [PATCH] keys, trusted: select TPM2 hash algorithm | | From | Mimi Zohar <> | | Date | Sun, 25 Oct 2015 15:21:31 -0400 |
| |
On Sat, 2015-10-24 at 15:42 +0300, Jarkko Sakkinen wrote: > Added 'hashalg=' option for selecting the hash algorithm. > > Currently available options are: > > * sha1 > * sha256 > * sha384 > * sha512 > * sm3_256
Please consider using crypto/hash_info.c: hash_algo_name[], which already define the algorithm string names. Use include/crypto/hash_info.c to include a reference to this array.
Boot command line options should be prefixed with the subsystem name. So instead of hashalg, please use tpm_hashalg. The boot command line option needs to be documented in Documentation/kernel-parameters.txt.
Mimi
|  |