dh_init and crypto_mod_exp: clarification

Jouni Malinen j
Sat Jun 9 01:56:24 PDT 2012


On Fri, Jun 08, 2012 at 06:32:26PM +0000, raghunathan.kailasanathan at wipro.com wrote:
> Well, er..yes, i got it wrong.. dh_init() does pass it in big-endian format. What is
> puzzling me is that the private key data and dh prime on my machine get corrupted in
> the mp_read_unsigned_bin() function. For example the prime in the a->dp[] array looks 
> as below (looks corrupted every 4th byte or something..)
> 
> ff ff ff 0f ff ff ff 0f

That does not look corrupted to me assuming this is 32-bit build and
DIGIT_BIT=28 (the default)..

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list