ecdh: Use different exception types for different errors

This sneakily fixes some test cases typos, too.
3 files changed