Documentation ¶
Index ¶
- type Curve
- type PrivateKey
- func (k *PrivateKey) Bytes() []byte
- func (k *PrivateKey) Curve() Curve
- func (k *PrivateKey) ECDH(remote *PublicKey) ([]byte, error)
- func (k *PrivateKey) Equal(x crypto.PrivateKey) bool
- func (k *PrivateKey) Public() crypto.PublicKey
- func (k *PrivateKey) PublicKey() *PublicKey
- func (k *PrivateKey) SM2MQV(eLocal *PrivateKey, sRemote, eRemote *PublicKey) (*PublicKey, error)
- type PublicKey
- func (k *PublicKey) Bytes() []byte
- func (k *PublicKey) Curve() Curve
- func (k *PublicKey) Equal(x crypto.PublicKey) bool
- func (uv *PublicKey) SM2SharedKey(isResponder bool, kenLen int, sPub, sRemote *PublicKey, uid []byte, ...) ([]byte, error)
- func (k *PublicKey) SM2ZA(md hash.Hash, uid []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Curve ¶
type Curve interface { GenerateKey(rand io.Reader) (*PrivateKey, error) NewPrivateKey(key []byte) (*PrivateKey, error) NewPublicKey(key []byte) (*PublicKey, error) // contains filtered or unexported methods }
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func (*PrivateKey) Bytes ¶
func (k *PrivateKey) Bytes() []byte
func (*PrivateKey) Curve ¶
func (k *PrivateKey) Curve() Curve
func (*PrivateKey) Equal ¶
func (k *PrivateKey) Equal(x crypto.PrivateKey) bool
func (*PrivateKey) Public ¶
func (k *PrivateKey) Public() crypto.PublicKey
func (*PrivateKey) PublicKey ¶
func (k *PrivateKey) PublicKey() *PublicKey
func (*PrivateKey) SM2MQV ¶
func (k *PrivateKey) SM2MQV(eLocal *PrivateKey, sRemote, eRemote *PublicKey) (*PublicKey, error)
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func (*PublicKey) SM2SharedKey ¶
Click to show internal directories.
Click to hide internal directories.