Documentation
¶
Index ¶
- type Service
- func (s *Service) DecryptPKCS1v15(rand io.Reader, priv *rsa.PrivateKey, ciphertext []byte) ([]byte, error)
- func (s *Service) EncryptPKCS1v15(rand io.Reader, pub *rsa.PublicKey, msg []byte) ([]byte, error)
- func (s *Service) ReadPrivateKeyFromPath(privateKeyPath string) (*rsa.PrivateKey, error)
- func (s *Service) ReadPublicKeyFromPath(publicKeyPath string) (*rsa.PublicKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewRsaService ¶
func NewRsaService(osExecutor os.OsExecutor) *Service
func (*Service) DecryptPKCS1v15 ¶
func (*Service) EncryptPKCS1v15 ¶
func (*Service) ReadPrivateKeyFromPath ¶
func (s *Service) ReadPrivateKeyFromPath(privateKeyPath string) (*rsa.PrivateKey, error)
Click to show internal directories.
Click to hide internal directories.