Documentation ¶
Index ¶
- type CCSSM2
- func (instance *CCSSM2) Decrypt(encrypted []byte) ([]byte, error)
- func (instance *CCSSM2) Encrypt(msg []byte) ([]byte, error)
- func (instance *CCSSM2) ExportKey() (privPEM []byte, pubPEM []byte, err error)
- func (instance *CCSSM2) Sign(msg []byte) ([]byte, error)
- func (instance *CCSSM2) Verify(msg []byte, sign []byte) bool
- type PKUSM2
- func (instance *PKUSM2) Decrypt(encrypted []byte) ([]byte, error)
- func (instance *PKUSM2) Encrypt(msg []byte) ([]byte, error)
- func (instance *PKUSM2) ExportKey() (privPEM []byte, pubPEM []byte, err error)
- func (instance *PKUSM2) Sign(msg []byte) ([]byte, error)
- func (instance *PKUSM2) Verify(msg []byte, sign []byte) bool
- type SM2
- type TJSM2
- func (instance *TJSM2) Decrypt(encrypted []byte) ([]byte, error)
- func (instance *TJSM2) Encrypt(msg []byte) ([]byte, error)
- func (instance *TJSM2) ExportKey() (privPEM []byte, pubPEM []byte, err error)
- func (instance *TJSM2) Sign(msg []byte) ([]byte, error)
- func (instance *TJSM2) Verify(msg []byte, sign []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CCSSM2 ¶
type CCSSM2 struct { PrivateKey *ccs.PrivateKey PublicKey *ccs.PublicKey }
type PKUSM2 ¶
type PKUSM2 struct { PrivateKey *pku.PrivateKey PublicKey *pku.PublicKey }
Click to show internal directories.
Click to hide internal directories.