Error message of sign and verify were incorrect if the keys were missing