Documentation ¶
Index ¶
- type OPENPGP
- type OpenPGP
- func (p *OpenPGP) AddPrivateKey(armored []byte) error
- func (p *OpenPGP) AddPublicKey(armored []byte) error
- func (p *OpenPGP) DecryptWithKeys(data []byte) ([]byte, error)
- func (p *OpenPGP) EncryptWithKeys(data []byte) ([]byte, error)
- func (p *OpenPGP) GeneratePair() error
- func (p *OpenPGP) GetPublicKey() string
- func (p *OpenPGP) ReadFolder(name string) error
- func (p *OpenPGP) ReloadPublicKeys(keys []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OPENPGP ¶
type OpenPGP ¶
type OpenPGP struct { Public *pgpcrypto.KeyRing // public keyring Private *pgpcrypto.KeyRing // private keyring // contains filtered or unexported fields }
OpenPGP - openpgp endpoint struct
func (*OpenPGP) AddPrivateKey ¶
AddPrivateKey - add private key to keyring
func (*OpenPGP) AddPublicKey ¶
AddPublicKey - add new public key to keyring
func (*OpenPGP) DecryptWithKeys ¶
DecryptWithKey - decrypt data with PC's private key
func (*OpenPGP) EncryptWithKeys ¶
EncryptWithKeys - encrypt data with public keyring
func (*OpenPGP) GeneratePair ¶
GeneratePair - generate key pair for current PC. name is machine-id
func (*OpenPGP) GetPublicKey ¶
GetPublicKey - retrun runnig public key
func (*OpenPGP) ReadFolder ¶
ReadFolder - read PC keys from openpgp folder
func (*OpenPGP) ReloadPublicKeys ¶
ReloadPublicKeys - reload public key ring with keys hashsums
Directories ¶
Path | Synopsis |
---|---|
Package mock_openpgp is a generated GoMock package.
|
Package mock_openpgp is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.