Hi,
Am Donnerstag, den 27.08.2015, 09:47 +0200 schrieb Joachim Breitner:
> > diff --git a/cbits/cryptonite_scrypt.c b/cbits/cryptonite_scrypt.c
> > index fc3fd04..eaf28ac 100644
> > --- a/cbits/cryptonite_scrypt.c
> > +++ b/cbits/cryptonite_scrypt.c
> > @@ -46,7 +46,7 @@ static void blockmix_salsa8(uint32_t *in,
> > uint32_t *out, uint3
> >
> > static inline uint64_t integerify(uint32_t *B, const uint32_t r)
> > {
> > - return le64_to_cpu(*((uint64_t *) (B + (2*r-1) * 16)));
> > + return B[(2*r-1) * 16] | (uint64_t)B[(2*r-1) * 16 + 1] <<
> > 32;
> > }
> >
> > static inline uint32_t load32(const uint8_t *p)
> >
> >
> > Does anyone have a big-endian system to test that?
>
> I’ll try on a s390x porter box.
seems to work. Submitted at
https://github.com/vincenthz/cryptonite/issues/30
Greetings,
Joachim
--
Joachim "nomeata" Breitner
Debian Developer
nomeata@debian.org | ICQ# 74513189 | GPG-Keyid: F0FBF51F
JID: nomeata@joachim-breitner.de | http://people.debian.org/~nomeata
Attachment:
signature.asc
Description: This is a digitally signed message part