mirror of
https://github.com/FiloSottile/age.git
synced 2025-12-23 13:35:14 +00:00
3
age.go
3
age.go
@@ -168,9 +168,6 @@ func Decrypt(src io.Reader, identities ...Identity) (io.Reader, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to read header: %v", err)
|
||||
}
|
||||
if len(hdr.Recipients) > 20 {
|
||||
return nil, errors.New("too many recipients")
|
||||
}
|
||||
|
||||
for _, r := range hdr.Recipients {
|
||||
if r.Type == "scrypt" && len(hdr.Recipients) != 1 {
|
||||
|
||||
Reference in New Issue
Block a user