[PATCHv1] crypto: caam - set RDB bit in security configuration register

2013-03-12 Thread Vakul Garg
This change is required for post SEC-5.0 devices which have RNG4. Setting RDB in security configuration register allows CAAM to use the Random Data Buffer to be filled by a single request. The Random Data Buffer is large enough for ten packets to get their IVs from a single request. If the Random

[PATCH][REPOST] crypto: caam - Fix missing init of '.type' in AEAD algos.

2013-03-12 Thread Vakul Garg
Following AEAD algo templates are updated for '.type' initialization. (a) authenc(hmac(sha224),cbc(aes)) (b) authenc(hmac(sha384),cbc(aes)) (c) authenc(hmac(sha224),cbc(des3_ede)) (d) authenc(hmac(sha384),cbc(des3_ede)) (e) authenc(hmac(sha224),cbc(des))

Re: authencesn compatibility problemn between software crypto and talitos driver

2013-03-12 Thread Horia Geantă
On 3/11/2013 9:15 AM, Steffen Klassert wrote: Ccing Horia Geanta, he did the esn implementation for talitos. On Fri, Mar 08, 2013 at 03:27:48PM +, Chaoxing Lin wrote: 1. Can any one point me which RFC describe how exactly authencesn should work? The ESN algorithm is described in RFC

RE: authencesn compatibility problemn between software crypto and talitos driver

2013-03-12 Thread Chaoxing Lin
Seems that somehow I got confused, considering the one/single-pass over data description the same as combined mode algorithm. I will post a fix or revert the patch if HW does not allow the correct behaviour. Horia, Do you plan to fix talitos driver to make it ESN capable in the near