Re: What (stream) ciphers exist in the kernel?

2006-07-09 Thread Matthew R. Dempsky
On Sun, Jul 09, 2006 at 10:47:54PM +0200, Peter Philipp wrote: > I'm talking about this: > > for (i = 0; i < AESCTR_BLOCKSIZE; i++) > data[i] ^= keystream[i]; Hm, I'm not familiar with OpenBSD's crypto layer, but CTR mode should not require padding. Perhaps its a limitat

Re: What (stream) ciphers exist in the kernel?

2006-07-09 Thread Peter Philipp
On Sun, Jul 09, 2006 at 02:53:29PM -0500, Matthew R. Dempsky wrote: > > as they pretty well can encrypt per byte according to applied cryptography > > from > > schneier. > > What about CTR? OpenBSD can do AES-CTR. Oh wow my applied cryptography second edition is getting old. ;) There is no m

Re: What (stream) ciphers exist in the kernel?

2006-07-09 Thread Joachim Schipper
On Sun, Jul 09, 2006 at 09:37:35PM +0200, Peter Philipp wrote: > On Sun, Jul 09, 2006 at 06:06:35PM +0200, Joachim Schipper wrote: > > > I'm looking for a stream cipher in the kernel that is fairly secure. > > > Does it > > > exist? Alternatively I'm looking for a block cipher that does CFB > >

Re: What (stream) ciphers exist in the kernel?

2006-07-09 Thread Matthew R. Dempsky
On Sun, Jul 09, 2006 at 09:37:12PM +0200, Peter Philipp wrote: > I'm trying to encrypt a stream, per byte (8 bit) instead of per block (usually > 8 bytes) in the kernel. CFB and OFB ciphers are ok if they are a block cipher > as they pretty well can encrypt per byte according to applied cryptograp

Re: What (stream) ciphers exist in the kernel?

2006-07-09 Thread Peter Philipp
On Sun, Jul 09, 2006 at 06:06:35PM +0200, Joachim Schipper wrote: > > I'm looking for a stream cipher in the kernel that is fairly secure. Does > > it > > exist? Alternatively I'm looking for a block cipher that does CFB > > (Cipher Feedback Mode). There is a prototype stub for DES CFB in > >

Re: What (stream) ciphers exist in the kernel?

2006-07-09 Thread Joachim Schipper
On Sun, Jul 09, 2006 at 05:34:12PM +0200, Peter Philipp wrote: > Hi, > > I'm looking for a stream cipher in the kernel that is fairly secure. Does it > exist? Alternatively I'm looking for a block cipher that does CFB > (Cipher Feedback Mode). There is a prototype stub for DES CFB in > /sys/c

What (stream) ciphers exist in the kernel?

2006-07-09 Thread Peter Philipp
Hi, I'm looking for a stream cipher in the kernel that is fairly secure. Does it exist? Alternatively I'm looking for a block cipher that does CFB (Cipher Feedback Mode). There is a prototype stub for DES CFB in /sys/crypto/des.h but I don't see a des.c file in the 3.9 sources, is it taken ou