]> bbs.cooldavid.org Git - net-next-2.6.git/commit
crypto: talitos - Add handling for SEC 3.x treatment of link table
authorLee Nipper <lee.nipper@freescale.com>
Wed, 30 Jul 2008 08:26:57 +0000 (16:26 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 13 Aug 2008 10:08:33 +0000 (20:08 +1000)
commitf3c85bc1bc72b4cc8d58664a490a9d42bdb6565a
treee3582146af658bd9828b137013615b86199fbbd6
parentb0e0c9e7f6d5764633e93944dafd896dd6097318
crypto: talitos - Add handling for SEC 3.x treatment of link table

Later SEC revision requires the link table (used for scatter/gather)
to have an extra entry to account for the total length in descriptor [4],
which contains cipher Input and ICV.
This only applies to decrypt, not encrypt.
Without this change, on 837x, a gather return/length error results
when a decryption uses a link table to gather the fragments.
This is observed by doing a ping with size of 1447 or larger with AES,
or a ping with size 1455 or larger with 3des.

So, add check for SEC compatible "fsl,3.0" for using extra link table entry.

Signed-off-by: Lee Nipper <lee.nipper@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/talitos.c