Documentation ¶
Index ¶
- func CalculateKcv(key []byte) ([]byte, string, error)
- func FormatString(str string) (string, error)
- func GenerateCombinedKey(key1, key2, key3 []byte) ([]byte, string)
- func GenerateComponentKey(length int, forceOdd bool) ([]byte, string, error)
- func GenerateKSI(length int) (string, error)
- func HexToBytes(str string) ([]byte, error)
- func IsOddParityAdjusted(bytes []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateKcv ¶
CalculateKcv is responsible for calculating the Key Checksum Value of a key
func FormatString ¶
FormatString is responsible for formatting a hex string to a human readable format
func GenerateCombinedKey ¶
GenerateCombinedKey is responsible for combining 3 component keys in order to create a combined key
func GenerateComponentKey ¶
GenerateComponentKey is responsible for generating component keys with a given number of bytes and also with or without odd parity
func GenerateKSI ¶
GenerateKSI is responsible for generating a BDK identifier (KSI) with a given number of bytes
func HexToBytes ¶
HexToBytes is responsible for converting hex strings into an array of bytes
func IsOddParityAdjusted ¶
IsOddParityAdjusted is responsible for checking if an array of bytes is adjusted with odd parity
Types ¶
This section is empty.