Linux Security Modules development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] use SM3 instead of SM3_256
@ 2021-10-19 10:04 Tianjia Zhang
  2021-10-19 10:04 ` [PATCH v2 1/2] crypto: " Tianjia Zhang
  2021-10-19 10:04 ` [PATCH v2 2/2] tpm: " Tianjia Zhang
  0 siblings, 2 replies; 5+ messages in thread
From: Tianjia Zhang @ 2021-10-19 10:04 UTC (permalink / raw)
  To: James Bottomley, Jarkko Sakkinen, Mimi Zohar, Jonathan Corbet,
	Herbert Xu, David S. Miller, Peter Huewe, Jason Gunthorpe,
	David Howells, James Morris, Serge E. Hallyn, Jerry Snitselaar,
	linux-integrity, keyrings, linux-doc, linux-kernel, linux-crypto,
	linux-security-module
  Cc: Tianjia Zhang

According to https://tools.ietf.org/id/draft-oscca-cfrg-sm3-01.html,
SM3 always produces a 256-bit hash value and there are no plans for
other length development, so there is no ambiguity in the name of sm3.

---
v2 changes:
 - an additional macro with the same value is defined for uapi instead
   of renaming directly

Tianjia Zhang (2):
  crypto: use SM3 instead of SM3_256
  tpm: use SM3 instead of SM3_256

 Documentation/security/keys/trusted-encrypted.rst | 2 +-
 crypto/hash_info.c                                | 4 ++--
 drivers/char/tpm/tpm-sysfs.c                      | 4 ++--
 drivers/char/tpm/tpm2-cmd.c                       | 2 +-
 include/crypto/hash_info.h                        | 2 +-
 include/linux/tpm.h                               | 2 +-
 include/uapi/linux/hash_info.h                    | 3 ++-
 security/keys/trusted-keys/trusted_tpm2.c         | 2 +-
 8 files changed, 11 insertions(+), 10 deletions(-)

-- 
2.19.1.3.ge56e4f7


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-25  3:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-19 10:04 [PATCH v2 0/2] use SM3 instead of SM3_256 Tianjia Zhang
2021-10-19 10:04 ` [PATCH v2 1/2] crypto: " Tianjia Zhang
2021-10-23  0:48   ` Jarkko Sakkinen
2021-10-25  3:04     ` Tianjia Zhang
2021-10-19 10:04 ` [PATCH v2 2/2] tpm: " Tianjia Zhang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox