added checkDerSignature method