[PATCH] [crypto] tcrypto group common used speed-templates

2008-01-19 Thread Sebastian Siewior
Some crypto ciphers which are impleneted support similar key sizes (16,24 32 byte). They can be grouped together and use a common templatte instead of their own which contains the same data. Signed-off-by: Sebastian Siewior [EMAIL PROTECTED] --- crypto/tcrypt.c | 70 -

[PATCH] [crypto] tcrypt: shrink speed templates

2008-01-19 Thread Sebastian Siewior
The speed templates as it look always the same. The key size is repeated for each block size and we test always the same block size. The addition of one inner loop makes it possible to get rid of the struct and it is possible to use a tiny u8 array :) Signed-off-by: Sebastian Siewior [EMAIL

[PATCH] [crypto] cipher: add return parameter

2008-01-19 Thread Sebastian Siewior
Software usually can't fail because they don't do anything dangerous. However HW implementation could fail for $reason. This patch changes the prototype and adjusts all ciphers. Most of them return zero except s390 and geode since the HW provides a return parameter. Signed-off-by: Sebastian

[PATCH] [crypto] blockmode, use cipher ret val

2008-01-19 Thread Sebastian Siewior
Signed-off-by: Sebastian Siewior [EMAIL PROTECTED] --- crypto/cbc.c | 22 +- crypto/ecb.c |7 --- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/crypto/cbc.c b/crypto/cbc.c index a525dcc..15c8095 100644 --- a/crypto/cbc.c +++ b/crypto/cbc.c @@