Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 1 | /* SGP22 Templates in TTCN-3 |
| 2 | * |
| 3 | * Author: Philipp Maier <pmaier@sysmocom.de> / sysmocom - s.f.m.c. GmbH |
| 4 | * |
| 5 | * Released under the terms of GNU General Public License, Version 2 or |
| 6 | * (at your option) any later version. |
| 7 | * |
| 8 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 9 | */ |
| 10 | |
| 11 | module RSPDefinitions_Templates { |
| 12 | |
| 13 | import from PEDefinitions all; |
| 14 | import from RSPDefinitions all; |
| 15 | import from RSPDefinitions_Types all; |
| 16 | |
| 17 | import from PKIX1Explicit88 all; |
| 18 | import from PKIX1Explicit88_Templates all; |
| 19 | import from PKIX1Explicit88_Types all; |
| 20 | |
| 21 | import from PKIX1Implicit88 all; |
| 22 | |
| 23 | /* GSMA SGP.22, section 2.5.4 */ |
| 24 | template (present) BoundProfilePackage |
| 25 | tr_boundProfilePackage := { |
| 26 | initialiseSecureChannelRequest := { |
| 27 | remoteOpId := ?, |
| 28 | transactionId := ?, |
| 29 | controlRefTemplate := { |
| 30 | keyType := ?, |
| 31 | keyLen := ?, |
| 32 | hostId := ? |
| 33 | }, |
| 34 | smdpOtpk := ?, |
| 35 | smdpSign := ? |
| 36 | }, |
| 37 | /* ES8+.ConfigureISDP */ |
| 38 | firstSequenceOf87 := ?, |
| 39 | /* ES8+.StoreMetadata */ |
| 40 | sequenceOf88 := ?, |
| 41 | /* ES8+.ReplaceSessionKeys (optional) */ |
| 42 | secondSequenceOf87 := *, |
| 43 | /* ES8+.LoadProfileElements */ |
| 44 | sequenceOf86 := ? |
| 45 | } |
| 46 | template (value) BoundProfilePackage |
| 47 | ts_boundProfilePackage := { |
| 48 | initialiseSecureChannelRequest := { |
| 49 | remoteOpId := 1, |
| 50 | transactionId := 'AABBCC'O, |
| 51 | controlRefTemplate := { |
| 52 | keyType := '88'O, /* AES */ |
| 53 | keyLen := '10'O, /* 16 byte key-length */ |
| 54 | hostId := '01020304050607080910111213141516'O |
| 55 | }, |
| 56 | smdpOtpk := '1122334455667788'O, |
| 57 | smdpSign := 'AABBCCDDEEFF0000'O |
| 58 | }, |
| 59 | /* ES8+.ConfigureISDP */ |
| 60 | firstSequenceOf87 := {'41414141414141414141414141414141414141414141414141414141414141'O, |
| 61 | '42424242424242424242424242424242424242424242424242424242424242'O, |
| 62 | '43434343434343434343434343434343434343434343434343434343434343'O}, |
| 63 | /* ES8+.StoreMetadata */ |
| 64 | sequenceOf88 := {'444444444444444444444444444444444444444444'O, |
| 65 | '454545454545454545454545454545454545454545'O, |
| 66 | '464646464646464646464646464646464646464646'O}, |
| 67 | /* ES8+.ReplaceSessionKeys (optional) */ |
| 68 | secondSequenceOf87 := omit, |
| 69 | /* ES8+.LoadProfileElements */ |
| 70 | sequenceOf86 := {'474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747474747'O, |
| 71 | '484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848484848'O, |
| 72 | '494949494949494949494949494949494949494949494949494949494949494949494949494949494949494949494949494949494949494949494949'O, |
| 73 | '505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050505050'O, |
| 74 | '515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151'O} |
| 75 | } |
| 76 | |
Philipp Maier | 746f43e | 2024-04-29 12:17:12 +0200 | [diff] [blame] | 77 | template (present) ServerSigned1 tr_serverSigned1(template (present) octetstring transactionId := ?, |
| 78 | template (present) octetstring euiccChallenge := ?, |
| 79 | template (present) universal charstring serverAddress := ?, |
| 80 | template (present) octetstring serverChallenge := ?) := { |
| 81 | transactionId := transactionId, |
| 82 | euiccChallenge := euiccChallenge, |
| 83 | serverAddress := serverAddress, |
| 84 | serverChallenge := serverChallenge |
| 85 | } |
| 86 | template (value) ServerSigned1 ts_serverSigned1(template (value) octetstring transactionId := 'ABCDEF'O, |
| 87 | template (value) octetstring euiccChallenge := '00112233445566778899AABBCCDDEEFF'O, |
| 88 | template (value) universal charstring serverAddress := "smdp.example.com", |
| 89 | template (value) octetstring serverChallenge := '01020304050607080910111213141516'O) := { |
| 90 | transactionId := transactionId, |
| 91 | euiccChallenge := euiccChallenge, |
| 92 | serverAddress := serverAddress, |
| 93 | serverChallenge := serverChallenge |
| 94 | } |
| 95 | |
Philipp Maier | d7ccd01 | 2024-04-30 11:03:53 +0200 | [diff] [blame] | 96 | template (present) CtxParams1 tr_ctxParams1 := { |
| 97 | ctxParamsForCommonAuthentication := { |
| 98 | matchingId := *, |
| 99 | deviceInfo := { |
| 100 | tac := ?, |
| 101 | deviceCapabilities := { |
| 102 | gsmSupportedRelease := *, |
| 103 | utranSupportedRelease := *, |
| 104 | cdma2000onexSupportedRelease := *, |
| 105 | cdma2000hrpdSupportedRelease := *, |
| 106 | cdma2000ehrpdSupportedRelease := *, |
| 107 | eutranEpcSupportedRelease := *, |
| 108 | contactlessSupportedRelease := *, |
| 109 | rspCrlSupportedVersion := *, |
| 110 | nrEpcSupportedRelease := *, |
| 111 | nr5gcSupportedRelease := *, |
| 112 | eutran5gcSupportedRelease := *, |
| 113 | lpaSvn := *, |
| 114 | catSupportedClasses := *, |
| 115 | euiccFormFactorType := *, |
| 116 | deviceAdditionalFeatureSupport := * |
| 117 | }, |
| 118 | imei := * |
| 119 | } |
| 120 | } |
| 121 | } |
| 122 | template (value) CtxParams1 ts_ctxParams1 := { |
| 123 | ctxParamsForCommonAuthentication := { |
| 124 | matchingId := omit, |
| 125 | deviceInfo := { |
| 126 | tac := '12345678'O, |
| 127 | deviceCapabilities := { |
| 128 | gsmSupportedRelease := omit, |
| 129 | utranSupportedRelease := omit, |
| 130 | cdma2000onexSupportedRelease := omit, |
| 131 | cdma2000hrpdSupportedRelease := omit, |
| 132 | cdma2000ehrpdSupportedRelease := omit, |
| 133 | eutranEpcSupportedRelease := omit, |
| 134 | contactlessSupportedRelease := omit, |
| 135 | rspCrlSupportedVersion := omit, |
| 136 | nrEpcSupportedRelease := omit, |
| 137 | nr5gcSupportedRelease := omit, |
| 138 | eutran5gcSupportedRelease := omit, |
| 139 | lpaSvn := omit, |
| 140 | catSupportedClasses := omit, |
| 141 | euiccFormFactorType := omit, |
| 142 | deviceAdditionalFeatureSupport := omit |
| 143 | }, |
| 144 | imei := omit |
| 145 | } |
| 146 | } |
| 147 | } |
| 148 | |
Philipp Maier | 916b5fa | 2024-04-30 11:34:09 +0200 | [diff] [blame] | 149 | template (present) EuiccSigned1 tr_euiccSigned1(template (present) octetstring transactionId := ?, |
| 150 | template (present) universal charstring serverAddress := ?, |
| 151 | template (present) octetstring serverChallenge := ?, |
| 152 | template (present) EUICCInfo2 euiccInfo2 := ?, |
| 153 | template (present) CtxParams1 ctxParams1 := ?) := { |
| 154 | transactionId := transactionId, |
| 155 | serverAddress := serverAddress, |
| 156 | serverChallenge := serverChallenge, |
| 157 | euiccInfo2 := euiccInfo2, |
| 158 | ctxParams1 := ctxParams1 |
| 159 | } |
| 160 | template (value) EuiccSigned1 ts_euiccSigned1(template (value) octetstring transactionId := 'ABCDEF'O, |
| 161 | template (value) universal charstring serverAddress := "smdp.example.com", |
| 162 | template (value) octetstring serverChallenge := '01020304050607080910111213141516'O, |
| 163 | template (value) EUICCInfo2 euiccInfo2 := ts_EUICCInfo2, |
| 164 | template (value) CtxParams1 ctxParams1 := ts_ctxParams1) := { |
| 165 | transactionId := transactionId, |
| 166 | serverAddress := serverAddress, |
| 167 | serverChallenge := serverChallenge, |
| 168 | euiccInfo2 := euiccInfo2, |
| 169 | ctxParams1 := ctxParams1 |
| 170 | } |
| 171 | |
Philipp Maier | 3583475 | 2024-04-30 11:06:33 +0200 | [diff] [blame] | 172 | template (present) StoreMetadataRequest tr_storeMetadataRequest := { |
| 173 | iccid := ?, |
| 174 | serviceProviderName := ?, |
| 175 | profileName := ?, |
| 176 | iconType := *, |
| 177 | icon := *, |
| 178 | profileClass := ?, |
| 179 | notificationConfigurationInfo := *, |
| 180 | profileOwner := *, |
| 181 | profilePolicyRules := *, |
| 182 | serviceSpecificDataStoredInEuicc := *, |
| 183 | serviceSpecificDataNotStoredInEuicc := * |
| 184 | } |
| 185 | template (value) StoreMetadataRequest ts_storeMetadataRequest := { |
| 186 | iccid := '123456789ABCDEFFAAAA'O, |
| 187 | serviceProviderName := "testsuite", |
| 188 | profileName := "testprofile", |
| 189 | iconType := omit, |
| 190 | icon := omit, |
| 191 | profileClass := 2, /* operational */ |
| 192 | notificationConfigurationInfo := omit, |
| 193 | profileOwner := omit, |
| 194 | profilePolicyRules := omit, |
| 195 | serviceSpecificDataStoredInEuicc := omit, |
| 196 | serviceSpecificDataNotStoredInEuicc := omit |
| 197 | } |
| 198 | |
| 199 | template (present) SmdpSigned2 tr_smdpSigned2(template (present) octetstring transactionId := ?, |
| 200 | template (present) boolean ccRequiredFlag := ?) := { |
| 201 | transactionId := transactionId, |
| 202 | ccRequiredFlag := ccRequiredFlag, |
| 203 | bppEuiccOtpk := ? |
| 204 | } |
| 205 | template (value) SmdpSigned2 ts_smdpSigned2(template (value) octetstring transactionId := 'ABCDEF'O, |
| 206 | template (value) boolean ccRequiredFlag := false) := { |
| 207 | transactionId := transactionId, |
| 208 | ccRequiredFlag := ccRequiredFlag, |
| 209 | bppEuiccOtpk := omit |
| 210 | } |
| 211 | |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 212 | /* GSMA SGP.22, section 2.5.6 */ |
Philipp Maier | 49ae9f9 | 2024-05-14 17:37:35 +0200 | [diff] [blame] | 213 | template (present) ProfileInstallationResultData |
| 214 | tr_profileInstallationResultData := { |
| 215 | transactionId := ?, |
| 216 | notificationMetadata := { |
| 217 | seqNumber := ?, |
| 218 | profileManagementOperation := ?, |
| 219 | notificationAddress := ?, |
| 220 | iccid := * |
| 221 | }, |
| 222 | smdpOid := ?, |
| 223 | finalResult := ? |
| 224 | } |
| 225 | template (value) ProfileInstallationResultData |
| 226 | ts_profileInstallationResultData := { |
| 227 | transactionId := 'AABBCC'O, |
| 228 | notificationMetadata := { |
| 229 | seqNumber := 1234, |
| 230 | profileManagementOperation := '01'B, /* is this correct? (notificationInstall) */ |
| 231 | notificationAddress := "smdp.example.com", |
Philipp Maier | b8335d9 | 2024-05-23 16:00:13 +0200 | [diff] [blame] | 232 | iccid := '123456789ABCDEFFAAAA'O |
Philipp Maier | 49ae9f9 | 2024-05-14 17:37:35 +0200 | [diff] [blame] | 233 | }, |
| 234 | smdpOid := id_rsp, /* random OBJECT IDENTIFIER for testing */ |
| 235 | finalResult := { |
| 236 | successResult := { |
| 237 | aid := '0102030405'O, |
| 238 | simaResponse := '4141414141414141414141414141414141414141414141414141'O |
| 239 | } |
| 240 | } |
| 241 | } |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 242 | template (present) ProfileInstallationResult |
| 243 | tr_profileInstallationResult := { |
Philipp Maier | 49ae9f9 | 2024-05-14 17:37:35 +0200 | [diff] [blame] | 244 | profileInstallationResultData := tr_profileInstallationResultData, |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 245 | euiccSignPIR := ? |
| 246 | } |
| 247 | template (value) ProfileInstallationResult |
| 248 | ts_profileInstallationResult := { |
Philipp Maier | 49ae9f9 | 2024-05-14 17:37:35 +0200 | [diff] [blame] | 249 | profileInstallationResultData := ts_profileInstallationResultData, |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 250 | euiccSignPIR := '00112233445566778899AABBCCDDEEFF'O |
| 251 | } |
| 252 | |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 253 | /* GSMA SGP.22, section 5.6.1 (ES9+) */ |
| 254 | template (present) RemoteProfileProvisioningRequest |
| 255 | tr_initiateAuthenticationRequest(template (present) octetstring euiccChallenge := ?, |
| 256 | template (present) charstring smdpAddress := ?, |
| 257 | template (present) EUICCInfo1 euiccInfo1 := ?) := { |
| 258 | initiateAuthenticationRequest := { |
| 259 | euiccChallenge := euiccChallenge, |
| 260 | smdpAddress := smdpAddress, |
| 261 | euiccInfo1 := euiccInfo1 |
| 262 | } |
| 263 | } |
| 264 | template (value) RemoteProfileProvisioningRequest |
Philipp Maier | b1e2fe4 | 2024-04-29 12:20:30 +0200 | [diff] [blame] | 265 | ts_initiateAuthenticationRequest(template (value) octetstring euiccChallenge := '00112233445566778899aabbccddeeff'O, |
| 266 | template (value) charstring smdpAddress := "smdp.example.com", |
| 267 | template (value) EUICCInfo1 euiccInfo1 := ts_EUICCInfo1) := { |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 268 | initiateAuthenticationRequest := { |
| 269 | euiccChallenge := euiccChallenge, |
| 270 | smdpAddress := smdpAddress, |
| 271 | euiccInfo1 := euiccInfo1 |
| 272 | } |
| 273 | } |
| 274 | template (present) RemoteProfileProvisioningResponse |
| 275 | tr_initiateAuthenticationResponse(template (present) octetstring transactionId := ?, |
| 276 | template (present) ServerSigned1 serverSigned1 := ?, |
| 277 | template (present) octetstring serverSignature1 := ?, |
| 278 | template (present) SubjectKeyIdentifier euiccCiPKIdToBeUsed := ?, |
| 279 | template (present) Certificate serverCertificate := ?) := { |
| 280 | initiateAuthenticationResponse := { |
| 281 | initiateAuthenticationOk := { |
| 282 | transactionId := transactionId, |
| 283 | serverSigned1 := serverSigned1, |
| 284 | serverSignature1 := serverSignature1, |
| 285 | euiccCiPKIdToBeUsed := euiccCiPKIdToBeUsed, |
| 286 | serverCertificate := serverCertificate |
| 287 | } |
| 288 | } |
| 289 | } |
| 290 | template (value) RemoteProfileProvisioningResponse |
Philipp Maier | b1e2fe4 | 2024-04-29 12:20:30 +0200 | [diff] [blame] | 291 | ts_initiateAuthenticationResponse(template (value) octetstring transactionId := 'ABCDEF'O, |
| 292 | template (value) ServerSigned1 serverSigned1 := ts_serverSigned1, |
| 293 | template (value) octetstring serverSignature1 := '01020304'O, |
| 294 | template (value) SubjectKeyIdentifier euiccCiPKIdToBeUsed := 'F54172BDF98A95D65CBEB88A38A1C11D800A85C3'O, /* NIST */ |
| 295 | template (value) Certificate serverCertificate := ts_cert_s_sm_dpauth_nist) := { |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 296 | initiateAuthenticationResponse := { |
| 297 | initiateAuthenticationOk := { |
| 298 | transactionId := transactionId, |
| 299 | serverSigned1 := serverSigned1, |
| 300 | serverSignature1 := serverSignature1, |
| 301 | euiccCiPKIdToBeUsed := euiccCiPKIdToBeUsed, |
| 302 | serverCertificate := serverCertificate |
| 303 | } |
| 304 | } |
| 305 | } |
| 306 | |
| 307 | /* GSMA SGP.22, section 5.6.2 (ES9+) */ |
| 308 | template (present) RemoteProfileProvisioningRequest |
| 309 | tr_getBoundProfilePackageRequest(template (present) octetstring transactionId := ?, |
| 310 | template (present) PrepareDownloadResponse prepareDownloadResponse := ?) := { |
| 311 | getBoundProfilePackageRequest := { |
| 312 | transactionId := transactionId, |
| 313 | prepareDownloadResponse := prepareDownloadResponse |
| 314 | } |
| 315 | } |
| 316 | template (value) RemoteProfileProvisioningRequest |
Philipp Maier | 29c2a09 | 2024-05-13 12:29:04 +0200 | [diff] [blame] | 317 | ts_getBoundProfilePackageRequest(template (value) octetstring transactionId := 'AABBCC'O, |
| 318 | template (value) PrepareDownloadResponse prepareDownloadResponse := ts_prepareDownloadResponse) := { |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 319 | getBoundProfilePackageRequest := { |
| 320 | transactionId := transactionId, |
| 321 | prepareDownloadResponse := prepareDownloadResponse |
| 322 | } |
| 323 | } |
| 324 | template (present) RemoteProfileProvisioningResponse |
| 325 | tr_getBoundProfilePackageResponse(template (present) octetstring transactionId := ?, |
| 326 | template (present) BoundProfilePackage boundProfilePackage := ?) := { |
| 327 | getBoundProfilePackageResponse := { |
| 328 | getBoundProfilePackageOk := { |
| 329 | transactionId := transactionId, |
| 330 | boundProfilePackage := boundProfilePackage |
| 331 | } |
| 332 | } |
| 333 | } |
| 334 | template (value) RemoteProfileProvisioningResponse |
Philipp Maier | 29c2a09 | 2024-05-13 12:29:04 +0200 | [diff] [blame] | 335 | ts_getBoundProfilePackageResponse(template (value) octetstring transactionId := 'AABBCC'O, |
| 336 | template (value) BoundProfilePackage boundProfilePackage := ts_boundProfilePackage) := { |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 337 | getBoundProfilePackageResponse := { |
| 338 | getBoundProfilePackageOk := { |
| 339 | transactionId := transactionId, |
| 340 | boundProfilePackage := boundProfilePackage |
| 341 | } |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | /* GSMA SGP.22, section 5.6.3 (ES9+) */ |
| 346 | template (present) RemoteProfileProvisioningRequest |
| 347 | tr_authenticateClientRequest(template (present) octetstring transactionId := ?, |
| 348 | template (present) AuthenticateServerResponse authenticateServerResponse := ?) := { |
| 349 | authenticateClientRequest := { |
| 350 | transactionId := transactionId, |
| 351 | authenticateServerResponse := authenticateServerResponse |
| 352 | } |
| 353 | } |
| 354 | template (value) RemoteProfileProvisioningRequest |
| 355 | ts_authenticateClientRequest(template (value) octetstring transactionId, |
| 356 | template (value) AuthenticateServerResponse authenticateServerResponse) := { |
| 357 | authenticateClientRequest := { |
| 358 | transactionId := transactionId, |
| 359 | authenticateServerResponse := authenticateServerResponse |
| 360 | } |
| 361 | } |
| 362 | template (present) RemoteProfileProvisioningResponse |
| 363 | tr_authenticateClientResponseEs9(template (present) octetstring transactionId := ?, |
| 364 | template (present) StoreMetadataRequest profileMetaData := ?, |
| 365 | template (present) SmdpSigned2 smdpSigned2 := ?, |
| 366 | template (present) octetstring smdpSignature2 := ?, |
| 367 | template (present) Certificate smdpCertificate := ?) := { |
| 368 | authenticateClientResponseEs9 := { |
| 369 | authenticateClientOk := { |
| 370 | transactionId := transactionId, |
| 371 | profileMetaData := profileMetaData, |
| 372 | smdpSigned2 := smdpSigned2, |
| 373 | smdpSignature2 := smdpSignature2, |
| 374 | smdpCertificate := smdpCertificate |
| 375 | } |
| 376 | } |
| 377 | } |
| 378 | template (value) RemoteProfileProvisioningResponse |
Philipp Maier | 3583475 | 2024-04-30 11:06:33 +0200 | [diff] [blame] | 379 | ts_authenticateClientResponseEs9(template (value) octetstring transactionId := 'ABCDEF'O, |
| 380 | template (value) StoreMetadataRequest profileMetaData := ts_storeMetadataRequest, |
| 381 | template (value) SmdpSigned2 smdpSigned2 := ts_smdpSigned2, |
| 382 | template (value) octetstring smdpSignature2 := 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB'O, |
| 383 | template (value) Certificate smdpCertificate := ts_cert_s_sm_dpauth_nist) := { |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 384 | authenticateClientResponseEs9 := { |
| 385 | authenticateClientOk := { |
| 386 | transactionId := transactionId, |
| 387 | profileMetaData := profileMetaData, |
| 388 | smdpSigned2 := smdpSigned2, |
| 389 | smdpSignature2 := smdpSignature2, |
| 390 | smdpCertificate := smdpCertificate |
| 391 | } |
| 392 | } |
| 393 | } |
| 394 | |
| 395 | /* GSMA SGP.22, section 5.6.4 (ES9+) */ |
| 396 | template (present) RemoteProfileProvisioningRequest |
| 397 | tr_handleNotification(template (present) PendingNotification pendingNotification := ?) := { |
| 398 | handleNotification := { |
| 399 | pendingNotification := pendingNotification |
| 400 | } |
| 401 | } |
| 402 | template (value) RemoteProfileProvisioningRequest |
| 403 | ts_handleNotification(template (value) PendingNotification pendingNotification) := { |
| 404 | handleNotification := { |
| 405 | pendingNotification := pendingNotification |
| 406 | } |
| 407 | } |
| 408 | |
| 409 | /* GSMA SGP.22, section 5.6.5 (ES9+) */ |
| 410 | template (present) RemoteProfileProvisioningRequest |
| 411 | tr_cancelSessionRequestEs9(template (present) octetstring transactionId := ?, |
| 412 | template (present) CancelSessionResponse cancelSessionResponse := ?) := { |
| 413 | cancelSessionRequestEs9 := { |
| 414 | transactionId := transactionId, |
| 415 | cancelSessionResponse := cancelSessionResponse |
| 416 | } |
| 417 | } |
| 418 | template (value) RemoteProfileProvisioningRequest |
| 419 | ts_cancelSessionRequestEs9(template (value) octetstring transactionId, |
| 420 | template (value) CancelSessionResponse cancelSessionResponse) := { |
| 421 | cancelSessionRequestEs9 := { |
| 422 | transactionId := transactionId, |
| 423 | cancelSessionResponse := cancelSessionResponse |
| 424 | } |
| 425 | } |
| 426 | template (present) RemoteProfileProvisioningResponse |
| 427 | tr_cancelSessionResponseEs9 := { |
| 428 | cancelSessionResponseEs9 := { |
| 429 | cancelSessionOk := { } /* This function has no output data */ |
| 430 | } |
| 431 | } |
| 432 | template (value) RemoteProfileProvisioningResponse |
| 433 | ts_cancelSessionResponseEs9 := { |
| 434 | cancelSessionResponseEs9 := { |
| 435 | cancelSessionOk := { } /* This function has no output data */ |
| 436 | } |
| 437 | } |
| 438 | |
| 439 | |
| 440 | /* GSMA SGP.22, section 5.7.3 (ES10x) */ |
| 441 | template (present) EuiccConfiguredAddressesResponse |
| 442 | tr_euiccConfiguredAddressesResponse := { |
| 443 | defaultDpAddress := *, |
| 444 | rootDsAddress := ? |
| 445 | } |
| 446 | template (value) EuiccConfiguredAddressesResponse |
| 447 | ts_euiccConfiguredAddressesResponse := { |
| 448 | defaultDpAddress := "smdp.example.com", |
| 449 | rootDsAddress := "smds.example.com" |
| 450 | } |
| 451 | |
| 452 | /* GSMA SGP.22, section 5.7.5 (ES10x) */ |
Philipp Maier | c0045ca | 2024-05-13 12:31:49 +0200 | [diff] [blame] | 453 | template (present) PrepareDownloadResponseOk |
| 454 | tr_prepareDownloadResponseOk := { |
| 455 | euiccSigned2 := { |
| 456 | transactionId := ?, |
| 457 | euiccOtpk := ?, |
| 458 | hashCc := * |
| 459 | }, |
| 460 | euiccSignature2 := ? |
| 461 | } |
| 462 | template (value) PrepareDownloadResponseOk |
| 463 | ts_prepareDownloadResponseOk := { |
| 464 | euiccSigned2 := { |
| 465 | transactionId := 'ABCDEF'O, |
| 466 | euiccOtpk := 'AABBCCDDEEFF'O, |
| 467 | hashCc := omit |
| 468 | }, |
| 469 | euiccSignature2 := 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'O |
| 470 | } |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 471 | template (present) PrepareDownloadResponse |
| 472 | tr_prepareDownloadResponse := { |
Philipp Maier | c0045ca | 2024-05-13 12:31:49 +0200 | [diff] [blame] | 473 | downloadResponseOk := tr_prepareDownloadResponseOk |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 474 | } |
| 475 | template (value) PrepareDownloadResponse |
| 476 | ts_prepareDownloadResponse := { |
Philipp Maier | c0045ca | 2024-05-13 12:31:49 +0200 | [diff] [blame] | 477 | downloadResponseOk := ts_prepareDownloadResponseOk |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 478 | } |
| 479 | |
| 480 | /* GSMA SGP.22, section 5.7.7 (ES10x) */ |
| 481 | template (present) GetEuiccChallengeResponse |
| 482 | tr_GetEuiccChallengeResponse := { |
| 483 | euiccChallenge := ? |
| 484 | } |
| 485 | template (value) GetEuiccChallengeResponse |
| 486 | ts_GetEuiccChallengeResponse(template (value) octetstring euiccChallenge := '00112233445566778899AABBCCDDEEFF'O) := { |
| 487 | euiccChallenge := euiccChallenge |
| 488 | } |
| 489 | |
| 490 | /* GSMA SGP.22, section 5.7.8 (ES10x) */ |
| 491 | template (present) EUICCInfo1 |
| 492 | tr_EUICCInfo1 := { |
| 493 | svn := ?, |
| 494 | euiccCiPKIdListForVerification := ?, |
| 495 | euiccCiPKIdListForSigning := ? |
| 496 | } |
| 497 | template (value) EUICCInfo1 |
| 498 | ts_EUICCInfo1 := { |
| 499 | svn := '020200'O, |
| 500 | euiccCiPKIdListForVerification := { |
| 501 | 'C0BC70BA36929D43B467FF57570530E57AB8FCD8'O, |
| 502 | 'F54172BDF98A95D65CBEB88A38A1C11D800A85C3'O |
| 503 | }, |
| 504 | euiccCiPKIdListForSigning := { |
| 505 | 'C0BC70BA36929D43B467FF57570530E57AB8FCD8'O, |
| 506 | 'F54172BDF98A95D65CBEB88A38A1C11D800A85C3'O |
| 507 | } |
| 508 | } |
| 509 | |
| 510 | /* GSMA SGP.22, section 5.7.8 (ES10x) */ |
| 511 | template (present) EUICCInfo2 |
| 512 | tr_EUICCInfo2 := { |
| 513 | profileVersion := ?, |
| 514 | svn := ?, |
| 515 | euiccFirmwareVer := ?, |
| 516 | extCardResource := ?, |
| 517 | uiccCapability := ?, |
| 518 | ts102241Version := *, |
| 519 | globalplatformVersion := *, |
| 520 | rspCapability := ?, |
| 521 | euiccCiPKIdListForVerification := ?, |
| 522 | euiccCiPKIdListForSigning := ?, |
| 523 | euiccCategory := *, |
| 524 | forbiddenProfilePolicyRules := *, |
| 525 | ppVersion := ?, |
| 526 | sasAcreditationNumber := ?, |
| 527 | certificationDataObject := *, |
| 528 | treProperties := *, |
| 529 | treProductReference := *, |
| 530 | additionalEuiccProfilePackageVersions := * |
| 531 | } |
| 532 | template (value) EUICCInfo2 |
| 533 | ts_EUICCInfo2 := { |
| 534 | profileVersion := '414243'O, |
| 535 | svn := '02000C'O, |
| 536 | euiccFirmwareVer := '414243'O, |
| 537 | extCardResource := '414243'O, |
| 538 | uiccCapability := '1111111111111111111'B, |
| 539 | ts102241Version := omit, |
| 540 | globalplatformVersion := omit, |
| 541 | rspCapability := '1111'B, |
| 542 | euiccCiPKIdListForVerification := { |
| 543 | 'C0BC70BA36929D43B467FF57570530E57AB8FCD8'O, |
| 544 | 'F54172BDF98A95D65CBEB88A38A1C11D800A85C3'O |
| 545 | }, |
| 546 | euiccCiPKIdListForSigning := { |
| 547 | 'C0BC70BA36929D43B467FF57570530E57AB8FCD8'O, |
| 548 | 'F54172BDF98A95D65CBEB88A38A1C11D800A85C3'O |
| 549 | }, |
| 550 | euiccCategory := omit, |
| 551 | forbiddenProfilePolicyRules := omit, |
| 552 | ppVersion := '414243'O, |
| 553 | sasAcreditationNumber := "123456", |
| 554 | certificationDataObject := omit, |
| 555 | treProperties := omit, |
| 556 | treProductReference := omit, |
| 557 | additionalEuiccProfilePackageVersions := omit |
| 558 | } |
| 559 | |
| 560 | /* GSMA SGP.22, section 5.7.10 (ES10x) */ |
| 561 | template (value) RetrieveNotificationsListResponse |
| 562 | ts_retrieveNotificationsListResponse := { |
| 563 | notificationList := { |
| 564 | { |
| 565 | profileInstallationResult := { |
Philipp Maier | d54f8f6 | 2024-05-23 16:02:56 +0200 | [diff] [blame] | 566 | profileInstallationResultData := ts_profileInstallationResultData, |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 567 | euiccSignPIR := 'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB'O |
| 568 | } |
| 569 | } |
| 570 | } |
| 571 | } |
| 572 | |
| 573 | /* GSMA SGP.22, section 5.7.11 (ES10x) */ |
| 574 | template (present) NotificationSentResponse |
| 575 | tr_notificationSentResponse := { |
| 576 | deleteNotificationStatus := ? |
| 577 | } |
| 578 | template (value) NotificationSentResponse |
| 579 | ts_notificationSentResponse := { |
| 580 | deleteNotificationStatus := 0 /* 0k */ |
| 581 | } |
| 582 | |
| 583 | /* GSMA SGP.22, section 5.7.13 (ES10x) */ |
| 584 | template (present) AuthenticateServerResponse |
| 585 | tr_authenticateServerResponse := { |
| 586 | authenticateResponseOk := { |
| 587 | euiccSigned1 := { |
| 588 | transactionId := ?, |
| 589 | serverAddress := ?, |
| 590 | serverChallenge := ?, |
| 591 | euiccInfo2 := ?, |
Philipp Maier | d7ccd01 | 2024-04-30 11:03:53 +0200 | [diff] [blame] | 592 | ctxParams1 := tr_ctxParams1 |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 593 | }, |
| 594 | euiccSignature1 := ?, |
| 595 | euiccCertificate := ?, |
| 596 | eumCertificate := ? |
| 597 | } |
| 598 | } |
| 599 | template (value) AuthenticateServerResponse |
| 600 | ts_authenticateServerResponse := { |
| 601 | authenticateResponseOk := { |
| 602 | euiccSigned1 := { |
| 603 | transactionId := 'ABCDEF'O, |
| 604 | serverAddress := "smdp.example.com", |
| 605 | serverChallenge := '01020304050607080910111213141516'O, |
| 606 | euiccInfo2 := ts_EUICCInfo2, |
Philipp Maier | d7ccd01 | 2024-04-30 11:03:53 +0200 | [diff] [blame] | 607 | ctxParams1 := ts_ctxParams1 |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 608 | }, |
| 609 | euiccSignature1 := '12345678'O, |
| 610 | euiccCertificate := ts_cert_euicc_nist, |
| 611 | // euiccCertificate := ts_cert_euicc_brp, |
| 612 | eumCertificate := ts_cert_eum_nist |
| 613 | // eumCertificate := ts_cert_eum_brp |
| 614 | |
| 615 | } |
| 616 | } |
| 617 | |
| 618 | /* GSMA SGP.22, section 5.7.13 (ES10x) */ |
| 619 | template (present) CancelSessionResponseOk |
| 620 | tr_cancelSessionResponseOk := { |
| 621 | euiccCancelSessionSigned := { |
| 622 | transactionId := ?, |
| 623 | smdpOid := ?, |
| 624 | reason := ? |
| 625 | }, |
| 626 | euiccCancelSessionSignature := ? |
| 627 | } |
| 628 | template (value) CancelSessionResponseOk |
| 629 | ts_cancelSessionResponseOk := { |
| 630 | euiccCancelSessionSigned := { |
| 631 | transactionId := 'AABBCC'O, |
| 632 | smdpOid := id_rspRole_euicc, |
| 633 | reason := 5 |
| 634 | }, |
| 635 | euiccCancelSessionSignature := '1234567890'O |
| 636 | } |
| 637 | template (present) CancelSessionResponse |
| 638 | tr_cancelSessionResponse := { |
| 639 | cancelSessionResponseOk := tr_cancelSessionResponseOk |
| 640 | } |
| 641 | template (value) CancelSessionResponse |
| 642 | ts_cancelSessionResponse := { |
| 643 | cancelSessionResponseOk := ts_cancelSessionResponseOk |
| 644 | } |
| 645 | |
| 646 | /* GSMA SGP.22, section 5.7.20 (ES10x) */ |
| 647 | template (present) GetEuiccDataResponse |
| 648 | tr_getEuiccDataResponse := { |
| 649 | eidValue := ? |
| 650 | } |
| 651 | template (value) GetEuiccDataResponse |
| 652 | ts_getEuiccDataResponse(template (value) octetstring eidValue := '000102030405060708090A0B0C0D0E0F'O) := { |
| 653 | eidValue := eidValue |
| 654 | } |
| 655 | |
Philipp Maier | 746f43e | 2024-04-29 12:17:12 +0200 | [diff] [blame] | 656 | } |