mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 13:56:32 +08:00
1 parent
ee3fd02a0a
commit
64f9ec4241
87 files changed
+2693
-2289
No files matched your search
@@ -35,6 +35,7 @@ import (
|
||||
"github.com/emmansun/gmsm/sm2"
|
||||
"github.com/emmansun/gmsm/sm3"
|
||||
"github.com/emmansun/gmsm/smx509"
|
||||
baseimage "github.com/xiaoqidun/ofdgo/internal/base/image"
|
||||
)
|
||||
|
||||
// signatureWriteKey 已验证签署身份
|
||||
@@ -157,7 +158,7 @@ func signatureWriteIdentity(options SignatureWriteOptions) (*signatureWriteKey,
|
||||
return nil, fmt.Errorf("invalid seal maker signature")
|
||||
}
|
||||
mediaType, media := probeSealMedia(seal.PicData)
|
||||
if len(media) == 0 || mediaType != normalizeSealType(seal.PicType) {
|
||||
if len(media) == 0 || mediaType != baseimage.NormalizeFormat(seal.PicType) {
|
||||
return nil, fmt.Errorf("invalid seal picture")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user