Documentation ¶
Index ¶
- Constants
- func CalcPadding(length, blkSize int) int
- func Checksum(srcs ...common.RawBytes) uint16
- func FillPadding(b common.RawBytes, length, blkSize int) int
- func InitMac(key common.RawBytes) (hash.Hash, error)
- func Mac(mac hash.Hash, msg common.RawBytes) (common.RawBytes, error)
- func TimeToString(t uint64) string
- func UDPAddrEqual(a, b *net.UDPAddr) bool
- type ASList
- type B64Bytes
- type Raw
Constants ¶
View Source
const ( ErrorCipherFailure = "Unable to initalize AES cipher" ErrorMacFailure = "Unable to initalize Mac" )
Variables ¶
This section is empty.
Functions ¶
func CalcPadding ¶
CalcPadding returns the number of padding bytes needed to round length bytes to a multiple of blkSize
func Checksum ¶
Calculate RFC1071 checksum of supplied data chunks. If a chunk has an odd length, it is padded with a 0 during checksum computation.
func TimeToString ¶
func UDPAddrEqual ¶
Types ¶
type ASList ¶
func LoadASList ¶
LoadASList parses the yaml file fileName and returns a structure with non-core and core ASes.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.