Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeSm2 = byte(0x03) NameSm2 = "sm2" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrivKeySm2 ¶
type PrivKeySm2 struct {
// contains filtered or unexported fields
}
PrivKey
func (PrivKeySm2) Bytes ¶
func (privKey PrivKeySm2) Bytes() []byte
func (PrivKeySm2) Equals ¶
func (privKey PrivKeySm2) Equals(other PrivKey) bool
func (PrivKeySm2) PubKey ¶
func (privKey PrivKeySm2) PubKey() PubKey
func (PrivKeySm2) Sign ¶
func (privKey PrivKeySm2) Sign(msg []byte) Signature
type PubKeySm2 ¶
type PubKeySm2 struct {
// contains filtered or unexported fields
}
PubKey
func (PubKeySm2) VerifyBytes ¶
type SignatureSm2 ¶
type SignatureSm2 []byte
Signature
func (SignatureSm2) Bytes ¶
func (sig SignatureSm2) Bytes() []byte
func (SignatureSm2) Equals ¶
func (sig SignatureSm2) Equals(other Signature) bool
func (SignatureSm2) IsZero ¶
func (sig SignatureSm2) IsZero() bool
func (SignatureSm2) String ¶
func (sig SignatureSm2) String() string
type Sm2Driver ¶
type Sm2Driver struct{}
func (Sm2Driver) PrivKeyFromBytes ¶
func (Sm2Driver) PubKeyFromBytes ¶
func (Sm2Driver) SignatureFromBytes ¶
Click to show internal directories.
Click to hide internal directories.