commit | 56902781cd037f4d6380cb037b5f50076bb82549 | [log] [tgz] |
---|---|---|
author | Mathias Krause <mathias.krause@secunet.com> | Tue Oct 15 13:49:32 2013 +0200 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Wed Oct 16 20:56:26 2013 +0800 |
tree | 644505a855424b0fa61dae07a5675e765ee88283 | |
parent | fddc2c43c48d62f70553785d1220505f33aebe0e [diff] |
crypto: ixp4xx - Simplify and harden key parsing Use the common helper function crypto_authenc_extractkeys() for key parsing. Also ensure the keys do fit into the corresponding buffers. Otherwise memory corruption might occur. Cc: Christian Hohnstaedt <chohnstaedt@innominate.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>