Documentation
¶
Index ¶
- type MockRsaService
- func (m *MockRsaService) DecryptPKCS1v15(rand io.Reader, priv *stdRsa.PrivateKey, ciphertext []byte) ([]byte, error)
- func (m *MockRsaService) EncryptPKCS1v15(rand io.Reader, pub *stdRsa.PublicKey, msg []byte) ([]byte, error)
- func (m *MockRsaService) ReadPrivateKeyFromPath(privateKeyPath string) (*stdRsa.PrivateKey, error)
- func (m *MockRsaService) ReadPublicKeyFromPath(publicKeyPath string) (*stdRsa.PublicKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRsaService ¶
func (*MockRsaService) DecryptPKCS1v15 ¶
func (m *MockRsaService) DecryptPKCS1v15(rand io.Reader, priv *stdRsa.PrivateKey, ciphertext []byte) ([]byte, error)
func (*MockRsaService) EncryptPKCS1v15 ¶
func (*MockRsaService) ReadPrivateKeyFromPath ¶
func (m *MockRsaService) ReadPrivateKeyFromPath(privateKeyPath string) (*stdRsa.PrivateKey, error)
func (*MockRsaService) ReadPublicKeyFromPath ¶
func (m *MockRsaService) ReadPublicKeyFromPath(publicKeyPath string) (*stdRsa.PublicKey, error)
Click to show internal directories.
Click to hide internal directories.