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

Function MasterKeysFromFingerprintString

pgp/keysource.go:103–112  ·  view source on GitHub ↗

MasterKeysFromFingerprintString takes a comma separated list of PGP fingerprints and returns a slice of new MasterKeys with those fingerprints.

(fingerprint string)

Source from the content-addressed store, hash-verified

101// MasterKeysFromFingerprintString takes a comma separated list of PGP
102// fingerprints and returns a slice of new MasterKeys with those fingerprints.
103func MasterKeysFromFingerprintString(fingerprint string) []*MasterKey {
104 var keys []*MasterKey
105 if fingerprint == "" {
106 return keys
107 }
108 for _, s := range strings.Split(fingerprint, ",") {
109 keys = append(keys, NewMasterKeyFromFingerprint(s))
110 }
111 return keys
112}
113
114// GnuPGHome is the absolute path to a GnuPG home directory.
115// A new keyring can be constructed by combining the use of NewGnuPGHome() and

Callers 4

getMasterKeysFunction · 0.92
keyGroupsFunction · 0.92

Calls 1

Tested by 1