pkey_ec_derive
return pkey_ec_derive(ctx, key, keylen);
if (!pkey_ec_derive(ctx, NULL, &ktmplen))
if (!pkey_ec_derive(ctx, ktmp, &ktmplen))