Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecryptionAwsKmsService ¶ added in v0.3.0
type DecryptionAwsKmsService struct {
// contains filtered or unexported fields
}
func NewDecryptionAwsKmsService ¶ added in v0.3.0
func NewDecryptionAwsKmsService(awsSvc *aws.Service, kmsKeyID string) *DecryptionAwsKmsService
func (*DecryptionAwsKmsService) Decrypt ¶ added in v0.3.0
func (s *DecryptionAwsKmsService) Decrypt(encryptedPassphrase *EncryptedPassphrase) (*Passphrase, error)
type DecryptionRsaPKCS1v15Service ¶ added in v0.3.0
type DecryptionRsaPKCS1v15Service struct {
// contains filtered or unexported fields
}
func NewDecryptionRsaPKCS1v15Service ¶ added in v0.3.0
func NewDecryptionRsaPKCS1v15Service( privateKey *stdRsa.PrivateKey, rsaService rsaService, ) *DecryptionRsaPKCS1v15Service
func (*DecryptionRsaPKCS1v15Service) Decrypt ¶ added in v0.3.0
func (s *DecryptionRsaPKCS1v15Service) Decrypt(encryptedPassphrase *EncryptedPassphrase) (*Passphrase, error)
type EncRsaOaepService ¶ added in v0.3.0
type EncRsaOaepService struct {
// contains filtered or unexported fields
}
func NewEncRsaOaepService ¶ added in v0.3.0
func NewEncRsaOaepService(rsaSvc rsaService, publicKey *rsa.PublicKey) *EncRsaOaepService
func (*EncRsaOaepService) Encrypt ¶ added in v0.3.0
func (s *EncRsaOaepService) Encrypt(passphrase *Passphrase) (*EncryptedPassphrase, error)
type EncRsaPKCS1v15Service ¶ added in v0.3.0
type EncRsaPKCS1v15Service struct {
// contains filtered or unexported fields
}
func NewEncryptionRsaPKCS1v15Service ¶ added in v0.3.0
func NewEncryptionRsaPKCS1v15Service(rsaSvc rsaService, publicKey *rsa.PublicKey) *EncRsaPKCS1v15Service
func (*EncRsaPKCS1v15Service) Encrypt ¶ added in v0.3.0
func (s *EncRsaPKCS1v15Service) Encrypt(passphrase *Passphrase) (*EncryptedPassphrase, error)
type EncryptedPassphrase ¶
type EncryptedPassphrase struct {
Ciphertext []byte
}
func NewEncryptedPassphrase ¶
func NewEncryptedPassphrase(ciphertext []byte) *EncryptedPassphrase
type Passphrase ¶
type Passphrase struct {
Content []byte
}
type Service ¶ added in v0.3.0
type Service struct{}
func NewService ¶ added in v0.3.0
func NewService() *Service
func (*Service) GeneratePassphrase ¶ added in v0.3.0
func (s *Service) GeneratePassphrase(length int) (*Passphrase, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.