Server is a key service server that uses SOPS MasterKeys to fulfill requests
| 17 | |
| 18 | // Server is a key service server that uses SOPS MasterKeys to fulfill requests |
| 19 | type Server struct { |
| 20 | // Prompt indicates whether the server should prompt before decrypting or encrypting data |
| 21 | Prompt bool |
| 22 | } |
| 23 | |
| 24 | func (ks *Server) encryptWithPgp(key *PgpKey, plaintext []byte) ([]byte, error) { |
| 25 | pgpKey := pgp.NewMasterKeyFromFingerprint(key.Fingerprint) |
nothing calls this directly
no outgoing calls
no test coverage detected