crypto

package
v0.0.0-...-e775c48 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ECDH = &EncryptECDH{}

Functions

This section is empty.

Types

type EncryptECDH

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

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