Documentation ¶
Index ¶
- type ECDSA
- func (e *ECDSA) ConvertPrivateKeyToECDH() (privateKeyECDH *ecdh.PrivateKey, err error)
- func (e *ECDSA) ConvertPublicKeyToECDH(remotePublicKey *ecdsa.PublicKey) (publicKeyECDH *ecdh.PublicKey, err error)
- func (e *ECDSA) ExportKeyToFile(keyPath string) (err error)
- func (e *ECDSA) GenerateKey() (err error)
- func (e *ECDSA) ImportKeyFromFile(keyPath string) (err error)
- func (e *ECDSA) MarshalPublicKey() (publicKeyBytes []byte)
- func (e *ECDSA) SignData(data []byte) (signature []byte, err error)
- func (e *ECDSA) UnmarshalPublicKey(remotePublicKeyBytes []byte) (publicKey *ecdsa.PublicKey)
- func (e *ECDSA) VerifyData(publicKey *ecdsa.PublicKey, data []byte, signature []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ECDSA ¶
type ECDSA struct {
// contains filtered or unexported fields
}
func (*ECDSA) ConvertPrivateKeyToECDH ¶
func (e *ECDSA) ConvertPrivateKeyToECDH() (privateKeyECDH *ecdh.PrivateKey, err error)
func (*ECDSA) ConvertPublicKeyToECDH ¶
func (*ECDSA) ExportKeyToFile ¶
func (*ECDSA) GenerateKey ¶
func (*ECDSA) ImportKeyFromFile ¶
func (*ECDSA) MarshalPublicKey ¶
func (*ECDSA) UnmarshalPublicKey ¶
Click to show internal directories.
Click to hide internal directories.