mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-17 18:28:24 +08:00
update vendor keybase/go-crypto (#10234)
This commit is contained in:
13
vendor/github.com/keybase/go-crypto/openpgp/write.go
generated
vendored
13
vendor/github.com/keybase/go-crypto/openpgp/write.go
generated
vendored
@ -458,7 +458,18 @@ func AttachedSign(out io.WriteCloser, signed Entity, hints *FileHints,
|
||||
return
|
||||
}
|
||||
|
||||
hasher := crypto.SHA512
|
||||
if algo := config.Compression(); algo != packet.CompressionNone {
|
||||
var compConfig *packet.CompressionConfig
|
||||
if config != nil {
|
||||
compConfig = config.CompressionConfig
|
||||
}
|
||||
out, err = packet.SerializeCompressed(out, algo, compConfig)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
hasher := config.Hash() // defaults to SHA-256
|
||||
|
||||
ops := &packet.OnePassSignature{
|
||||
SigType: packet.SigTypeBinary,
|
||||
|
Reference in New Issue
Block a user