From e98451e9755b33d0e76b362587499225ef3a4ef1 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Tue, 30 Mar 2021 17:40:19 +0200 Subject: [PATCH] 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 --- age/keysource.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/age/keysource.go b/age/keysource.go index c0b9c6561..6a2f5c50d 100644 --- a/age/keysource.go +++ b/age/keysource.go @@ -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 }