discrete log middle attack