ecdh_plain_derive
if (!ecdh_plain_derive(vpecdhctx, NULL, &stmplen, 0))
if (!ecdh_plain_derive(vpecdhctx, stmp, &stmplen, stmplen))
return ecdh_plain_derive(vpecdhctx, secret, psecretlen, outlen);