Crypter incapsulates specific of cypher method Includes keys, infrastructure information etc If many encryption methods will be used it worth to extract interface
| 18 | // If many encryption methods will be used it worth |
| 19 | // to extract interface |
| 20 | type Crypter struct { |
| 21 | KeyRingID string |
| 22 | IsUseKeyRingID bool |
| 23 | |
| 24 | ArmoredKey string |
| 25 | IsUseArmoredKey bool |
| 26 | |
| 27 | ArmoredKeyPath string |
| 28 | IsUseArmoredKeyPath bool |
| 29 | |
| 30 | PubKey openpgp.EntityList |
| 31 | SecretKey openpgp.EntityList |
| 32 | |
| 33 | loadPassphrase func() (string, bool) |
| 34 | |
| 35 | mutex sync.RWMutex |
| 36 | } |
| 37 | |
| 38 | func (crypter *Crypter) Name() string { |
| 39 | return "Opengpg/Crypter" |
nothing calls this directly
no outgoing calls
no test coverage detected