Skip to content

Commit

Permalink
Remove unused age code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
hiddeco committed Mar 30, 2021
1 parent e807690 commit e98451e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions age/keysource.go
Expand Up @@ -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
}

Expand Down

0 comments on commit e98451e

Please sign in to comment.