crypto

package
v0.0.0-...-b4be506 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncryptECDH

type EncryptECDH struct {
	InitialShareKey []byte
	PublicKey       []byte
	PublicKeyVer    uint16
}

func NewEcdh

func NewEcdh() *EncryptECDH

func (*EncryptECDH) DoEncrypt

func (e *EncryptECDH) DoEncrypt(d, k []byte) []byte

func (*EncryptECDH) FetchPubKey

func (e *EncryptECDH) FetchPubKey(uin int64)

FetchPubKey 从服务器获取PubKey

func (*EncryptECDH) Id

func (e *EncryptECDH) Id() byte

type EncryptSession

type EncryptSession struct {
	T133 []byte
}

func NewEncryptSession

func NewEncryptSession(t133 []byte) *EncryptSession

func (*EncryptSession) DoEncrypt

func (e *EncryptSession) DoEncrypt(d, k []byte) []byte

func (*EncryptSession) Id

func (e *EncryptSession) Id() byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL