[389-devel] Re: csiphash on Sparc

2017-10-26 Thread William Brown
On Thu, 2017-10-26 at 12:47 +0200, Lukas Slebodnik wrote: > On (13/10/17 20:35), William Brown wrote: > > On Wed, 2017-10-11 at 13:36 +0200, Lukas Slebodnik wrote: > > > But following code should work. Please correct me if I am wrong. > > > I didn't test. > > >   char *str =

[389-devel] Re: csiphash on Sparc

2017-10-26 Thread Lukas Slebodnik
On (13/10/17 20:35), William Brown wrote: >On Wed, 2017-10-11 at 13:36 +0200, Lukas Slebodnik wrote: >> But following code should work. Please correct me if I am wrong. I didn't >> test. >> char *str = strdup("ABCDEFGH12345678"); >> char *key = malloc(16); >> >> yes, function sds_siphash13

[389-devel] Re: csiphash on Sparc

2017-10-13 Thread William Brown
On Wed, 2017-10-11 at 13:36 +0200, Lukas Slebodnik wrote: > On (11/10/17 12:42), Carsten Grzemba wrote: > > > > > > > >On 11.10.17 10:54, William Brown wrote: > > >> > > >> On Tue, 2017-10-10 at 16:28 +0200, Carsten Grzemba wrote: > > >> > > > >> > On 10.10.17 16:10,

[389-devel] Re: csiphash on Sparc

2017-10-11 Thread Lukas Slebodnik
On (11/10/17 12:42), Carsten Grzemba wrote: > > >On 11.10.17 10:54, William Brown wrote: >> >> On Tue, 2017-10-10 at 16:28 +0200, Carsten Grzemba wrote: >> > >> > On 10.10.17 16:10, William Brown wrote: >> > > >> > > On Fri, 2017-10-06 at 10:21

[389-devel] Re: csiphash on Sparc

2017-10-11 Thread Carsten Grzemba
On 11.10.17 10:54, William Brown wrote: > > On Tue, 2017-10-10 at 16:28 +0200, Carsten Grzemba wrote: > > > > On 10.10.17 16:10, William Brown wrote: > > > > > > On Fri, 2017-10-06 at 10:21 +0200, Carsten Grzemba wrote: > > > > Currently the code

[389-devel] Re: csiphash on Sparc

2017-10-11 Thread William Brown
On Tue, 2017-10-10 at 16:28 +0200, Carsten Grzemba wrote: > > On 10.10.17 16:10, William Brown wrote: > > > > On Fri, 2017-10-06 at 10:21 +0200, Carsten Grzemba wrote: > > > Currently the code src/libsds/external/csiphash/csiphash.c do not work on > > > Sparc. > > > The

[389-devel] Re: csiphash on Sparc

2017-10-10 Thread Carsten Grzemba
On 10.10.17 16:10, William Brown wrote: > > On Fri, 2017-10-06 at 10:21 +0200, Carsten Grzemba wrote: > > Currently the code src/libsds/external/csiphash/csiphash.c do not work on > > Sparc. > > The casting void* or char* to unit64_t* throws Bus-Error. > > > > The

[389-devel] Re: csiphash on Sparc

2017-10-10 Thread William Brown
On Fri, 2017-10-06 at 10:21 +0200, Carsten Grzemba wrote: > Currently the code src/libsds/external/csiphash/csiphash.c do not work on > Sparc. > The casting void* or char* to unit64_t* throws Bus-Error. > > The solution would be to copy the content of the void and char pointer so > that the