lib

package
v0.0.0-...-c1cd523 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateKcv

func CalculateKcv(key []byte) ([]byte, string, error)

CalculateKcv is responsible for calculating the Key Checksum Value of a key

func FormatString

func FormatString(str string) (string, error)

FormatString is responsible for formatting a hex string to a human readable format

func GenerateCombinedKey

func GenerateCombinedKey(key1, key2, key3 []byte) ([]byte, string)

GenerateCombinedKey is responsible for combining 3 component keys in order to create a combined key

func GenerateComponentKey

func GenerateComponentKey(length int, forceOdd bool) ([]byte, string, error)

GenerateComponentKey is responsible for generating component keys with a given number of bytes and also with or without odd parity

func GenerateKSI

func GenerateKSI(length int) (string, error)

GenerateKSI is responsible for generating a BDK identifier (KSI) with a given number of bytes

func HexToBytes

func HexToBytes(str string) ([]byte, error)

HexToBytes is responsible for converting hex strings into an array of bytes

func IsOddParityAdjusted

func IsOddParityAdjusted(bytes []byte) bool

IsOddParityAdjusted is responsible for checking if an array of bytes is adjusted with odd parity

Types

This section is empty.

Jump to

Keyboard shortcuts

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