Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RsaCrypter ¶
type RsaCrypter struct {
// contains filtered or unexported fields
}
func New ¶
func New() (*RsaCrypter, error)
func (*RsaCrypter) Encrypt ¶
func (r *RsaCrypter) Encrypt(data []byte, pubKeyBytes []byte) ([]byte, error)
encrypt our message with user B public key
func (*RsaCrypter) PubKey ¶
func (r *RsaCrypter) PubKey() []byte
get pub key as bytes to send over network
Click to show internal directories.
Click to hide internal directories.