mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
KEYS: trusted: Expose common functionality [ver #2]
This patch exposes some common functionality needed to send TPM commands. Several functions from keys/trusted.c are exposed for use by the new tpm key subtype and a module dependency is introduced. In the future, common functionality between the trusted key type and the asym_tpm subtype should be factored out into a common utility library. Signed-off-by: Denis Kenzior <[email protected]> Signed-off-by: David Howells <[email protected]> Tested-by: Marcel Holtmann <[email protected]> Reviewed-by: Marcel Holtmann <[email protected]> Signed-off-by: James Morris <[email protected]>
This commit is contained in:
parent
ad4b1eb5fb
commit
e1ea9f8602
3 changed files with 22 additions and 5 deletions
|
|
@ -24,6 +24,7 @@ config ASYMMETRIC_PUBLIC_KEY_SUBTYPE
|
|||
config ASYMMETRIC_TPM_KEY_SUBTYPE
|
||||
tristate "Asymmetric TPM backed private key subtype"
|
||||
depends on TCG_TPM
|
||||
depends on TRUSTED_KEYS
|
||||
select CRYPTO_HMAC
|
||||
select CRYPTO_SHA1
|
||||
select CRYPTO_HASH_INFO
|
||||
|
|
|
|||
Loading…
Reference in a new issue