Documentation ¶
Index ¶
- Constants
- func Atoi(ty string) uint8
- func Decrypt(ty uint8, data []byte, key []byte, final bool) ([]byte, error)
- func DecryptKey(ecdsaPrv *ecdsa.PrivateKey, key []byte) []byte
- func Encrypt(ty uint8, data []byte, key []byte, final bool) ([]byte, error)
- func EncryptKey(ecdsaPub *ecdsa.PublicKey, key []byte) []byte
- func GenerateKey(ty uint8) []byte
- func GetBlockAlignSize(ty uint8, size uint64) uint64
- func GetBlockSize(ty uint8) uint64
- func GetEncryptKey(ty uint8, h common.Hash, objID uint64) []byte
Constants ¶
View Source
const ( EncryptNone uint8 = iota EncryptDes )
Variables ¶
This section is empty.
Functions ¶
func DecryptKey ¶
func DecryptKey(ecdsaPrv *ecdsa.PrivateKey, key []byte) []byte
func GenerateKey ¶
func GetBlockAlignSize ¶
func GetBlockSize ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.