diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2011-05-14 22:08:02 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-05-19 14:37:59 +1000 |
commit | ddbb80884a37601026ac3e5eaf176c4296231862 (patch) | |
tree | 3c4d486db42bbb8dbba59021fbd64aae54486403 /drivers/net/vxge | |
parent | 2930d49768e5276da4fbed9d9cc1bd40ed25818e (diff) |
crypto: caam - fix decryption shared vs. non-shared key setting
Key sharing is enabled by default in the shared descriptor.
Using CBC decrypt, AES has to alter the key in order to decrypt.
During high traffic decryption rates, i.e, when sharing starts to
take place, we need to use a different OPERATION option to tell AES
that the key was already altered by the PRIOR descriptor - we need
the following kind of logic:
if ( shared )
operation where AES uses decryption key (DK=1)
else
operation where AES uses encryption key (DK=0)
this patch implements this logic using a conditional and
a non-conditional local jump within the decryption job
descriptor.
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/net/vxge')
0 files changed, 0 insertions, 0 deletions