Incorrect checks for DSA keys.

Fixes #5