Skip to content

Commit

Permalink
IOS-8995 Mask more tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tureck1y committed Jan 22, 2025
1 parent 23cdd76 commit 49fa15f
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions TangemSdk/TangemSdk/Common/TLV/TlvTag.swift
Original file line number Diff line number Diff line change
Expand Up @@ -202,48 +202,65 @@ public enum TlvTag: Byte {
.newPin3,
.walletPublicKey,
.walletPrivateKey,
.walletHDChain:
return true
case .unknown,
.walletHDChain,
.cardId,
.transactionOutHash,
.transactionOutHashSize,
.walletSignature,
.issuerTxSignature,
.cardPublicKey,
.cardSignature,
.manufacturerSignature,
.cardIDManufacturerSignature,
.terminalPublicKey,
.terminalTransactionSignature,
.acquirerPublicKey,
.manufacturerPublicKey,
.primaryCardLinkingKey,
.backupCardLinkingKey,
.backupCardLink,
.backupAttestSignature,
.backupCardPublicKey,
.sessionKeyA,
.sessionKeyB,
.certificate,
.issuerData,
.issuerDataSignature,
.cardData,
.proof,
.publicKeyChallenge,
.publicKeySalt,
.challenge,
.salt,
.cvc,
.issuerPublicKey,
.issuerTransactionPublicKey,
.resetPin,
.trOutRaw,
.cardWallet,
.fileData,
.fileSignature:
return true
case .unknown,
.transactionOutHashSize,
.walletRemainingSignatures,
.walletSignedHashes,
.pause,
.flash,
.issuerTxSignature,
.status,
.cardPublicKey,
.cardSignature,
.curveId,
.hashAlgId,
.signingMethod,
.maxSignatures,
.pauseBeforePin2,
.settingsMask,
.userSettingsMask,
.cardData,
.ndefData,
.createWalletAtPersonalize,
.health,
.crExKey,
.publicKeyChallenge,
.publicKeySalt,
.challenge,
.salt,
.validationCounter,
.cvc,
.sessionKeyA,
.sessionKeyB,
.uid,
.manufacturerName,
.manufacturerSignature,
.issuerPublicKey,
.issuerTransactionPublicKey,
.issuerData,
.issuerDataSignature,
.issuerDataCounter,
.isActivated,
.activationSeed,
Expand All @@ -252,18 +269,14 @@ public enum TlvTag: Byte {
.userProtectedData,
.userCounter,
.userProtectedCounter,
.resetPin,
.codePageAddress,
.codePageCount,
.codeHash,
.trOutRaw,
.firmwareVersion,
.batchId,
.manufactureDateTime,
.issuerName,
.blockchainName,
.manufacturerPublicKey,
.cardIDManufacturerSignature,
.tokenSymbol,
.tokenContractAddress,
.tokenDecimal,
Expand All @@ -275,36 +288,23 @@ public enum TlvTag: Byte {
.checkWalletCounter,
.productMask,
.isLinked,
.terminalPublicKey,
.terminalTransactionSignature,
.legacyMode,
.interactionMode,
.offset,
.size,
.acquirerPublicKey,
.pin2IsDefault,
.pinIsDefault,
.walletIndex,
.walletsCount,
.walletData,
.cardWallet,
.fileIndex,
.fileSettings,
.fileTypeName,
.fileData,
.fileSignature,
.fileCounter,
.fileOwnerIndex,
.walletHDPath,
.certificate,
.backupStatus,
.backupCount,
.primaryCardLinkingKey,
.backupCardLinkingKey,
.backupCardLink,
.backupAttestSignature,
.backupCardPublicKey,
.proof:
.backupCount:
return false
}
}
Expand Down

0 comments on commit 49fa15f

Please sign in to comment.