Skip to content

Commit c786fca

Browse files
authored
IOS-8995 Mask more tags (#396)
1 parent 23cdd76 commit c786fca

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

TangemSdk/TangemSdk/Common/TLV/TlvTag.swift

+38-38
Original file line numberDiff line numberDiff line change
@@ -202,48 +202,65 @@ public enum TlvTag: Byte {
202202
.newPin3,
203203
.walletPublicKey,
204204
.walletPrivateKey,
205-
.walletHDChain:
206-
return true
207-
case .unknown,
205+
.walletHDChain,
208206
.cardId,
209207
.transactionOutHash,
210-
.transactionOutHashSize,
211208
.walletSignature,
209+
.issuerTxSignature,
210+
.cardPublicKey,
211+
.cardSignature,
212+
.manufacturerSignature,
213+
.cardIDManufacturerSignature,
214+
.terminalPublicKey,
215+
.terminalTransactionSignature,
216+
.acquirerPublicKey,
217+
.manufacturerPublicKey,
218+
.primaryCardLinkingKey,
219+
.backupCardLinkingKey,
220+
.backupCardLink,
221+
.backupAttestSignature,
222+
.backupCardPublicKey,
223+
.sessionKeyA,
224+
.sessionKeyB,
225+
.certificate,
226+
.issuerData,
227+
.issuerDataSignature,
228+
.cardData,
229+
.proof,
230+
.publicKeyChallenge,
231+
.publicKeySalt,
232+
.challenge,
233+
.salt,
234+
.cvc,
235+
.issuerPublicKey,
236+
.issuerTransactionPublicKey,
237+
.resetPin,
238+
.trOutRaw,
239+
.cardWallet,
240+
.fileData,
241+
.fileSignature:
242+
return true
243+
case .unknown,
244+
.transactionOutHashSize,
212245
.walletRemainingSignatures,
213246
.walletSignedHashes,
214247
.pause,
215248
.flash,
216-
.issuerTxSignature,
217249
.status,
218-
.cardPublicKey,
219-
.cardSignature,
220250
.curveId,
221251
.hashAlgId,
222252
.signingMethod,
223253
.maxSignatures,
224254
.pauseBeforePin2,
225255
.settingsMask,
226256
.userSettingsMask,
227-
.cardData,
228257
.ndefData,
229258
.createWalletAtPersonalize,
230259
.health,
231260
.crExKey,
232-
.publicKeyChallenge,
233-
.publicKeySalt,
234-
.challenge,
235-
.salt,
236261
.validationCounter,
237-
.cvc,
238-
.sessionKeyA,
239-
.sessionKeyB,
240262
.uid,
241263
.manufacturerName,
242-
.manufacturerSignature,
243-
.issuerPublicKey,
244-
.issuerTransactionPublicKey,
245-
.issuerData,
246-
.issuerDataSignature,
247264
.issuerDataCounter,
248265
.isActivated,
249266
.activationSeed,
@@ -252,18 +269,14 @@ public enum TlvTag: Byte {
252269
.userProtectedData,
253270
.userCounter,
254271
.userProtectedCounter,
255-
.resetPin,
256272
.codePageAddress,
257273
.codePageCount,
258274
.codeHash,
259-
.trOutRaw,
260275
.firmwareVersion,
261276
.batchId,
262277
.manufactureDateTime,
263278
.issuerName,
264279
.blockchainName,
265-
.manufacturerPublicKey,
266-
.cardIDManufacturerSignature,
267280
.tokenSymbol,
268281
.tokenContractAddress,
269282
.tokenDecimal,
@@ -275,36 +288,23 @@ public enum TlvTag: Byte {
275288
.checkWalletCounter,
276289
.productMask,
277290
.isLinked,
278-
.terminalPublicKey,
279-
.terminalTransactionSignature,
280291
.legacyMode,
281292
.interactionMode,
282293
.offset,
283294
.size,
284-
.acquirerPublicKey,
285295
.pin2IsDefault,
286296
.pinIsDefault,
287297
.walletIndex,
288298
.walletsCount,
289299
.walletData,
290-
.cardWallet,
291300
.fileIndex,
292301
.fileSettings,
293302
.fileTypeName,
294-
.fileData,
295-
.fileSignature,
296303
.fileCounter,
297304
.fileOwnerIndex,
298305
.walletHDPath,
299-
.certificate,
300306
.backupStatus,
301-
.backupCount,
302-
.primaryCardLinkingKey,
303-
.backupCardLinkingKey,
304-
.backupCardLink,
305-
.backupAttestSignature,
306-
.backupCardPublicKey,
307-
.proof:
307+
.backupCount:
308308
return false
309309
}
310310
}

0 commit comments

Comments
 (0)