s390/crypto: Check des3_ede keys for uniqueness in fips mode
authorMatthew Rosato <mjrosato@linux.vnet.ibm.com>
Thu, 15 Dec 2016 13:54:30 +0000 (14:54 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 31 Jan 2017 09:46:02 +0000 (10:46 +0100)
commitf3d3584faf29e8901e00794f4e5f770b9f1eb7a6
tree344a325f027c62ce1bb0aba45a32651bf5959568
parent9437964885f84cd0c584e2d30ffbf7a5a84b77e4
s390/crypto: Check des3_ede keys for uniqueness in fips mode

Triple-DES implementations will soon be required to check
for uniqueness of keys with fips mode enabled. Add checks
to ensure none of the 3 keys match.

Signed-off-by: Matthew Rosato <mjrosato@linux.vnet.ibm.com>
Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/crypto/des_s390.c