Documentation ¶
Index ¶
- type MockEncryptedPassphraseService
- func (m *MockEncryptedPassphraseService) Decrypt(privateKey *rsa.PrivateKey, ...) (*passphrase.Passphrase, error)
- func (m *MockEncryptedPassphraseService) Deserialize(encoded []byte) (*passphrase.EncryptedPassphrase, error)
- func (m *MockEncryptedPassphraseService) Encrypt(publicKey *rsa.PublicKey, passphraseArg *passphrase.Passphrase) (*passphrase.EncryptedPassphrase, error)
- func (m *MockEncryptedPassphraseService) GeneratePassphrase(length int) (*passphrase.Passphrase, error)
- func (m *MockEncryptedPassphraseService) Serialize(encryptedPassphrase *passphrase.EncryptedPassphrase) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEncryptedPassphraseService ¶
func (*MockEncryptedPassphraseService) Decrypt ¶
func (m *MockEncryptedPassphraseService) Decrypt( privateKey *rsa.PrivateKey, encryptedPassphrase *passphrase.EncryptedPassphrase, ) (*passphrase.Passphrase, error)
func (*MockEncryptedPassphraseService) Deserialize ¶
func (m *MockEncryptedPassphraseService) Deserialize(encoded []byte) (*passphrase.EncryptedPassphrase, error)
func (*MockEncryptedPassphraseService) Encrypt ¶
func (m *MockEncryptedPassphraseService) Encrypt( publicKey *rsa.PublicKey, passphraseArg *passphrase.Passphrase, ) (*passphrase.EncryptedPassphrase, error)
func (*MockEncryptedPassphraseService) GeneratePassphrase ¶
func (m *MockEncryptedPassphraseService) GeneratePassphrase(length int) (*passphrase.Passphrase, error)
func (*MockEncryptedPassphraseService) Serialize ¶
func (m *MockEncryptedPassphraseService) Serialize( encryptedPassphrase *passphrase.EncryptedPassphrase, ) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.