OSDN Git Service

crypto: ccree - enable support for hardware keys
authorGilad Ben-Yossef <gilad@benyossef.com>
Mon, 23 Apr 2018 07:25:14 +0000 (08:25 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 5 May 2018 06:52:43 +0000 (14:52 +0800)
commita794d8d876d21d165721b5460264ca811245f5bd
tree6e052263b2ee918d639b94055c3466a4d3c2a3bc
parent658c9d2b9f374c835d0348d852a3f002196628d0
crypto: ccree - enable support for hardware keys

Enable CryptoCell support for hardware keys.

Hardware keys are regular AES keys loaded into CryptoCell internal memory
via firmware, often from secure boot ROM or hardware fuses at boot time.

As such, they can be used for enc/dec purposes like any other key but
cannot (read: extremely hard to) be extracted since since they are not
available anywhere in RAM during runtime.

The mechanism has some similarities to s390 secure keys although the keys
are not wrapped or sealed, but simply loaded offline. The interface was
therefore modeled based on the s390 secure keys support.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c
drivers/crypto/ccree/cc_cipher.c
drivers/crypto/ccree/cc_cipher.h