DSA can't be used for encryption with the bouncycastle library, so make sure this situation is properly handled.