Fix validation of key/signature