commit | ab827fb399b453bd7d4a49e8878bc5f7018507dd | [log] [tgz] |
---|---|---|
author | Mathias Krause <mathias.krause@secunet.com> | Tue Oct 15 13:49:33 2013 +0200 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Wed Oct 16 20:56:26 2013 +0800 |
tree | cdf0a38b277196463213ef5097d25ebd95fa882e | |
parent | 56902781cd037f4d6380cb037b5f50076bb82549 [diff] |
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>