Documentation
¶
Index ¶
- type Service
- func (s *Service) Decrypt(privateKey, ciphertext []byte) ([]byte, error)
- func (s *Service) Encrypt(publicKey, data []byte) ([]byte, error)
- func (s *Service) GenerateKeyPair(name, email, comment string) (publicKey, privateKey []byte, err error)
- func (s *Service) Sign(privateKey, data []byte) ([]byte, error)
- func (s *Service) SymmetricallyEncrypt(passphrase, data []byte) ([]byte, error)
- func (s *Service) Verify(publicKey, data, signature []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct{}
Service is a service for PGP operations.
func (*Service) GenerateKeyPair ¶
func (s *Service) GenerateKeyPair(name, email, comment string) (publicKey, privateKey []byte, err error)
GenerateKeyPair generates a new PGP key pair.
func (*Service) SymmetricallyEncrypt ¶
SymmetricallyEncrypt encrypts data with a passphrase.
Click to show internal directories.
Click to hide internal directories.