Documentation ¶
Index ¶
Constants ¶
View Source
const (
CRSAKeyType = "go-peer/rsa"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IAddress ¶ added in v1.5.6
type IAddress interface { types.IConverter types.IParameter }
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 types.IParameter 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 types.IParameter GetAddress() IAddress VerifyBytes([]byte, []byte) bool }
func LoadRSAPubKey ¶
func LoadRSAPubKey(pPubKey interface{}) IPubKey
Click to show internal directories.
Click to hide internal directories.