Documentation ¶
Overview ¶
Package asymmetric is a wrapper on standard Go package - rsa.
The package also adds an additional interface for working with a list of public keys.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAddress ¶ added in v1.5.6
type IAddress interface { types.IConverter GetSize() uint64 }
type IListPubKeys ¶ added in v1.5.6
type IListPubKeys interface { InPubKeys(IPubKey) bool GetPubKeys() []IPubKey AddPubKey(IPubKey) DelPubKey(IPubKey) }
func NewListPubKeys ¶ added in v1.5.6
func NewListPubKeys() IListPubKeys
type IPrivKey ¶
type IPrivKey interface { crypto.IDecrypter types.IConverter GetSize() uint64 SignBytes([]byte) []byte GetPubKey() IPubKey }
func LoadRSAPrivKey ¶
func LoadRSAPrivKey(pPrivKey interface{}) IPrivKey
func NewRSAPrivKey ¶
Create private key by number of bits.
type IPubKey ¶
type IPubKey interface { crypto.IEncrypter types.IConverter GetSize() uint64 GetAddress() IAddress VerifyBytes([]byte, []byte) bool }
func LoadRSAPubKey ¶
func LoadRSAPubKey(pPubKey interface{}) IPubKey
Click to show internal directories.
Click to hide internal directories.