OSDN Git Service

crypto: inside-secure - fix the hash then encrypt/decrypt types
authorAntoine Tenart <antoine.tenart@bootlin.com>
Mon, 14 May 2018 13:11:00 +0000 (15:11 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 26 May 2018 16:11:39 +0000 (00:11 +0800)
commit8a21f067e0cff89eb7e32ff383d328d9e1de7697
tree5d2e590c08ad7df876f73820d29da2fc0ec3b5eb
parentce6795593ba572ace9195b8e573e15f86fb411dd
crypto: inside-secure - fix the hash then encrypt/decrypt types

This commit fixes the CONTEXT_CONTROL_TYPE_HASH_ENCRYPT_OUT and
CONTEXT_CONTROL_TYPE_HASH_DECRYPT_OUT types by assigning the right
value, and by renaming CONTEXT_CONTROL_TYPE_HASH_DECRYPT_OUT to
CONTEXT_CONTROL_TYPE_HASH_DECRYPT_IN.

This is not submitted as a fix for older kernel versions as these two
defines weren't used back then.

Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.h