mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-08-30 12:12:40 +08:00
@@ -52,6 +52,7 @@ type SignatureVerifyReport struct {
|
|||||||
References []SignatureReferenceVerify
|
References []SignatureReferenceVerify
|
||||||
Stamps []SignatureStamp
|
Stamps []SignatureStamp
|
||||||
StampPositions []SignatureStampPosition
|
StampPositions []SignatureStampPosition
|
||||||
|
StampPositionError string
|
||||||
DigestOK bool
|
DigestOK bool
|
||||||
DataHashOK bool
|
DataHashOK bool
|
||||||
SignedValueOK bool
|
SignedValueOK bool
|
||||||
@@ -235,8 +236,7 @@ func (r *Reader) verifySignature(sigListPath string, sigRef Signature, options *
|
|||||||
report.Stamps = append(report.Stamps, sigFile.SignedInfo.StampAnnot...)
|
report.Stamps = append(report.Stamps, sigFile.SignedInfo.StampAnnot...)
|
||||||
report.StampPositions, err = r.SignatureStampPositions(report.Stamps)
|
report.StampPositions, err = r.SignatureStampPositions(report.Stamps)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
report.Error = err.Error()
|
report.StampPositionError = err.Error()
|
||||||
return report
|
|
||||||
}
|
}
|
||||||
report.DigestOK = referencesOK(report.References)
|
report.DigestOK = referencesOK(report.References)
|
||||||
signedValuePath := signatureRefPath(sigPath, sigFile.SignedValue)
|
signedValuePath := signatureRefPath(sigPath, sigFile.SignedValue)
|
||||||
|
|||||||
Reference in New Issue
Block a user