crypto: picoxcell - Simplify and harden key parsing
authorMathias Krause <mathias.krause@secunet.com>
Tue, 15 Oct 2013 11:49:33 +0000 (13:49 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 16 Oct 2013 12:56:26 +0000 (20:56 +0800)
commitab827fb399b453bd7d4a49e8878bc5f7018507dd
treecdf0a38b277196463213ef5097d25ebd95fa882e
parent56902781cd037f4d6380cb037b5f50076bb82549
crypto: picoxcell - Simplify and harden key parsing

Use the common helper function crypto_authenc_extractkeys() for key
parsing. Also ensure the auth key won't overflow the hash_ctx buffer.

Cc: Jamie Iles <jamie@jamieiles.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Mathias Krause <mathias.krause@secunet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/picoxcell_crypto.c