Re: DH_compute_key query
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 (BN_num_bytes for computed string is returning lesser value than DH_size) to 160 it is always returning 159. BN_print_fp output: 9FCB0280F7125C3C05329F27BD71028F77A9E319CDAAFECFA49042B0254B04C4F4A0C2374BB23573C524FBDCF1F304D7B70C4F5A7F25275A9C4A8035480BBC807D7CE218CDEC34C5A9A1FAC38E96EEF6CEE00D22AB6AFC6FE0574C22466365AA3B32F98267934801CBF35508D0870B1DE33C498F094ABF6037AFB21CDFF661 Memory dump of DH-d 1cdff661 6037afb2 8f094abf 1de33c49 08d0870b 01cbf355 82679348 aa3b32f9 22466365 6fe0574c 22ab6afc f6cee00d c38e96ee c5a9a1fa 18cdec34 807d7ce2 35480bbc 5a9c4a80 5a7f2527 d7b70c4f dcf1f304 73c524fb 374bb235 c4f4a0c2 b0254b04 cfa49042 19cdaafe 8f77a9e3 27bd7102 3c05329f 80f7125c 009fcb02 Thanks, Sindya -- View this message in context: http://openssl.6102.n7.nabble.com/DH-compute-key-query-tp13943p48183.html Sent from the OpenSSL - User mailing list archive at Nabble.com. __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
Re: DH_compute_key query
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 http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
Re: DH_compute_key query
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. __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org
Re: DH_compute_key query
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 the key with zeros. I tried different string functions for this purpose but it is not helping me. Can you please help me with this? -Sindya. -- View this message in context: http://openssl.6102.n7.nabble.com/DH-compute-key-query-tp13943p47257.html Sent from the OpenSSL - User mailing list archive at Nabble.com. __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager majord...@openssl.org