Re: DH_compute_key query

2014-01-17 Thread sindyak
Steve, It is word aligned. I tried different ways to prepend the value in DH-d but it is not working. When I dump the memory it shows leading zeros but when I print the same DH-d using BN_print_fp it does not show zeros which is expected but leading zeros are not increasing the num_bytes

Re: DH_compute_key query

2014-01-17 Thread sindyak
it is BIGNUM-d not DH-d -- View this message in context: http://openssl.6102.n7.nabble.com/DH-compute-key-query-tp13943p48184.html Sent from the OpenSSL - User mailing list archive at Nabble.com. __ OpenSSL Project

Re: DH_compute_key query

2014-01-17 Thread sindyak
Thanks Steve. Issue is fixed please ignore my previous email. -- View this message in context: http://openssl.6102.n7.nabble.com/DH-compute-key-query-tp13943p48186.html Sent from the OpenSSL - User mailing list archive at Nabble.com.

Re: DH_compute_key query

2013-11-08 Thread sindyak
Steve, I am also facing a similar issue. In my case the key generated by DH_compute_key need to be used by hash function for authentication purpose. Even after prepending the key with zeros, hash'd value is not same as the other end. Is there any built-in or openSSL function that will prepend