Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 1 | /* SGP32 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 SGP32Definitions_Templates { |
| 12 | |
| 13 | import from SGP32Definitions all; |
| 14 | import from SGP32Definitions_Types all; |
| 15 | |
| 16 | import from RSPDefinitions all; |
| 17 | import from RSPDefinitions_Types all; |
| 18 | import from RSPDefinitions_Templates all; |
| 19 | |
| 20 | import from PKIX1Explicit88 all; |
| 21 | import from PKIX1Explicit88_Templates all; |
| 22 | import from PKIX1Explicit88_Types all; |
| 23 | |
| 24 | /* GSMA SGP.32, section 6.3.2.1 */ |
| 25 | template (present) EsipaMessageFromEimToIpa |
| 26 | tr_initiateAuthenticationResponseEsipa(template (present) octetstring euiccChallenge := ?, |
| 27 | template (present) universal charstring serverAddress := ?) := { |
| 28 | initiateAuthenticationResponseEsipa := { |
| 29 | initiateAuthenticationOkEsipa := { |
| 30 | transactionId := *, |
Philipp Maier | 746f43e | 2024-04-29 12:17:12 +0200 | [diff] [blame] | 31 | serverSigned1 := tr_serverSigned1(euiccChallenge := euiccChallenge, serverAddress := serverAddress), |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 32 | serverSignature1 := ?, |
| 33 | euiccCiPKIdToBeUsed := ?, |
| 34 | serverCertificate := ?, |
| 35 | matchingId := *, |
| 36 | ctxParams1 := * |
| 37 | } |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | template (value) EsipaMessageFromEimToIpa |
| 42 | ts_initiateAuthenticationResponseEsipa(template (value) octetstring euiccChallenge := '00112233445566778899AABBCCDDEEFF'O, |
| 43 | template (value) universal charstring serverAddress := "smdp.example.com") := { |
| 44 | initiateAuthenticationResponseEsipa := { |
| 45 | initiateAuthenticationOkEsipa := { |
| 46 | transactionId := omit, |
Philipp Maier | 746f43e | 2024-04-29 12:17:12 +0200 | [diff] [blame] | 47 | serverSigned1 := ts_serverSigned1(euiccChallenge := euiccChallenge, serverAddress := serverAddress), |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 48 | serverSignature1 := '01020304'O, |
| 49 | euiccCiPKIdToBeUsed := 'F54172BDF98A95D65CBEB88A38A1C11D800A85C3'O, /* NIST */ |
| 50 | serverCertificate := ts_cert_s_sm_dpauth_nist, |
| 51 | // serverCertificate := ts_cert_s_sm_dpauth_brp, |
| 52 | // serverCertificate := ts_cert_s_sm_dp2auth_nist, |
| 53 | // serverCertificate := ts_cert_s_sm_dp2auth_brp, |
| 54 | matchingId := omit, |
| 55 | ctxParams1 := omit |
| 56 | } |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | /* GSMA SGP.32, section 6.3.2.1 */ |
| 61 | template (present) EsipaMessageFromIpaToEim |
| 62 | tr_initiateAuthenticationRequestEsipa(template (present) octetstring euiccChallenge := ?) := { |
| 63 | initiateAuthenticationRequestEsipa := { |
| 64 | euiccChallenge := euiccChallenge, |
| 65 | smdpAddress := *, |
| 66 | euiccInfo1 := * |
| 67 | } |
| 68 | } |
| 69 | template (value) EsipaMessageFromIpaToEim |
Philipp Maier | e73a6a3 | 2024-04-25 15:48:37 +0200 | [diff] [blame] | 70 | ts_initiateAuthenticationRequestEsipa(template (value) octetstring euiccChallenge := '00112233445566778899aabbccddeeff'O, |
| 71 | template (omit) charstring smdpAddress := "smdp.example.com", |
| 72 | template (omit) EUICCInfo1 euiccInfo1 := ts_EUICCInfo1) := { |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 73 | initiateAuthenticationRequestEsipa := { |
| 74 | euiccChallenge := euiccChallenge, |
Philipp Maier | e73a6a3 | 2024-04-25 15:48:37 +0200 | [diff] [blame] | 75 | smdpAddress := smdpAddress, |
| 76 | euiccInfo1 := euiccInfo1 |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 77 | } |
| 78 | } |
| 79 | |
| 80 | /* GSMA SGP.32, section 6.3.2.2 */ |
| 81 | template (present) EsipaMessageFromIpaToEim |
| 82 | tr_authenticateClientRequestEsipa := { |
| 83 | authenticateClientRequestEsipa := { |
| 84 | transactionId := ?, |
| 85 | authenticateServerResponse := { |
| 86 | authenticateResponseOk := ? |
| 87 | } |
| 88 | } |
| 89 | } |
Philipp Maier | 916b5fa | 2024-04-30 11:34:09 +0200 | [diff] [blame] | 90 | template (value) EsipaMessageFromIpaToEim |
| 91 | ts_authenticateClientRequestEsipa(template (value) octetstring transactionId := 'ABCDEF'O) := { |
| 92 | authenticateClientRequestEsipa := { |
| 93 | transactionId := transactionId, |
| 94 | authenticateServerResponse := { |
| 95 | authenticateResponseOk := { |
| 96 | euiccSigned1 := ts_euiccSigned1, |
| 97 | euiccSignature1 := '1234567890'O, |
| 98 | euiccCertificate := ts_cert_eum_nist, |
| 99 | eumCertificate := ts_cert_s_sm_dpauth_nist |
| 100 | } |
| 101 | } |
| 102 | } |
| 103 | } |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 104 | |
| 105 | /* GSMA SGP.32, section 6.3.2.2 */ |
| 106 | template (present) EsipaMessageFromEimToIpa |
| 107 | tr_authenticateClientResponseEsipa_dse(template (present) octetstring transactionId := ?, |
| 108 | template (present) charstring activationCode := ?) := { |
| 109 | authenticateClientResponseEsipa := { |
| 110 | authenticateClientOkDSEsipa := { |
| 111 | transactionId := transactionId, |
| 112 | profileDownloadTrigger := { |
| 113 | profileDownloadData := { |
| 114 | activationCode := ? |
| 115 | }, |
| 116 | eimTransactionId := * |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | } |
| 121 | template (value) EsipaMessageFromEimToIpa |
| 122 | ts_authenticateClientResponseEsipa_dse(template (value) octetstring transactionId := 'ABCDEF'O, |
| 123 | template (value) charstring activationCode := "1$SMDP.EXAMPLE.COM$$1.3.6.1.4.1.31746") := { |
| 124 | authenticateClientResponseEsipa := { |
| 125 | authenticateClientOkDSEsipa := { |
| 126 | transactionId := transactionId, |
| 127 | profileDownloadTrigger := { |
| 128 | profileDownloadData := { |
| 129 | activationCode := activationCode |
| 130 | }, |
| 131 | eimTransactionId := omit |
| 132 | } |
| 133 | } |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | /* GSMA SGP.32, section 6.3.2.2 */ |
| 138 | template (present) EsipaMessageFromEimToIpa |
| 139 | tr_authenticateClientResponseEsipa_dpe(template (present) octetstring transactionId := ?) := { |
| 140 | authenticateClientResponseEsipa := { |
| 141 | authenticateClientOkDPEsipa := { |
| 142 | transactionId := transactionId, |
| 143 | profileMetaData := *, |
| 144 | smdpSigned2 := { |
| 145 | transactionId := ?, |
| 146 | ccRequiredFlag := ?, |
| 147 | bppEuiccOtpk := * |
| 148 | }, |
| 149 | smdpSignature2 := ?, |
| 150 | smdpCertificate := ?, |
| 151 | hashCc := * |
| 152 | } |
| 153 | } |
| 154 | } |
| 155 | template (value) EsipaMessageFromEimToIpa |
| 156 | ts_authenticateClientResponseEsipa_dpe(template (value) octetstring transactionId := 'ABCDEF'O) := { |
| 157 | authenticateClientResponseEsipa := { |
| 158 | authenticateClientOkDPEsipa := { |
| 159 | transactionId := transactionId, |
| 160 | profileMetaData := omit, |
| 161 | smdpSigned2 := { |
| 162 | transactionId := transactionId, |
| 163 | ccRequiredFlag := false, |
| 164 | bppEuiccOtpk := omit |
| 165 | }, |
| 166 | smdpSignature2 := 'AAAAAAAAAAAAAAAAAAAAAAAA'O, |
| 167 | smdpCertificate := ts_cert_s_sm_dpauth_nist, |
| 168 | // smdpCertificate := ts_cert_s_sm_dpauth_brp, |
| 169 | // smdpCertificate := ts_cert_s_sm_dp2auth_nist, |
| 170 | // smdpCertificate := ts_cert_s_sm_dp2auth_brp, |
| 171 | hashCc := omit |
| 172 | } |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | /* GSMA SGP.32, section 6.3.2.6 */ |
| 177 | template (present) EsipaMessageFromIpaToEim |
| 178 | tr_getEimPackageRequest(template (present) octetstring eidValue := ?) := { |
| 179 | getEimPackageRequest := { |
| 180 | eidValue := eidValue, |
| 181 | notifyStateChange := *, |
| 182 | rPLMN := * |
| 183 | } |
| 184 | } |
| 185 | template (value) EsipaMessageFromIpaToEim |
| 186 | ts_getEimPackageRequest(template (value) octetstring eidValue) := { |
| 187 | getEimPackageRequest := { |
| 188 | eidValue := eidValue, |
| 189 | notifyStateChange := omit, |
| 190 | rPLMN := omit |
| 191 | } |
| 192 | } |
| 193 | |
| 194 | /* GSMA SGP.32, section 6.3.2.6 and 2.11.1.3 */ |
| 195 | template (present) EsipaMessageFromEimToIpa |
| 196 | tr_getEimPackageResponse_dnlTrigReq(template (present) charstring activationCode := ?) := { |
| 197 | getEimPackageResponse := { |
| 198 | profileDownloadTriggerRequest := { |
| 199 | profileDownloadData := { |
| 200 | activationCode := activationCode |
| 201 | }, |
| 202 | eimTransactionId := * |
| 203 | } |
| 204 | } |
| 205 | } |
| 206 | template (value) EsipaMessageFromEimToIpa |
| 207 | ts_getEimPackageResponse_dnlTrigReq(template (value) charstring activationCode := "1$SMDP.EXAMPLE.COM$$1.3.6.1.4.1.31746") := { |
| 208 | getEimPackageResponse := { |
| 209 | profileDownloadTriggerRequest := { |
| 210 | profileDownloadData := { |
| 211 | activationCode := activationCode |
| 212 | }, |
| 213 | eimTransactionId := omit |
| 214 | } |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | /* GSMA SGP.32, section 6.3.2.6 and 2.11.1.2 */ |
| 219 | template (present) EsipaMessageFromEimToIpa |
| 220 | tr_getEimPackageResponse_euiccDataReq := { |
| 221 | getEimPackageResponse := { |
| 222 | ipaEuiccDataRequest := { |
| 223 | tagList := ?, |
| 224 | euiccCiPKId := *, |
| 225 | searchCriteria := * |
| 226 | } |
| 227 | } |
| 228 | } |
| 229 | template (value) EsipaMessageFromEimToIpa |
| 230 | ts_getEimPackageResponse_euiccDataReq := { |
| 231 | getEimPackageResponse := { |
| 232 | ipaEuiccDataRequest := { |
| 233 | tagList := '80BF20BF228384A5A688A9BF2B'O, |
| 234 | euiccCiPKId := omit, |
| 235 | searchCriteria := omit |
| 236 | } |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | /* GSMA SGP.32, section 6.3.2.6 */ |
| 241 | template (present) EsipaMessageFromEimToIpa |
| 242 | tr_getEimPackageResponse_eimPkgErrUndef := { |
| 243 | getEimPackageResponse := { |
| 244 | eimPackageError := ? |
| 245 | } |
| 246 | } |
| 247 | template (value) EsipaMessageFromEimToIpa |
| 248 | ts_getEimPackageResponse_eimPkgErrUndef := { |
| 249 | getEimPackageResponse := { |
| 250 | eimPackageError := 127 |
| 251 | } |
| 252 | } |
| 253 | |
Philipp Maier | ee47821 | 2024-05-16 15:15:03 +0200 | [diff] [blame] | 254 | /* GSMA SGP.32, section 2.11.1.1.3 */ |
| 255 | template (present) EuiccPackage |
| 256 | tr_euiccPackage_enablePsmo := { |
| 257 | psmoList := { |
| 258 | { |
| 259 | enable := { |
| 260 | iccid := ?, |
| 261 | rollbackFlag := * |
| 262 | } |
| 263 | } |
| 264 | } |
| 265 | } |
| 266 | template (value) EuiccPackage |
| 267 | ts_euiccPackage_enablePsmo := { |
| 268 | psmoList := { |
| 269 | { |
| 270 | enable := { |
| 271 | iccid := '123456789ABCDEFFAAAA'O, |
| 272 | rollbackFlag := NULL |
| 273 | } |
| 274 | } |
| 275 | } |
| 276 | } |
| 277 | template (present) EuiccPackage |
| 278 | tr_euiccPackage_disablePsmo := { |
| 279 | psmoList := { |
| 280 | { |
| 281 | disable := { |
| 282 | iccid := ? |
| 283 | } |
| 284 | } |
| 285 | } |
| 286 | } |
| 287 | template (value) EuiccPackage |
| 288 | ts_euiccPackage_disablePsmo := { |
| 289 | psmoList := { |
| 290 | { |
| 291 | disable := { |
| 292 | iccid := '123456789ABCDEFFAAAA'O |
| 293 | } |
| 294 | } |
| 295 | } |
| 296 | } |
| 297 | template (present) EuiccPackage |
| 298 | tr_euiccPackage_deletePsmo := { |
| 299 | psmoList := { |
| 300 | { |
| 301 | delete := { |
| 302 | iccid := ? |
| 303 | } |
| 304 | } |
| 305 | } |
| 306 | } |
| 307 | template (value) EuiccPackage |
| 308 | ts_euiccPackage_deletePsmo := { |
| 309 | psmoList := { |
| 310 | { |
| 311 | delete := { |
| 312 | iccid := '123456789ABCDEFFAAAA'O |
| 313 | } |
| 314 | } |
| 315 | } |
| 316 | } |
| 317 | template (present) EuiccPackage |
| 318 | tr_euiccPackage_disableAndDeletePsmo := { |
| 319 | psmoList := { |
| 320 | { |
| 321 | disable := { |
| 322 | iccid := ? |
| 323 | } |
| 324 | }, |
| 325 | { |
| 326 | delete := { |
| 327 | iccid := ? |
| 328 | } |
| 329 | } |
| 330 | } |
| 331 | } |
| 332 | template (value) EuiccPackage |
| 333 | ts_euiccPackage_disableAndDeletePsmo := { |
| 334 | psmoList := { |
| 335 | { |
| 336 | disable := { |
| 337 | iccid := '123456789ABCDEFFAAAA'O |
| 338 | } |
| 339 | }, |
| 340 | { |
| 341 | delete := { |
| 342 | iccid := '123456789ABCDEFFAAAA'O |
| 343 | } |
| 344 | } |
| 345 | } |
| 346 | } |
| 347 | |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 348 | /* GSMA SGP.32, section 6.3.2.6 */ |
Philipp Maier | ee47821 | 2024-05-16 15:15:03 +0200 | [diff] [blame] | 349 | template (present) EsipaMessageFromEimToIpa |
| 350 | tr_getEimPackageResponse_euiccPkgReq(template (present) EuiccPackage euiccPackage := tr_euiccPackage_enablePsmo) := { |
| 351 | getEimPackageResponse := { |
| 352 | euiccPackageRequest := { |
| 353 | euiccPackageSigned := { |
| 354 | eimId := ?, |
| 355 | eidValue := ?, |
| 356 | counterValue := ?, |
| 357 | transactionId := *, |
| 358 | euiccPackage := euiccPackage |
| 359 | }, |
| 360 | eimSignature := ? |
| 361 | } |
| 362 | } |
| 363 | } |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 364 | template (value) EsipaMessageFromEimToIpa |
Philipp Maier | ee47821 | 2024-05-16 15:15:03 +0200 | [diff] [blame] | 365 | ts_getEimPackageResponse_euiccPkgReq(template (value) EuiccPackage euiccPackage := ts_euiccPackage_enablePsmo) := { |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 366 | getEimPackageResponse := { |
| 367 | euiccPackageRequest := { |
| 368 | euiccPackageSigned := { |
| 369 | eimId := "myEim", |
| 370 | eidValue := '00112233445566778899AABBCCDDEEFF'O, |
| 371 | counterValue := 123, |
| 372 | transactionId := omit, |
Philipp Maier | ee47821 | 2024-05-16 15:15:03 +0200 | [diff] [blame] | 373 | euiccPackage := euiccPackage |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 374 | }, |
| 375 | eimSignature := '1234567890'O |
| 376 | } |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | /* GSMA SGP.32, section 6.3.2.5 */ |
| 381 | template (present) EsipaMessageFromIpaToEim |
| 382 | tr_cancelSessionRequestEsipa := { |
| 383 | cancelSessionRequestEsipa := { |
| 384 | transactionId := ?, |
| 385 | cancelSessionResponse := { |
| 386 | cancelSessionResponseOk := tr_cancelSessionResponseOk |
| 387 | } |
| 388 | } |
| 389 | } |
| 390 | template (value) EsipaMessageFromIpaToEim |
| 391 | ts_cancelSessionRequestEsipa := { |
| 392 | cancelSessionRequestEsipa := { |
| 393 | transactionId := 'AABBCC'O, |
| 394 | cancelSessionResponse := { |
| 395 | cancelSessionResponseOk := ts_cancelSessionResponseOk |
| 396 | } |
| 397 | } |
| 398 | } |
| 399 | |
| 400 | /* GSMA SGP.32, section 6.3.2.5 */ |
| 401 | template (present) EsipaMessageFromEimToIpa |
| 402 | tr_cancelSessionResponseEsipa := { |
| 403 | cancelSessionResponseEsipa := { |
| 404 | cancelSessionOk := { |
| 405 | /* This function has no output data */ |
| 406 | } |
| 407 | } |
| 408 | } |
| 409 | template (value) EsipaMessageFromEimToIpa |
| 410 | ts_cancelSessionResponseEsipa := { |
| 411 | cancelSessionResponseEsipa := { |
| 412 | cancelSessionOk := { |
| 413 | /* This function has no output data */ |
| 414 | } |
| 415 | } |
| 416 | } |
| 417 | |
| 418 | /* GSMA SGP.32, section 6.3.2.3 */ |
Philipp Maier | 3b7bad3 | 2024-05-13 12:36:58 +0200 | [diff] [blame] | 419 | template (present) EsipaMessageFromIpaToEim |
| 420 | tr_getBoundProfilePackageRequestEsipa := { |
| 421 | getBoundProfilePackageRequestEsipa := { |
| 422 | transactionId := ?, |
| 423 | prepareDownloadResponse := { |
| 424 | downloadResponseOk := tr_prepareDownloadResponseOk |
| 425 | } |
| 426 | } |
| 427 | } |
| 428 | template (value) EsipaMessageFromIpaToEim |
| 429 | ts_getBoundProfilePackageRequestEsipa := { |
| 430 | getBoundProfilePackageRequestEsipa := { |
| 431 | transactionId := 'ABCDEF'O, |
| 432 | prepareDownloadResponse := { |
| 433 | downloadResponseOk := ts_prepareDownloadResponseOk |
| 434 | } |
| 435 | } |
| 436 | } |
| 437 | |
| 438 | /* GSMA SGP.32, section 6.3.2.3 */ |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 439 | template (present) EsipaMessageFromEimToIpa |
| 440 | tr_getBoundProfilePackageResponseEsipa := { |
| 441 | getBoundProfilePackageResponseEsipa := { |
| 442 | getBoundProfilePackageOkEsipa := { |
| 443 | transactionId := *, |
| 444 | boundProfilePackage := tr_boundProfilePackage |
| 445 | } |
| 446 | } |
| 447 | } |
| 448 | template (value) EsipaMessageFromEimToIpa |
| 449 | ts_getBoundProfilePackageResponseEsipa := { |
| 450 | getBoundProfilePackageResponseEsipa := { |
| 451 | getBoundProfilePackageOkEsipa := { |
| 452 | transactionId := omit, |
| 453 | boundProfilePackage := ts_boundProfilePackage |
| 454 | } |
| 455 | } |
| 456 | } |
| 457 | |
| 458 | /* GSMA SGP.32, section 5.9.1 */ |
| 459 | template (present) EuiccPackageResult |
| 460 | tr_euiccPackageResult := { |
| 461 | euiccPackageResultSigned := { |
| 462 | euiccPackageResultDataSigned := { |
| 463 | eimId := ?, |
| 464 | counterValue := ?, |
| 465 | transactionId := *, |
| 466 | seqNumber := ?, |
| 467 | euiccResult := ? |
| 468 | }, |
| 469 | euiccSignEPR := ? |
| 470 | } |
| 471 | } |
| 472 | template (value) EuiccPackageResult |
| 473 | ts_euiccPackageResult := { |
| 474 | euiccPackageResultSigned := { |
| 475 | euiccPackageResultDataSigned := { |
| 476 | eimId := "myEim", |
| 477 | counterValue := 333, |
| 478 | transactionId := omit, |
| 479 | seqNumber := 1234, |
| 480 | euiccResult := { |
| 481 | { |
Philipp Maier | ac10cee | 2024-04-10 15:51:47 +0200 | [diff] [blame] | 482 | enableResult := 0 |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 483 | } |
| 484 | } |
| 485 | }, |
| 486 | euiccSignEPR := 'AABBCCDDEEFF'O |
| 487 | } |
| 488 | } |
| 489 | |
Philipp Maier | bff6337 | 2024-05-14 17:41:16 +0200 | [diff] [blame] | 490 | /* GSMA SGP.32, section 6.3.2.4 */ |
| 491 | template (present) EsipaMessageFromIpaToEim |
| 492 | tr_handleNotificationEsipa_prfleInstRslt := { |
| 493 | handleNotificationEsipa := { |
| 494 | pendingNotification := { |
| 495 | profileInstallationResult := { |
| 496 | profileInstallationResultData := tr_profileInstallationResultData, |
| 497 | euiccSignPIR := ? |
| 498 | } |
| 499 | } |
| 500 | } |
| 501 | } |
| 502 | template (value) EsipaMessageFromIpaToEim |
| 503 | ts_handleNotificationEsipa_prfleInstRslt := { |
| 504 | handleNotificationEsipa := { |
| 505 | pendingNotification := { |
| 506 | profileInstallationResult := { |
| 507 | profileInstallationResultData := ts_profileInstallationResultData, |
| 508 | euiccSignPIR := '00112233445566778899AABBCCDDEEFF'O |
| 509 | } |
| 510 | } |
| 511 | } |
| 512 | } |
| 513 | |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 514 | /* GSMA SGP.32, section 6.3.2.7 */ |
Philipp Maier | 6e04d17 | 2024-05-16 15:22:01 +0200 | [diff] [blame] | 515 | template (present) EuiccPackageResult |
| 516 | tr_euiccPackageResultSigned_enablePsmo := { |
| 517 | euiccPackageResultSigned := { |
| 518 | euiccPackageResultDataSigned := { |
| 519 | eimId := ?, |
| 520 | counterValue := ?, |
| 521 | transactionId := *, |
| 522 | seqNumber := ?, |
| 523 | euiccResult := { |
| 524 | { |
Philipp Maier | ab2e72a | 2024-05-21 11:11:46 +0200 | [diff] [blame^] | 525 | enableResult := ? |
Philipp Maier | 6e04d17 | 2024-05-16 15:22:01 +0200 | [diff] [blame] | 526 | } |
| 527 | } |
| 528 | }, |
| 529 | euiccSignEPR := ? |
| 530 | } |
| 531 | } |
| 532 | template (value) EuiccPackageResult |
| 533 | ts_euiccPackageResultSigned_enablePsmo := { |
| 534 | euiccPackageResultSigned := { |
| 535 | euiccPackageResultDataSigned := { |
| 536 | eimId := "myEIM", |
| 537 | counterValue := 1, |
| 538 | transactionId := omit, |
| 539 | seqNumber := 123, |
| 540 | euiccResult := { |
| 541 | { |
Philipp Maier | ab2e72a | 2024-05-21 11:11:46 +0200 | [diff] [blame^] | 542 | enableResult := 0 |
Philipp Maier | 6e04d17 | 2024-05-16 15:22:01 +0200 | [diff] [blame] | 543 | } |
| 544 | } |
| 545 | }, |
| 546 | euiccSignEPR := '00112233445566778899AABBCCDDEEFF'O |
| 547 | } |
| 548 | } |
| 549 | template (present) EuiccPackageResult |
| 550 | tr_euiccPackageResultSigned_disablePsmo := { |
| 551 | euiccPackageResultSigned := { |
| 552 | euiccPackageResultDataSigned := { |
| 553 | eimId := ?, |
| 554 | counterValue := ?, |
| 555 | transactionId := *, |
| 556 | seqNumber := ?, |
| 557 | euiccResult := { |
| 558 | { |
Philipp Maier | ab2e72a | 2024-05-21 11:11:46 +0200 | [diff] [blame^] | 559 | disableResult := ? |
Philipp Maier | 6e04d17 | 2024-05-16 15:22:01 +0200 | [diff] [blame] | 560 | } |
| 561 | } |
| 562 | }, |
| 563 | euiccSignEPR := ? |
| 564 | } |
| 565 | } |
| 566 | template (value) EuiccPackageResult |
| 567 | ts_euiccPackageResultSigned_disablePsmo := { |
| 568 | euiccPackageResultSigned := { |
| 569 | euiccPackageResultDataSigned := { |
| 570 | eimId := "myEIM", |
| 571 | counterValue := 1, |
| 572 | transactionId := omit, |
| 573 | seqNumber := 123, |
| 574 | euiccResult := { |
| 575 | { |
Philipp Maier | ab2e72a | 2024-05-21 11:11:46 +0200 | [diff] [blame^] | 576 | disableResult := 0 |
Philipp Maier | 6e04d17 | 2024-05-16 15:22:01 +0200 | [diff] [blame] | 577 | } |
| 578 | } |
| 579 | }, |
| 580 | euiccSignEPR := '00112233445566778899AABBCCDDEEFF'O |
| 581 | } |
| 582 | } |
| 583 | template (present) EuiccPackageResult |
| 584 | tr_euiccPackageResultSigned_deletePsmo := { |
| 585 | euiccPackageResultSigned := { |
| 586 | euiccPackageResultDataSigned := { |
| 587 | eimId := ?, |
| 588 | counterValue := ?, |
| 589 | transactionId := *, |
| 590 | seqNumber := ?, |
| 591 | euiccResult := { |
| 592 | { |
Philipp Maier | ab2e72a | 2024-05-21 11:11:46 +0200 | [diff] [blame^] | 593 | deleteResult := ? |
Philipp Maier | 6e04d17 | 2024-05-16 15:22:01 +0200 | [diff] [blame] | 594 | } |
| 595 | } |
| 596 | }, |
| 597 | euiccSignEPR := ? |
| 598 | } |
| 599 | } |
| 600 | template (value) EuiccPackageResult |
| 601 | ts_euiccPackageResultSigned_deletePsmo := { |
| 602 | euiccPackageResultSigned := { |
| 603 | euiccPackageResultDataSigned := { |
| 604 | eimId := "myEIM", |
| 605 | counterValue := 1, |
| 606 | transactionId := omit, |
| 607 | seqNumber := 123, |
| 608 | euiccResult := { |
| 609 | { |
Philipp Maier | ab2e72a | 2024-05-21 11:11:46 +0200 | [diff] [blame^] | 610 | deleteResult := 0 |
Philipp Maier | 6e04d17 | 2024-05-16 15:22:01 +0200 | [diff] [blame] | 611 | } |
| 612 | } |
| 613 | }, |
| 614 | euiccSignEPR := '00112233445566778899AABBCCDDEEFF'O |
| 615 | } |
| 616 | } |
| 617 | template (present) EuiccPackageResult |
| 618 | tr_euiccPackageResultSigned_disableAndDeletePsmo := { |
| 619 | euiccPackageResultSigned := { |
| 620 | euiccPackageResultDataSigned := { |
| 621 | eimId := ?, |
| 622 | counterValue := ?, |
| 623 | transactionId := *, |
| 624 | seqNumber := ?, |
| 625 | euiccResult := { |
| 626 | { |
Philipp Maier | ab2e72a | 2024-05-21 11:11:46 +0200 | [diff] [blame^] | 627 | disableResult := ? |
Philipp Maier | 6e04d17 | 2024-05-16 15:22:01 +0200 | [diff] [blame] | 628 | }, |
| 629 | { |
Philipp Maier | ab2e72a | 2024-05-21 11:11:46 +0200 | [diff] [blame^] | 630 | deleteResult := ? |
Philipp Maier | 6e04d17 | 2024-05-16 15:22:01 +0200 | [diff] [blame] | 631 | } |
| 632 | } |
| 633 | }, |
| 634 | euiccSignEPR := ? |
| 635 | } |
| 636 | } |
| 637 | template (value) EuiccPackageResult |
| 638 | ts_euiccPackageResultSigned_disableAndDeletePsmo := { |
| 639 | euiccPackageResultSigned := { |
| 640 | euiccPackageResultDataSigned := { |
| 641 | eimId := "myEIM", |
| 642 | counterValue := 1, |
| 643 | transactionId := omit, |
| 644 | seqNumber := 123, |
| 645 | euiccResult := { |
| 646 | { |
Philipp Maier | ab2e72a | 2024-05-21 11:11:46 +0200 | [diff] [blame^] | 647 | disableResult := 0 |
Philipp Maier | 6e04d17 | 2024-05-16 15:22:01 +0200 | [diff] [blame] | 648 | }, |
| 649 | { |
Philipp Maier | ab2e72a | 2024-05-21 11:11:46 +0200 | [diff] [blame^] | 650 | deleteResult := 0 |
Philipp Maier | 6e04d17 | 2024-05-16 15:22:01 +0200 | [diff] [blame] | 651 | } |
| 652 | } |
| 653 | }, |
| 654 | euiccSignEPR := '00112233445566778899AABBCCDDEEFF'O |
| 655 | } |
| 656 | } |
Philipp Maier | e4de06e | 2024-04-10 15:58:22 +0200 | [diff] [blame] | 657 | template (present) EsipaMessageFromIpaToEim |
Philipp Maier | 6e04d17 | 2024-05-16 15:22:01 +0200 | [diff] [blame] | 658 | tr_provideEimPackageResult_ePRAndNotif(template (present) EuiccPackageResult euiccPackageResult := tr_euiccPackageResultSigned_enablePsmo) := { |
Philipp Maier | e4de06e | 2024-04-10 15:58:22 +0200 | [diff] [blame] | 659 | provideEimPackageResult := { |
| 660 | ePRAndNotifications := { |
Philipp Maier | 6e04d17 | 2024-05-16 15:22:01 +0200 | [diff] [blame] | 661 | euiccPackageResult := euiccPackageResult, |
Philipp Maier | e4de06e | 2024-04-10 15:58:22 +0200 | [diff] [blame] | 662 | notificationList := ? |
| 663 | } |
| 664 | } |
| 665 | } |
Philipp Maier | 6e04d17 | 2024-05-16 15:22:01 +0200 | [diff] [blame] | 666 | template (value) EsipaMessageFromIpaToEim |
| 667 | ts_provideEimPackageResult_ePRAndNotif(template (value) EuiccPackageResult euiccPackageResult := ts_euiccPackageResultSigned_enablePsmo) := { |
| 668 | provideEimPackageResult := { |
| 669 | ePRAndNotifications := { |
| 670 | euiccPackageResult := euiccPackageResult, |
| 671 | notificationList := { |
| 672 | notificationList := { } |
| 673 | } |
| 674 | } |
| 675 | } |
| 676 | } |
| 677 | |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 678 | template (present) EsipaMessageFromEimToIpa |
Philipp Maier | 88f2481 | 2024-04-10 15:55:51 +0200 | [diff] [blame] | 679 | tr_provideEimPackageResultResponse_eimAck := { |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 680 | provideEimPackageResultResponse := { |
| 681 | eimAcknowledgements := * |
| 682 | } |
| 683 | } |
| 684 | template (value) EsipaMessageFromEimToIpa |
Philipp Maier | 88f2481 | 2024-04-10 15:55:51 +0200 | [diff] [blame] | 685 | ts_provideEimPackageResultResponse_eimAck(template (value) EimAcknowledgements eimAcknowledgements := {}) := { |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 686 | provideEimPackageResultResponse := { |
| 687 | eimAcknowledgements := eimAcknowledgements |
| 688 | } |
| 689 | } |
| 690 | |
| 691 | /* GSMA SGP.32, section 2.11.1.2 */ |
| 692 | template (present) GetCertsResponse |
| 693 | tr_getCertsResponse := { |
| 694 | certs := { |
| 695 | eumCertificate := ?, |
| 696 | euiccCertificate := ? |
| 697 | } |
| 698 | } |
| 699 | template (value) GetCertsResponse |
| 700 | ts_getCertsResponse := { |
| 701 | certs := { |
| 702 | eumCertificate := ts_cert_s_sm_dpauth_nist, |
| 703 | euiccCertificate := ts_cert_eum_nist |
| 704 | } |
| 705 | } |
| 706 | |
| 707 | /* GSMA SGP.32, section 5.9.18 */ |
| 708 | template (present) GetEimConfigurationDataResponse |
| 709 | tr_getEimConfigurationDataResponse := { |
| 710 | eimConfigurationDataList := ? |
| 711 | } |
| 712 | template (value) GetEimConfigurationDataResponse |
| 713 | ts_getEimConfigurationDataResponse(template (value) charstring eimFqdn := "127.0.0.1") := { |
| 714 | eimConfigurationDataList := { |
| 715 | { |
| 716 | eimId := "myEIM", |
| 717 | eimFqdn := eimFqdn, |
| 718 | eimIdType := omit, |
| 719 | counterValue := omit, |
| 720 | associationToken := 123, |
| 721 | eimPublicKeyData := omit, |
| 722 | trustedPublicKeyDataTls := omit, |
| 723 | eimSupportedProtocol := omit, |
| 724 | euiccCiPKId := omit |
| 725 | } |
| 726 | } |
| 727 | } |
| 728 | |
| 729 | /* GSMA SGP.32, section 5.9.4 */ |
| 730 | template (present) AddInitialEimResponse |
| 731 | tr_addInitialEimResponse := { |
| 732 | addInitialEimOk := ? |
| 733 | } |
| 734 | template (value) AddInitialEimResponse |
Philipp Maier | d9887d3 | 2024-04-10 15:48:05 +0200 | [diff] [blame] | 735 | ts_addInitialEimResponse := { |
Philipp Maier | 08902cf | 2024-03-04 10:32:55 +0100 | [diff] [blame] | 736 | addInitialEimOk := { |
| 737 | { |
| 738 | addOk := NULL |
| 739 | } |
| 740 | } |
| 741 | } |
| 742 | |
Philipp Maier | 4a24fb0 | 2024-04-10 16:01:06 +0200 | [diff] [blame] | 743 | /* GSMA SGP.32, section 5.9.16 */ |
| 744 | template (present) ProfileRollbackRequest |
| 745 | tr_profileRollbackRequest := { |
| 746 | refreshFlag := ? |
| 747 | } |
| 748 | template (value) ProfileRollbackRequest |
| 749 | ts_profileRollbackRequest := { |
| 750 | refreshFlag := false |
| 751 | } |
| 752 | template (present) ProfileRollbackResponse |
| 753 | tr_profileRollbackResponse := { |
| 754 | cmdResult := ?, |
| 755 | eUICCPackageResult := ? |
| 756 | } |
| 757 | template (value) ProfileRollbackResponse |
| 758 | ts_profileRollbackResponse := { |
| 759 | cmdResult := 0, |
| 760 | eUICCPackageResult := { |
| 761 | euiccPackageResultSigned := { |
| 762 | euiccPackageResultDataSigned := { |
| 763 | eimId := "myEim", |
| 764 | counterValue := 333, |
| 765 | transactionId := omit, |
| 766 | seqNumber := 1234, |
| 767 | euiccResult := { |
| 768 | { |
| 769 | enableResult := 0 |
| 770 | }, |
| 771 | { |
| 772 | rollbackResult := 0 |
| 773 | } |
| 774 | } |
| 775 | }, |
| 776 | euiccSignEPR := 'AABBCCDDEEFF'O |
| 777 | } |
| 778 | } |
| 779 | } |
| 780 | |
| 781 | |
Philipp Maier | 978ab44 | 2024-04-10 15:46:45 +0200 | [diff] [blame] | 782 | } |