cmd/age: fix support for password-protected ssh-ed25519 keys

This commit is contained in:
Filippo Valsorda
2019-11-27 22:54:24 -04:00
parent 03f7237541
commit 025d8d5c0b

View File

@@ -81,7 +81,7 @@ func (i *EncryptedSSHIdentity) Matches(block *format.Recipient) error {
if block.Type != i.Type() {
return age.ErrIncorrectIdentity
}
if len(block.Args) != 1 {
if len(block.Args) < 1 {
return fmt.Errorf("invalid %v recipient block", i.Type())
}