util

package
v0.0.0-...-422065e Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoRWMutex sync.RWMutex

file

Functions

func CBCDecrypter

func CBCDecrypter(data, cbcKey []byte) []byte

Decrypter

func DefaultConfigDir

func DefaultConfigDir() string

func GetAesKeyRandomFromDb

func GetAesKeyRandomFromDb(db localdb.Database) []byte

aes key 存入db

func GetConfigFilePath

func GetConfigFilePath(configPath, defaultFileName string) string

configPath 不为空时,不检查fileName

func GetCurrentIp

func GetCurrentIp() string

func GetFilePath

func GetFilePath() string

func ReadNumberFromFile

func ReadNumberFromFile(filePath string) (*big.Int, error)

func RsaSignVer

func RsaSignVer(data []byte, signature []byte, db localdb.Database, appId string) error

公钥验证

func RsaSignVerWithKey

func RsaSignVerWithKey(data []byte, signature []byte, publicKey []byte) error

公钥验证with公钥

func WriteNumberToFile

func WriteNumberToFile(filePath string, blkNumber *big.Int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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