Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1255674
| From | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] keys, trusted: select TPM2 hash algorithm |
| Date | 2015-10-26 06:50 +0100 |
| Message-ID | <qnIPn-4kh-3@gated-at.bofh.it> (permalink) |
| References | <qn6qJ-yv-1@gated-at.bofh.it> <qnz9o-6Wn-11@gated-at.bofh.it> |
| Organization | Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo |
On Sun, Oct 25, 2015 at 03:21:31PM -0400, Mimi Zohar wrote: > 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. It wold work for me. I did ad-hoc because first example that I looked at was EcryptFS. I need to add sm3_256 to that array. I've found three different ways to write it: * sm3256 (various google hits) * sm3-256 (various google hits) * sm3_256 (TPM 2.0 Structures specification) Maybe the second option would be the most appropriate? > 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. I see. My commit message is clearly inadequate. It's an option for the keyring syscalls. > Mimi /Jarkko -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] keys, trusted: select TPM2 hash algorithm Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2015-10-24 14:50 +0200
Re: [PATCH] keys, trusted: select TPM2 hash algorithm Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2015-10-25 18:40 +0100
Re: [PATCH] keys, trusted: select TPM2 hash algorithm Mimi Zohar <zohar@linux.vnet.ibm.com> - 2015-10-25 20:30 +0100
Re: [PATCH] keys, trusted: select TPM2 hash algorithm Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2015-10-26 06:50 +0100
Re: [PATCH] keys, trusted: select TPM2 hash algorithm Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2015-10-27 11:50 +0100
Re: [PATCH] keys, trusted: select TPM2 hash algorithm Mimi Zohar <zohar@linux.vnet.ibm.com> - 2015-10-27 15:00 +0100
csiph-web