[PATCH 2/4] crypto: caam - fix decryption shared vs. non-shared key setting

2011-05-14 Thread Kim Phillips
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

[PATCH 3/4] crypto: caam - remove unused authkeylen from caam_ctx

2011-05-14 Thread Kim Phillips
Signed-off-by: Kim Phillips kim.phill...@freescale.com --- drivers/crypto/caam/caamalg.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/caam/caamalg.c b/drivers/crypto/caam/caamalg.c index 4c69ba7..672abf3 100644 --- a/drivers/crypto/caam/caamalg.c +++

[PATCH 4/4] crypto: caam - add support for sha512 variants of existing AEAD algorithms

2011-05-14 Thread Kim Phillips
In doing so, sha512 sized keys would not fit with the current descriptor inlining mechanism, so we now calculate whether keys should be referenced instead by pointers in the shared descriptor. also, use symbols for descriptor text lengths, and, ahem, unmap and free key i/o memory in cra_exit.