diff --git a/security/encr/encr.go b/security/encr/encr.go index c4948c1..9fc1ab8 100644 --- a/security/encr/encr.go +++ b/security/encr/encr.go @@ -22,26 +22,26 @@ func init() { // ENCR Types encrTypes = make(map[string]ENCRType) - encrTypes[string_ENCR_AES_CBC_128] = &ENCR_AES_CBC{ + encrTypes[String_ENCR_AES_CBC_128] = &ENCR_AES_CBC{ keyLength: 16, } - encrTypes[string_ENCR_AES_CBC_192] = &ENCR_AES_CBC{ + encrTypes[String_ENCR_AES_CBC_192] = &ENCR_AES_CBC{ keyLength: 24, } - encrTypes[string_ENCR_AES_CBC_256] = &ENCR_AES_CBC{ + encrTypes[String_ENCR_AES_CBC_256] = &ENCR_AES_CBC{ keyLength: 32, } // ENCR Kernel Types encrKTypes = make(map[string]ENCRKType) - encrKTypes[string_ENCR_AES_CBC_128] = &ENCR_AES_CBC{ + encrKTypes[String_ENCR_AES_CBC_128] = &ENCR_AES_CBC{ keyLength: 16, } - encrKTypes[string_ENCR_AES_CBC_192] = &ENCR_AES_CBC{ + encrKTypes[String_ENCR_AES_CBC_192] = &ENCR_AES_CBC{ keyLength: 24, } - encrKTypes[string_ENCR_AES_CBC_256] = &ENCR_AES_CBC{ + encrKTypes[String_ENCR_AES_CBC_256] = &ENCR_AES_CBC{ keyLength: 32, } } diff --git a/security/encr/encr_aes_cbc.go b/security/encr/encr_aes_cbc.go index b5dd6f6..54eb1ea 100644 --- a/security/encr/encr_aes_cbc.go +++ b/security/encr/encr_aes_cbc.go @@ -14,20 +14,20 @@ import ( ) const ( - string_ENCR_AES_CBC_128 string = "ENCR_AES_CBC_128" - string_ENCR_AES_CBC_192 string = "ENCR_AES_CBC_192" - string_ENCR_AES_CBC_256 string = "ENCR_AES_CBC_256" + String_ENCR_AES_CBC_128 string = "ENCR_AES_CBC_128" + String_ENCR_AES_CBC_192 string = "ENCR_AES_CBC_192" + String_ENCR_AES_CBC_256 string = "ENCR_AES_CBC_256" ) func toString_ENCR_AES_CBC(attrType uint16, intValue uint16, bytesValue []byte) string { if attrType == message.AttributeTypeKeyLength { switch intValue { case 128: - return string_ENCR_AES_CBC_128 + return String_ENCR_AES_CBC_128 case 192: - return string_ENCR_AES_CBC_192 + return String_ENCR_AES_CBC_192 case 256: - return string_ENCR_AES_CBC_256 + return String_ENCR_AES_CBC_256 default: return "" } diff --git a/security/esn/esn.go b/security/esn/esn.go index efff931..f48bd47 100644 --- a/security/esn/esn.go +++ b/security/esn/esn.go @@ -12,16 +12,16 @@ var ( ) const ( - string_ESN_ENABLE string = "ESN_ENABLE" - string_ESN_DISABLE string = "ESN_DISABLE" + String_ESN_ENABLE string = "ESN_ENABLE" + String_ESN_DISABLE string = "ESN_DISABLE" ) func toString_ESN_ENABLE(attrType uint16, intValue uint16, bytesValue []byte) string { - return string_ESN_ENABLE + return String_ESN_ENABLE } func toString_ESN_DISABLE(attrType uint16, intValue uint16, bytesValue []byte) string { - return string_ESN_DISABLE + return String_ESN_DISABLE } func init() { @@ -33,10 +33,10 @@ func init() { // ESN Types esnTypes = make(map[string]ESN) - esnTypes[string_ESN_ENABLE] = ESN{ + esnTypes[String_ESN_ENABLE] = ESN{ needESN: true, } - esnTypes[string_ESN_DISABLE] = ESN{ + esnTypes[String_ESN_DISABLE] = ESN{ needESN: false, } } diff --git a/security/integ/auth_hmac_md5_96.go b/security/integ/auth_hmac_md5_96.go index d868db5..37a7d3f 100644 --- a/security/integ/auth_hmac_md5_96.go +++ b/security/integ/auth_hmac_md5_96.go @@ -8,10 +8,10 @@ import ( "github.com/free5gc/ike/message" ) -const string_AUTH_HMAC_MD5_96 string = "AUTH_HMAC_MD5_96" +const String_AUTH_HMAC_MD5_96 string = "AUTH_HMAC_MD5_96" func toString_AUTH_HMAC_MD5_96(attrType uint16, intValue uint16, bytesValue []byte) string { - return string_AUTH_HMAC_MD5_96 + return String_AUTH_HMAC_MD5_96 } var ( diff --git a/security/integ/auth_hmac_sha1_96.go b/security/integ/auth_hmac_sha1_96.go index ad3a8a7..6c18ca2 100644 --- a/security/integ/auth_hmac_sha1_96.go +++ b/security/integ/auth_hmac_sha1_96.go @@ -8,10 +8,10 @@ import ( "github.com/free5gc/ike/message" ) -const string_AUTH_HMAC_SHA1_96 string = "AUTH_HMAC_SHA1_96" +const String_AUTH_HMAC_SHA1_96 string = "AUTH_HMAC_SHA1_96" func toString_AUTH_HMAC_SHA1_96(attrType uint16, intValue uint16, bytesValue []byte) string { - return string_AUTH_HMAC_SHA1_96 + return String_AUTH_HMAC_SHA1_96 } var ( diff --git a/security/integ/auth_hmac_sha2_256_128.go b/security/integ/auth_hmac_sha2_256_128.go index d0b3a4d..04dd077 100644 --- a/security/integ/auth_hmac_sha2_256_128.go +++ b/security/integ/auth_hmac_sha2_256_128.go @@ -8,10 +8,10 @@ import ( "github.com/free5gc/ike/message" ) -const string_AUTH_HMAC_SHA2_256_128 string = "AUTH_HMAC_SHA2_256_128" +const String_AUTH_HMAC_SHA2_256_128 string = "AUTH_HMAC_SHA2_256_128" func toString_AUTH_HMAC_SHA2_256_128(attrType uint16, intValue uint16, bytesValue []byte) string { - return string_AUTH_HMAC_SHA2_256_128 + return String_AUTH_HMAC_SHA2_256_128 } var ( diff --git a/security/integ/integ.go b/security/integ/integ.go index f80f4f8..5888371 100644 --- a/security/integ/integ.go +++ b/security/integ/integ.go @@ -23,15 +23,15 @@ func init() { // INTEG Types integTypes = make(map[string]INTEGType) - integTypes[string_AUTH_HMAC_MD5_96] = &AUTH_HMAC_MD5_96{ + integTypes[String_AUTH_HMAC_MD5_96] = &AUTH_HMAC_MD5_96{ keyLength: 16, outputLength: 12, } - integTypes[string_AUTH_HMAC_SHA1_96] = &AUTH_HMAC_SHA1_96{ + integTypes[String_AUTH_HMAC_SHA1_96] = &AUTH_HMAC_SHA1_96{ keyLength: 20, outputLength: 12, } - integTypes[string_AUTH_HMAC_SHA2_256_128] = &AUTH_HMAC_SHA2_256_128{ + integTypes[String_AUTH_HMAC_SHA2_256_128] = &AUTH_HMAC_SHA2_256_128{ keyLength: 32, outputLength: 16, } @@ -39,15 +39,15 @@ func init() { // INTEG Kernel Types integKTypes = make(map[string]INTEGKType) - integKTypes[string_AUTH_HMAC_MD5_96] = &AUTH_HMAC_MD5_96{ + integKTypes[String_AUTH_HMAC_MD5_96] = &AUTH_HMAC_MD5_96{ keyLength: 16, outputLength: 12, } - integKTypes[string_AUTH_HMAC_SHA1_96] = &AUTH_HMAC_SHA1_96{ + integKTypes[String_AUTH_HMAC_SHA1_96] = &AUTH_HMAC_SHA1_96{ keyLength: 20, outputLength: 12, } - integKTypes[string_AUTH_HMAC_SHA2_256_128] = &AUTH_HMAC_SHA2_256_128{ + integKTypes[String_AUTH_HMAC_SHA2_256_128] = &AUTH_HMAC_SHA2_256_128{ keyLength: 32, outputLength: 16, } diff --git a/security/prf/prf.go b/security/prf/prf.go index c52fdbc..c889033 100644 --- a/security/prf/prf.go +++ b/security/prf/prf.go @@ -21,15 +21,15 @@ func init() { // PRF Types prfTypes = make(map[string]PRFType) - prfTypes[string_PRF_HMAC_MD5] = &PRF_HMAC_MD5{ + prfTypes[String_PRF_HMAC_MD5] = &PRF_HMAC_MD5{ keyLength: 16, outputLength: 16, } - prfTypes[string_PRF_HMAC_SHA1] = &PRF_HMAC_SHA1{ + prfTypes[String_PRF_HMAC_SHA1] = &PRF_HMAC_SHA1{ keyLength: 20, outputLength: 20, } - prfTypes[string_PRF_HMAC_SHA2_256] = &PRF_HMAC_SHA2_256{ + prfTypes[String_PRF_HMAC_SHA2_256] = &PRF_HMAC_SHA2_256{ keyLength: 32, outputLength: 32, } diff --git a/security/prf/prf_hmac_md5.go b/security/prf/prf_hmac_md5.go index 6fab236..6d22411 100644 --- a/security/prf/prf_hmac_md5.go +++ b/security/prf/prf_hmac_md5.go @@ -8,10 +8,10 @@ import ( "github.com/free5gc/ike/message" ) -const string_PRF_HMAC_MD5 string = "PRF_HMAC_MD5" +const String_PRF_HMAC_MD5 string = "PRF_HMAC_MD5" func toString_PRF_HMAC_MD5(attrType uint16, intValue uint16, bytesValue []byte) string { - return string_PRF_HMAC_MD5 + return String_PRF_HMAC_MD5 } var _ PRFType = &PRF_HMAC_MD5{} diff --git a/security/prf/prf_hmac_sha1.go b/security/prf/prf_hmac_sha1.go index ddd0198..39b9a41 100644 --- a/security/prf/prf_hmac_sha1.go +++ b/security/prf/prf_hmac_sha1.go @@ -8,10 +8,10 @@ import ( "github.com/free5gc/ike/message" ) -const string_PRF_HMAC_SHA1 string = "PRF_HMAC_SHA1" +const String_PRF_HMAC_SHA1 string = "PRF_HMAC_SHA1" func toString_PRF_HMAC_SHA1(attrType uint16, intValue uint16, bytesValue []byte) string { - return string_PRF_HMAC_SHA1 + return String_PRF_HMAC_SHA1 } var _ PRFType = &PRF_HMAC_SHA1{} diff --git a/security/prf/prf_hmac_sha2_256.go b/security/prf/prf_hmac_sha2_256.go index c26d2d7..453e08e 100644 --- a/security/prf/prf_hmac_sha2_256.go +++ b/security/prf/prf_hmac_sha2_256.go @@ -8,10 +8,10 @@ import ( "github.com/free5gc/ike/message" ) -const string_PRF_HMAC_SHA2_256 string = "PRF_HMAC_SHA2_256" +const String_PRF_HMAC_SHA2_256 string = "PRF_HMAC_SHA2_256" func toString_PRF_HMAC_SHA2_256(attrType uint16, intValue uint16, bytesValue []byte) string { - return string_PRF_HMAC_SHA2_256 + return String_PRF_HMAC_SHA2_256 } var _ PRFType = &PRF_HMAC_SHA2_256{}