Initialize publicvalue and sharedsecret to NULL for better robustness

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>