age: remove recipient limit

Fixes #139
This commit is contained in:
Filippo Valsorda
2021-05-02 18:42:53 -04:00
parent fff82986fa
commit 85763d390a

3
age.go
View File

@@ -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 {