Versions in this module Expand all Collapse all v1 v1.2.3 Mar 19, 2026 Changes in this version + const AccessType3GPP + const AccessTypeNon3GPP + const AlgCiphering128NEA0 + const AlgCiphering128NEA1 + const AlgCiphering128NEA2 + const AlgCiphering128NEA3 + const AlgIntegrity128NIA0 + const AlgIntegrity128NIA1 + const AlgIntegrity128NIA2 + const AlgIntegrity128NIA3 + const Bearer3GPP + const BearerNon3GPP + const DirectionDownlink + const DirectionUplink + const NNASEncAlg + const NNASIntAlg + const NRRCEncAlg + const NRRCIntAlg + const NUpEncAlg + const NUpIntAlg + const OnlyOneBearer + func NASEncrypt(AlgoID uint8, KnasEnc [16]byte, Count uint32, Bearer uint8, Direction uint8, ...) error + func NASMacCalculate(AlgoID uint8, KnasInt [16]uint8, Count uint32, Bearer uint8, Direction uint8, ...) ([]byte, error) + func NEA1(ck [16]byte, countC, bearer, direction uint32, ibs []byte, length uint32) (obs []byte, err error) + func NEA2(key [16]byte, count uint32, bearer uint8, direction uint8, ibs []byte) (obs []byte, err error) + func NEA3(ck [16]byte, count uint32, bearer uint8, direction uint8, ibs []byte, ...) (obs []byte, err error) + func NIA1(ik [16]byte, countI uint32, bearer byte, direction uint32, msg []byte, ...) (mac []byte, err error) + func NIA2(key [16]byte, count uint32, bearer uint8, direction uint8, msg []byte) (mac []byte, err error) + func NIA3(ik [16]byte, count uint32, bearer uint8, direction uint8, msg []byte, ...) (mac []byte, err error) + type Count struct + func (counter *Count) AddOne() + func (counter *Count) Get() uint32 + func (counter *Count) Overflow() uint16 + func (counter *Count) SQN() uint8 + func (counter *Count) Set(overflow uint16, sqn uint8) + func (counter *Count) SetOverflow(overflow uint16) + func (counter *Count) SetSQN(sqn uint8)