crypto

package
v0.0.0-...-f7ddc24 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 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) Encrypt

func (e *EncryptECDH) Encrypt(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) Encrypt

func (e *EncryptSession) Encrypt(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