Versions in this module Expand all Collapse all v1 v1.0.1 Oct 25, 2024 v1.0.0 Aug 22, 2024 Changes in this version + const Group14Generator + const Group14PrimeString + const Group2Generator + const Group2PrimeString + func CalculateChecksum(key []byte, originData []byte, algorithmType uint16) ([]byte, error) + func CalculateDiffieHellmanMaterials(secret *big.Int, peerPublicValue []byte, diffieHellmanGroupNumber uint16) (localPublicValue []byte, sharedKey []byte) + func CompareRootCertificate(certificateEncoding uint8, requestedCertificateAuthorityHash []byte) bool + func DecryptMessage(key []byte, cipherText []byte, algorithmType uint16) ([]byte, error) + func DecryptProcedure(ikeSecurityAssociation *context.IKESecurityAssociation, ...) (message.IKEPayloadContainer, error) + func EncryptMessage(key []byte, originData []byte, algorithmType uint16) ([]byte, error) + func EncryptProcedure(ikeSecurityAssociation *context.IKESecurityAssociation, ...) error + func GenerateKeyForChildSA(ikeSecurityAssociation *context.IKESecurityAssociation, ...) error + func GenerateKeyForIKESA(ikeSecurityAssociation *context.IKESecurityAssociation) error + func GenerateRandomNumber() *big.Int + func GenerateRandomUint8() (uint8, error) + func HandleCREATECHILDSA(udpConn *net.UDPConn, tngfAddr, ueAddr *net.UDPAddr, ...) + func HandleIKEAUTH(udpConn *net.UDPConn, tngfAddr, ueAddr *net.UDPAddr, ...) + func HandleIKESAINIT(udpConn *net.UDPConn, tngfAddr, ueAddr *net.UDPAddr, ...) + func NewPseudorandomFunction(key []byte, algorithmType uint16) (hash.Hash, bool) + func PKCS7Padding(plainText []byte, blockSize int) []byte + func SendIKEMessageToUE(udpConn *net.UDPConn, srcAddr, dstAddr *net.UDPAddr, ...) + func VerifyIKEChecksum(key []byte, originData []byte, checksum []byte, algorithmType uint16) (bool, error)