crypto: picoxcell - fix boolean and / or confusion
authorJamie Iles <jamie@jamieiles.com>
Tue, 13 Dec 2011 09:54:06 +0000 (09:54 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 20 Dec 2011 07:20:05 +0000 (15:20 +0800)
commita9c57a9c6afb41951aa08317d0cd65a66aed38df
tree2dcb1dfedfd642ff03da7e1f1afc43baaebc80e1
parenta1a38c4c6a0f73e8a9dc217c0e4e0ac483a89f25
crypto: picoxcell - fix boolean and / or confusion

The AES engine only supports 128 and 256 bit keys so we should correctly
test for that.

Cc: Herbert Xu <herbert@gondor.apana.org.au>
Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/picoxcell_crypto.c