random(4) overheads question

2011-09-26 Thread Sandy Harris
I'm working on a demon that collects timer randomness, distills it some, and pushes the results into /dev/random. My code produces the random material in 32-bit chunks. The current version sends it to /dev/random 32 bits at a time, doing a write() and an entropy-update ioctl() for each chunk.

Re: [RFC v2.1 0/6] evm: digital signature verification extension

2011-09-26 Thread Kasatkin, Dmitry
On Tue, Sep 20, 2011 at 4:24 PM, Mimi Zohar zo...@linux.vnet.ibm.com wrote: On Tue, 2011-09-13 at 17:20 +0300, Dmitry Kasatkin wrote: Hello, Changes to version 2.0: - MPI patch has been split to smaller in order to go to mailing lists.   First 2 patches include only source and header files

Re: [PATCH v3 04/17] crypto: Add userspace configuration API

2011-09-26 Thread Steffen Klassert
On Wed, Sep 21, 2011 at 11:02:38AM +0200, Steffen Klassert wrote: + +static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) +{ + struct nlattr *attrs[CRYPTOCFGA_MAX+1]; + struct crypto_link *link; + int type, err; + + type = nlh-nlmsg_type; + if

群发软件+买家搜索机+最新广交会买家、海关数据,B2B询盘买家500万。

2011-09-26 Thread 保证有买家回复
群发软件+买家搜索机+109届广交会买家、展会买家、海关数据,B2B询盘买家500万。 一共8个包(数据是全行业的,按照行业分好类,并且可以按照关键词查询的): 1,2011春季109届广交会买家数据库新鲜出炉,超级新鲜买家,新鲜数据,容易成单! 2,最新全球买家库,共451660条数据。 3,2008年,2009年,2010年 春季+秋季广交会买家名录,103 104 105 106 107 108 共六届 共120.6万数据。 4,2010年国际促销协会(PPAI)成员名单 PPAI Members Directory,非常重要的大买家。

[PATCH 1/3] crypto: tcrypt: add ctr(twofish) speed test

2011-09-26 Thread Jussi Kivilinna
Signed-off-by: Jussi Kivilinna jussi.kivili...@mbnet.fi --- crypto/tcrypt.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c index e353a28..fc35650 100644 --- a/crypto/tcrypt.c +++ b/crypto/tcrypt.c @@ -1039,6 +1039,10 @@ static int

[PATCH 2/3] crypto: twofish-x86-asm: make assembler functions use twofish_ctx instead of crypto_tfm

2011-09-26 Thread Jussi Kivilinna
This needed by 3-way twofish patch to be able to easily use one block assembler functions. As glue code is shared between i586/x86_64 apply change to i586 assembler too. Also export assembler functions for 3-way parallel twofish module. CC: Joachim Fritschi jfrits...@freenet.de Signed-off-by:

[PATCH 3/3] crypto: twofish: add 3-way parallel x86_64 assembler implemention

2011-09-26 Thread Jussi Kivilinna
Patch adds 3-way parallel x86_64 assembly implementation of twofish as new module. New assembler functions crypt data in three blocks chunks, improving cipher performance on out-of-order CPUs. Patch has been tested with tcrypt and automated filesystem tests. Summary of the tcrypt benchmarks:

Re: [RFC v2.1 0/6] evm: digital signature verification extension

2011-09-26 Thread James Morris
On Mon, 26 Sep 2011, Kasatkin, Dmitry wrote: It seems nobody wants to share their thoughts about it? Does this silence mean acceptance? Should I prepare final patches for merge? Not yet. I'd like to hear what the crypto folk think about the crypto. -- James Morris jmor...@namei.org -- To

[PATCH v4 00/17] crypto user configuration api

2011-09-26 Thread Steffen Klassert
This patchset adds a netlink based user configuration API for the crypto layer, similar to the configuration API of xfrm. The patchset is based on the current cryptodev tree. A userspace tool that makes use of the configuration API is available at

[PATCH v4 01/17] crypto: Add a flag to identify crypto instances

2011-09-26 Thread Steffen Klassert
The upcomming crypto user configuration api needs to identify crypto instances. This patch adds a flag that is set if the algorithm is an instance that is build from templates. Signed-off-by: Steffen Klassert steffen.klass...@secunet.com --- crypto/algapi.c|1 +

[PATCH v4 03/17] crypto: Export crypto_remove_final

2011-09-26 Thread Steffen Klassert
The upcomming crypto usrerspace configuration api needs to remove the spawns on top on an algorithm, so export crypto_remove_final. Signed-off-by: Steffen Klassert steffen.klass...@secunet.com --- crypto/algapi.c |5 ++--- crypto/internal.h |1 + 2 files changed, 3 insertions(+), 3

[PATCH v4 04/17] crypto: Add userspace configuration API

2011-09-26 Thread Steffen Klassert
This patch adds a basic userspace configuration API for the crypto layer. With this it is possible to instantiate, remove and to show crypto algorithms from userspace. Signed-off-by: Steffen Klassert steffen.klass...@secunet.com --- crypto/Kconfig |7 + crypto/Makefile

[PATCH v4 05/17] crypto: Add a report function pointer to crypto_type

2011-09-26 Thread Steffen Klassert
We add a report function pointer to struct crypto_type. This function pointer is used from the crypto userspace configuration API to report crypto algorithms to userspace. Signed-off-by: Steffen Klassert steffen.klass...@secunet.com --- crypto/crypto_user.c|5 +

[PATCH v4 06/17] crypto: Add userspace report for larval type algorithms

2011-09-26 Thread Steffen Klassert
Signed-off-by: Steffen Klassert steffen.klass...@secunet.com --- crypto/crypto_user.c | 12 include/linux/cryptouser.h |5 + 2 files changed, 17 insertions(+), 0 deletions(-) diff --git a/crypto/crypto_user.c b/crypto/crypto_user.c index aa67c74..8a0c5c6 100644 ---

[PATCH] whirlpool: count rounds from 0

2011-09-26 Thread Alexey Dobriyan
rc[0] is unused because rounds are counted from 1. Save an u64! Signed-off-by: Alexey Dobriyan adobri...@gmail.com --- crypto/wp512.c | 18 -- 1 file changed, 12 insertions(+), 6 deletions(-) --- a/crypto/wp512.c +++ b/crypto/wp512.c @@ -762,11 +762,17 @@ static const u64

[PATCH v4 08/17] crypto: Add userspace report for ahash type algorithms

2011-09-26 Thread Steffen Klassert
Signed-off-by: Steffen Klassert steffen.klass...@secunet.com --- crypto/ahash.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/crypto/ahash.c b/crypto/ahash.c index f669822..a3e6ef9 100644 --- a/crypto/ahash.c +++ b/crypto/ahash.c @@ -21,6 +21,8 @@

[PATCH v4 09/17] crypto: Add userspace report for blkcipher type algorithms

2011-09-26 Thread Steffen Klassert
Signed-off-by: Steffen Klassert steffen.klass...@secunet.com --- crypto/blkcipher.c | 25 + include/linux/cryptouser.h | 10 ++ 2 files changed, 35 insertions(+), 0 deletions(-) diff --git a/crypto/blkcipher.c b/crypto/blkcipher.c index

[PATCH v4 11/17] crypto: Add userspace report for givcipher type algorithms

2011-09-26 Thread Steffen Klassert
Signed-off-by: Steffen Klassert steffen.klass...@secunet.com --- crypto/ablkcipher.c | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/crypto/ablkcipher.c b/crypto/ablkcipher.c index 5ea49ad..a816f24 100644 --- a/crypto/ablkcipher.c +++

[PATCH v4 12/17] crypto: Add userspace report for aead type algorithms

2011-09-26 Thread Steffen Klassert
Signed-off-by: Steffen Klassert steffen.klass...@secunet.com --- crypto/aead.c | 25 + include/linux/cryptouser.h |9 + 2 files changed, 34 insertions(+), 0 deletions(-) diff --git a/crypto/aead.c b/crypto/aead.c index 6729e8f..bb641bd 100644

[PATCH v4 13/17] crypto: Add userspace report for nivaead type algorithms

2011-09-26 Thread Steffen Klassert
Signed-off-by: Steffen Klassert steffen.klass...@secunet.com --- crypto/aead.c | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/crypto/aead.c b/crypto/aead.c index bb641bd..701556f 100644 --- a/crypto/aead.c +++ b/crypto/aead.c @@ -190,6 +190,28 @@

[PATCH v4 14/17] crypto: Add userspace report for pcompress type algorithms

2011-09-26 Thread Steffen Klassert
Signed-off-by: Steffen Klassert steffen.klass...@secunet.com --- crypto/pcompress.c | 18 ++ include/linux/cryptouser.h |5 + 2 files changed, 23 insertions(+), 0 deletions(-) diff --git a/crypto/pcompress.c b/crypto/pcompress.c index f7c4a7d..fefda78 100644

[PATCH v4 15/17] crypto: Add userspace report for rng type algorithms

2011-09-26 Thread Steffen Klassert
Signed-off-by: Steffen Klassert steffen.klass...@secunet.com --- crypto/rng.c | 20 include/linux/cryptouser.h |6 ++ 2 files changed, 26 insertions(+), 0 deletions(-) diff --git a/crypto/rng.c b/crypto/rng.c index 45229ae..feb7de0 100644 ---

[PATCH v4 16/17] crypto: Add userspace report for cipher type algorithms

2011-09-26 Thread Steffen Klassert
Signed-off-by: Steffen Klassert steffen.klass...@secunet.com --- crypto/crypto_user.c | 29 + include/linux/cryptouser.h |8 2 files changed, 37 insertions(+), 0 deletions(-) diff --git a/crypto/crypto_user.c b/crypto/crypto_user.c index

[PATCH v4 17/17] crypto: Add userspace report for compress type algorithms

2011-09-26 Thread Steffen Klassert
Signed-off-by: Steffen Klassert steffen.klass...@secunet.com --- crypto/crypto_user.c | 20 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/crypto/crypto_user.c b/crypto/crypto_user.c index 52459ae..748990f 100644 --- a/crypto/crypto_user.c +++