Documentation
¶
Index ¶
- Constants
- Variables
- func Aes128ctr(input, encKey, icb []byte) ([]byte, error)
- func AnsiX963KDF(sharedKey, publicKey []byte, encKeyLen, macKeyLen, hashLen int) []byte
- func HmacSha256(input, macKey []byte, macLen int) ([]byte, error)
- func ToSupi(suci string, suciProfiles []SuciProfile) (string, error)
- type Suci
- type SuciProfile
Constants ¶
View Source
const ( PrefixIMSI = "imsi-" PrefixSUCI = "suci" SupiTypeIMSI = "0" NullScheme = "0" ProfileAScheme = "1" ProfileBScheme = "2" )
View Source
const ( ProfileAMacKeyLen = 32 // octets ProfileAEncKeyLen = 16 // octets ProfileAIcbLen = 16 // octets ProfileAMacLen = 8 // octets ProfileAHashLen = 32 // octets )
profile A.
View Source
const ( ProfileBMacKeyLen = 32 // octets ProfileBEncKeyLen = 16 // octets ProfileBIcbLen = 16 // octets ProfileBMacLen = 8 // octets ProfileBHashLen = 32 // octets )
profile B.
Variables ¶
View Source
var ErrorPublicKeyUnmarshalling = fmt.Errorf("failed to unmarshal uncompressed public key")
Functions ¶
func AnsiX963KDF ¶
Types ¶
type SuciProfile ¶
Click to show internal directories.
Click to hide internal directories.