util

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESDecrypt

func AESDecrypt(iv []byte, key []byte, ciphertext []byte) []byte

func AESEncrypt

func AESEncrypt(iv []byte, key []byte, plaintext []byte) []byte

func AddRecordLayer

func AddRecordLayer(input []byte, typ []byte, ver []byte) []byte

AddRecordLayer adds record layer to data

func PeelRecordLayer

func PeelRecordLayer(data []byte) []byte

PeelRecordLayer peels off the record layer

func PsudoRandBytes

func PsudoRandBytes(length int, seed int64) []byte

PsudoRandBytes returns a byte slice filled with psudorandom bytes generated by the seed

func ReadTLS

func ReadTLS(conn net.Conn, buffer []byte) (n int, err error)

ReadTLS reads TLS data according to its record layer

Types

This section is empty.

Jump to

Keyboard shortcuts

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