dh: add parameters of 512..4096 bits
dh: abort when other public key is too large/small