Re: des: compilation error on MacOS X

2007-03-13 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > Simon Josefsson wrote: >> I changed the namespace to gl_des as below. > > After the complaints "gnulib is changing too fast" a few weeks ago, I think > it may help the gnulib users if we keep track of the incompatible changes > (removed modules, renamed f

Re: des: compilation error on MacOS X

2007-03-12 Thread Simon Josefsson
hanges > (removed modules, renamed functions etc.). I'm making a start by adding this > NEWS file. Makes sense, thanks! Although I believe the impact of this should be small, if people use the gc-des module as the high-level interface to DES functions. Doing that is better. I added a note about this. /Simon

Re: des: compilation error on MacOS X

2007-03-12 Thread Bruno Haible
Simon Josefsson wrote: > I changed the namespace to gl_des as below. After the complaints "gnulib is changing too fast" a few weeks ago, I think it may help the gnulib users if we keep track of the incompatible changes (removed modules, renamed functions etc.). I'm making a start by adding this NE

Re: des: compilation error on MacOS X

2007-03-12 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > Hi Simon, > > On MacOS X 10.3.9 the 'gc-gnulib' (or 'gc-des') module fails to build: > > depbase=`echo gc-gnulib.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ > gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEE

Re: gc-des: needs stdbool

2007-03-12 Thread Simon Josefsson
Bruno Haible <[EMAIL PROTECTED]> writes: > Hi Simon, > > The gc-des module contains the lib/des.h header, which include . > So it should depend on 'stdbool'. Currently, it doesn't, and the compiler > on Solaris 8 complains: > > cc -O -DHAVE_CONFIG_H -I.

des: compilation error on MacOS X

2007-03-11 Thread Bruno Haible
Hi Simon, On MacOS X 10.3.9 the 'gc-gnulib' (or 'gc-des') module fails to build: depbase=`echo gc-gnulib.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DNO_XMALLOC -DEXEEXT=\"\&quo

gc-des: needs stdbool

2007-03-11 Thread Bruno Haible
Hi Simon, The gc-des module contains the lib/des.h header, which include . So it should depend on 'stdbool'. Currently, it doesn't, and the compiler on Solaris 8 complains: cc -O -DHAVE_CONFIG_H -I. -I.. -g -c des.c "./des.h", line 28: cannot find include

Re: warnings in 'des' module

2006-05-10 Thread Simon Josefsson
char "=" pointer to const char > "des.c", line 636: warning: assignment type mismatch: > pointer to unsigned char "=" pointer to char > > Here is a fix: Add casts. Applied, thanks! > Bruno > > > *** lib/des.c.bak 2005-10-21 14:2

warnings in 'des' module

2006-05-08 Thread Bruno Haible
ointer to unsigned char "=" pointer to char Here is a fix: Add casts. Bruno *** lib/des.c.bak 2005-10-21 14:28:18.0 +0200 --- lib/des.c 2006-05-07 16:50:07.0 +0200 *** *** 1,5 /* des.c --- DES and Triple-DES encryption/decryption Algorithm ! * Copyr

bug in gc-des module

2006-01-11 Thread Bruno Haible
The des_setkey function still collides with the one on MacOS X: gcc -DHAVE_CONFIG_H -I. -I../../../megatestdir/gc-des/lib -I.. -g -O2 -c ../../../megatestdir/gc-des/lib/gc-gnulib.c In file included from ../../../megatestdir/gc-des/lib/gc-gnulib.c:65: ../../../megatestdir/gc-des/lib/des.h:62

Re: namespace conflict for des

2005-11-09 Thread Paul Eggert
crosystems, Inc. and is provided for > * unrestricted use provided that I think that license is OK; it's compatible with the LGPL. > Unless someone feel strongly (and, preferably, even want to do the leg > work...) I'll simply fix the

Re: namespace conflict for des

2005-10-24 Thread Simon Josefsson
API uses as input 64 byte long strings, where each char is either "0" or "1". I.e., it uses an ASCII-encoding of each block. That is definitely not something we should promote. However, I discovered that glibc has another DES implementation: ecb_crypt and cbc_crypt in rpc/des

Re: namespace conflict for des

2005-10-24 Thread Simon Josefsson
; on that system, I get a man page for libcrypt. 'des_setkey' isn't mention on the page. However, considering the prototype in unistd.h: int des_setkey __P((const char *key)); I would suspect the function somehow sets a global DES key schedule struct somewhere. Oh. There is a POSIX

Re: namespace conflict for des

2005-10-24 Thread Stepan Kasal
Hello, On Sun, Oct 23, 2005 at 10:25:48PM -0700, Paul Eggert wrote: > Simon Josefsson <[EMAIL PROTECTED]> writes: > > In file included from smbutil.c:34: > > lib/des.h:62: conflicting types for `des_setkey' ... > If they are supposed to have the same semantics but the FreeBSD > versions are buggy,

Re: namespace conflict for des

2005-10-23 Thread Paul Eggert
Simon Josefsson <[EMAIL PROTECTED]> writes: > I get this on freebsd 4.11: > > In file included from smbutil.c:34: > lib/des.h:62: conflicting types for `des_setkey' > /usr/include/unistd.h:128: previous declaration of `des_setkey' > *** Error code 1 > > Should I rename the des_* functions to gl_de

namespace conflict for des

2005-10-23 Thread Simon Josefsson
I get this on freebsd 4.11: In file included from smbutil.c:34: lib/des.h:62: conflicting types for `des_setkey' /usr/include/unistd.h:128: previous declaration of `des_setkey' *** Error code 1 Should I rename the des_* functions to gl_des_* or is there some cleaner approach? __

des, des-tests, gc-des, gc-des-tests (was: Re: des)

2005-10-21 Thread Simon Josefsson
:10 - @@ -1,5 +1,13 @@ 2005-10-21 Simon Josefsson <[EMAIL PROTECTED]> + * modules/des, modules/des-tests: New files. + + * modules/gc-des, modules/gc-des-tests: New files. + + * tests/test-des.c, tests/test-gc-des.c: New file. + +2005-10-21 Simon Josefsson &

Re: des

2005-10-17 Thread Simon Josefsson
Has anyone else reviewed this module? Ok to install? ___ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib

Re: des

2005-10-14 Thread Simon Josefsson
\. S/, s/ > >> + * is no need for a decryption rotate tab. >> + */ >> +static const unsigned char encrypt_rotate_tab[16] = { >> + 1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1 >> +}; >> + >> +/* >> + * Table with weak DES keys sorted in ascending order.

Re: des

2005-10-14 Thread Ralf Wildenhues
* Ralf Wildenhues wrote on Fri, Oct 14, 2005 at 01:55:32PM CEST: > * Simon Josefsson wrote on Fri, Oct 14, 2005 at 01:23:25PM CEST: > > +/* > > + * Table with weak DES keys sorted in ascending order. > > + * In DES their are 64 known keys wich are weak. They are weak >

Re: des

2005-10-14 Thread Ralf Wildenhues
eir s/their/there/; I'd also do s/\. S/, s/ > + * is no need for a decryption rotate tab. > + */ > +static const unsigned char encrypt_rotate_tab[16] = { > + 1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1 > +}; > + > +/* > + * Table with weak DES keys sorted in ascending

des

2005-10-14 Thread Simon Josefsson
Ok to install? Comments welcome, of course. Index: modules/des === RCS file: modules/des diff -N modules/des --- /dev/null 1 Jan 1970 00:00:00 - +++ modules/des 14 Oct 2005 11:23:02 - @@ -0,0 +1,25 @@ +Description: +DES