dh_init and crypto_mod_exp: clarification

Jouni Malinen j
Wed Jun 6 05:13:14 PDT 2012


On Tue, Jun 05, 2012 at 04:16:26PM +0000, raghunathan.kailasanathan at wipro.com wrote:
> The function crypto_mod_exp() expects a big endian byte array (lowest byte at the highest index) as input. But I noticed that when crypto_mod_exp() is called from dh_init() the generator, private key and prime byte arrays are all in little endian format ? (I might have missed something obvious, please correct me) 

What makes you believe that the values used by dh_init() are in little
endian format?

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list