refactor: Decompose archive func

This commit is contained in:
Felix Pojtinger
2021-12-07 21:12:23 +01:00
parent 23784eed97
commit ff7803416d
20 changed files with 966 additions and 914 deletions
+2 -2
View File
@@ -65,7 +65,7 @@ func ParseIdentity(
case config.NoneKey:
return privkey, nil
default:
return nil, config.ErrUnsupportedEncryptionFormat
return nil, config.ErrEncryptionFormatUnsupported
}
}
@@ -82,6 +82,6 @@ func ParseSignerIdentity(
case config.NoneKey:
return privkey, nil
default:
return nil, config.ErrUnsupportedSignatureFormat
return nil, config.ErrSignatureFormatUnsupported
}
}
+2 -2
View File
@@ -21,7 +21,7 @@ func ParseRecipient(
case config.NoneKey:
return pubkey, nil
default:
return nil, config.ErrUnsupportedEncryptionFormat
return nil, config.ErrEncryptionFormatUnsupported
}
}
@@ -42,6 +42,6 @@ func ParseSignerRecipient(
case config.NoneKey:
return pubkey, nil
default:
return nil, config.ErrUnsupportedSignatureFormat
return nil, config.ErrSignatureFormatUnsupported
}
}