MCPcopy
hub / github.com/getsops/sops / NewMasterKeyFromFingerprint

Function NewMasterKeyFromFingerprint

pgp/keysource.go:94–99  ·  view source on GitHub ↗

NewMasterKeyFromFingerprint takes a PGP fingerprint and returns a new MasterKey with that fingerprint.

(fingerprint string)

Source from the content-addressed store, hash-verified

92// NewMasterKeyFromFingerprint takes a PGP fingerprint and returns a new
93// MasterKey with that fingerprint.
94func NewMasterKeyFromFingerprint(fingerprint string) *MasterKey {
95 return &MasterKey{
96 Fingerprint: strings.Replace(fingerprint, " ", "", -1),
97 CreationDate: time.Now().UTC(),
98 }
99}
100
101// MasterKeysFromFingerprintString takes a comma separated list of PGP
102// fingerprints and returns a slice of new MasterKeys with those fingerprints.

Callers 15

encryptWithPgpMethod · 0.92
decryptWithPgpMethod · 0.92
mainFunction · 0.92
extractMasterKeysFunction · 0.92
TestMasterKey_EncryptFunction · 0.85

Calls

no outgoing calls