Fixes in DH Engine Interface
commit371ef71429554af66adc4f6aee78cfb0df1a1f69
authorYashpal Dutta <yashpal.dutta@freescale.com>
Thu, 24 Jan 2013 22:22:20 +0000 (25 04:07 +0545)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 25 Jan 2013 08:32:23 +0000 (25 09:32 +0100)
tree01bb649c64bc3c4ff223831a456fcabb47c4e9e9
parentd87ab5584893d06a21fe7cbf6e052d6757f9aa91
Fixes in DH Engine Interface

1) The keylen in cryptodev_dh_compute_key is already in bits. So, avoid multiplying
it with 8 while passing it to cryptodev.

2) cryptodev_dh_compute_key must return size of secret generated as expected by openssl.

Signed-off-by: Yashpal Dutta <yashpal.dutta@freescale.com>
extras/eng_cryptodev.c