Versions in this module Expand all Collapse all v1 v1.0.0 Feb 9, 2020 Changes in this version + var KEY_MASK = []byte + var PEK_MASK = []byte + var REG3_MASK uint64 = 0x1FFFFF + var REG8_MASK uint64 = 0xFFFFFFFFFFE00000 + var SHIFT_REG_MASK uint64 = 0x100000 + func BuildTdesKey(key []byte) []byte + func CalculateKcv(key []byte) ([]byte, error) + func DeriveIpekFromBdk(bdk []byte, ksn []byte) ([]byte, error) + func DerivePekFromBdk(bdk []byte, ksn []byte) ([]byte, error) + func DerivePekFromIpek(ipek []byte, ksn []byte) ([]byte, error) + func EncodeKsn(result []byte, ksn Ksn) + func EncryptDecryptAes128Ecb(data, key []byte, encrypt bool) []byte + func ExtractKsnWithoutCounter(ksn, cleared []byte) + type Ksn struct + Counter int + Ksi []byte + Trsm []byte + func DecodeKsn(ksn []byte) (result Ksn)