mirror of
https://github.com/getsops/sops.git
synced 2026-02-05 12:45:21 +01:00
Remove unused age code
This removes two pieces of code in the age keysource that are not actually used. The `parsedIdentity` is technically a candidate to stay, but should then be changed to a `[]*age.X25519Identity` type and be lazy-loaded by `Decrypt` (with the result of `age.ParseIdentities`). Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
@@ -20,15 +20,12 @@ func init() {
|
||||
log = logging.NewLogger("AGE")
|
||||
}
|
||||
|
||||
const privateKeySizeLimit = 1 << 24 // 16 MiB
|
||||
|
||||
// MasterKey is an age key used to encrypt and decrypt sops' data key.
|
||||
type MasterKey struct {
|
||||
Identity string // a Bech32-encoded private key
|
||||
Recipient string // a Bech32-encoded public key
|
||||
EncryptedKey string // a sops data key encrypted with age
|
||||
|
||||
parsedIdentity *age.X25519Identity // a parsed age private key
|
||||
parsedRecipient *age.X25519Recipient // a parsed age public key
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user