diff --git a/Modules/CommonsLib/Sources/CommonsLib/Constants.swift b/Modules/CommonsLib/Sources/CommonsLib/Constants.swift index 4257dcfcf..f5e3295a0 100644 --- a/Modules/CommonsLib/Sources/CommonsLib/Constants.swift +++ b/Modules/CommonsLib/Sources/CommonsLib/Constants.swift @@ -127,10 +127,6 @@ public struct Constants { public static let MinimumPhoneNumberLength = 10 public static let AllowedPhoneNumberCountryCodes = ["370", "372"] public static let CANNumberLength = 6 - public static let Pin1MinimumLength = 4 - public static let Pin2MinimumLength = 5 - public static let PukMinimumLength = 8 - public static let PinMaximumLength = 12 } public struct Signing { diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Headers/nfclib-Swift.h b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Headers/nfclib-Swift.h index 27cfd0ce9..11c0546b7 100644 --- a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Headers/nfclib-Swift.h +++ b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Headers/nfclib-Swift.h @@ -1,6 +1,6 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Generated by Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101) +// Generated by Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1) #ifndef NFCLIB_SWIFT_H #define NFCLIB_SWIFT_H #pragma clang diagnostic push @@ -30,7 +30,6 @@ #if defined(__cplusplus) #include #include -#include #include #include #include @@ -321,6 +320,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Warc-bridge-casts-disallowed-in-nonarc" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #pragma clang diagnostic ignored "-Wunsafe-buffer-usage" @@ -357,6 +357,7 @@ extern "C" { #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Warc-bridge-casts-disallowed-in-nonarc" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #pragma clang diagnostic ignored "-Wunsafe-buffer-usage" diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Headers/nfclib.h b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Headers/nfclib.h index 9ab9e1be8..b62940649 100644 --- a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Headers/nfclib.h +++ b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Headers/nfclib.h @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #import diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Info.plist b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Info.plist index 220846405..48492ac84 100644 Binary files a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Info.plist and b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Info.plist differ diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo index f74dc317e..e715dbed6 100644 Binary files a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo and b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo differ diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios.abi.json b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios.abi.json index 5f2505d33..c0e130b00 100644 --- a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios.abi.json +++ b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios.abi.json @@ -21,44 +21,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoKit", - "printedName": "CryptoKit", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "TypeDecl", "name": "OperationSignHash", @@ -449,14 +411,14 @@ "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" } ], "declKind": "Var", - "usr": "s:6nfclib10WebEidDataC9algorithmSSvp", - "mangledName": "$s6nfclib10WebEidDataC9algorithmSSvp", + "usr": "s:6nfclib10WebEidDataC9algorithmAA0bC18SignatureAlgorithmOvp", + "mangledName": "$s6nfclib10WebEidDataC9algorithmAA0bC18SignatureAlgorithmOvp", "moduleName": "nfclib", "declAttributes": [ "Final", @@ -473,14 +435,14 @@ "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" } ], "declKind": "Accessor", - "usr": "s:6nfclib10WebEidDataC9algorithmSSvg", - "mangledName": "$s6nfclib10WebEidDataC9algorithmSSvg", + "usr": "s:6nfclib10WebEidDataC9algorithmAA0bC18SignatureAlgorithmOvg", + "mangledName": "$s6nfclib10WebEidDataC9algorithmAA0bC18SignatureAlgorithmOvg", "moduleName": "nfclib", "implicit": true, "declAttributes": [ @@ -633,6 +595,257 @@ "RawDocComment" ] }, + { + "kind": "Import", + "name": "Security", + "printedName": "Security", + "declKind": "Import", + "moduleName": "nfclib" + }, + { + "kind": "TypeDecl", + "name": "WebEidSignatureAlgorithm", + "printedName": "WebEidSignatureAlgorithm", + "children": [ + { + "kind": "Var", + "name": "es256", + "printedName": "es256", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.WebEidSignatureAlgorithm.Type) -> nfclib.WebEidSignatureAlgorithm", + "children": [ + { + "kind": "TypeNominal", + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.WebEidSignatureAlgorithm.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO5es256yA2CmF", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO5es256yA2CmF", + "moduleName": "nfclib" + }, + { + "kind": "Var", + "name": "es384", + "printedName": "es384", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.WebEidSignatureAlgorithm.Type) -> nfclib.WebEidSignatureAlgorithm", + "children": [ + { + "kind": "TypeNominal", + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.WebEidSignatureAlgorithm.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO5es384yA2CmF", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO5es384yA2CmF", + "moduleName": "nfclib" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "nfclib.WebEidSignatureAlgorithm?", + "children": [ + { + "kind": "TypeNominal", + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Constructor", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO8rawValueACSgSS_tcfc", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO8rawValueACSgSS_tcfc", + "moduleName": "nfclib", + "implicit": true, + "init_kind": "Designated" + }, + { + "kind": "Var", + "name": "rawValue", + "printedName": "rawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO8rawValueSSvp", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO8rawValueSSvp", + "moduleName": "nfclib", + "implicit": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO8rawValueSSvg", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO8rawValueSSvg", + "moduleName": "nfclib", + "implicit": true, + "accessorKind": "get" + } + ] + } + ], + "declKind": "Enum", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO", + "moduleName": "nfclib", + "declAttributes": [ + "AccessControl" + ], + "enumRawTypeName": "String", + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "RawRepresentable", + "printedName": "RawRepresentable", + "children": [ + { + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ] + } + ], + "usr": "s:SY", + "mangledName": "$sSY" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + }, + { + "kind": "Conformance", + "name": "SendableMetatype", + "printedName": "SendableMetatype", + "usr": "s:s16SendableMetatypeP", + "mangledName": "$ss16SendableMetatypeP" + } + ] + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "nfclib", + "declAttributes": [ + "RawDocComment" + ] + }, + { + "kind": "Import", + "name": "Synchronization", + "printedName": "Synchronization", + "declKind": "Import", + "moduleName": "nfclib" + }, { "kind": "Import", "name": "Darwin", @@ -826,170 +1039,11 @@ }, { "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CoreNFC", - "printedName": "CoreNFC", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", + "name": "Security", + "printedName": "Security", "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Var", - "name": "rsaAlgorithmName", - "printedName": "rsaAlgorithmName", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:6nfclib16rsaAlgorithmNameSSvp", - "mangledName": "$s6nfclib16rsaAlgorithmNameSSvp", - "moduleName": "nfclib", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:6nfclib16rsaAlgorithmNameSSvg", - "mangledName": "$s6nfclib16rsaAlgorithmNameSSvg", - "moduleName": "nfclib", - "implicit": true, - "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "ecAlgorithmName", - "printedName": "ecAlgorithmName", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:6nfclib15ecAlgorithmNameSSvp", - "mangledName": "$s6nfclib15ecAlgorithmNameSSvp", - "moduleName": "nfclib", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:6nfclib15ecAlgorithmNameSSvg", - "mangledName": "$s6nfclib15ecAlgorithmNameSSvg", - "moduleName": "nfclib", - "implicit": true, - "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "unknownAlgorithmName", - "printedName": "unknownAlgorithmName", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:6nfclib20unknownAlgorithmNameSSvp", - "mangledName": "$s6nfclib20unknownAlgorithmNameSSvp", - "moduleName": "nfclib", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:6nfclib20unknownAlgorithmNameSSvg", - "mangledName": "$s6nfclib20unknownAlgorithmNameSSvg", - "moduleName": "nfclib", - "implicit": true, - "accessorKind": "get" - } - ] - }, { "kind": "Import", "name": "Foundation", @@ -1007,37 +1061,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "Import", "name": "Security", @@ -1045,16 +1068,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "X509", - "printedName": "X509", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, { "kind": "TypeDecl", "name": "AuthenticateWithWebEidError", @@ -1134,43 +1147,6 @@ "mangledName": "$s6nfclib27AuthenticateWithWebEidErrorO26failedToDetermineAlgorithmyA2CmF", "moduleName": "nfclib" }, - { - "kind": "Var", - "name": "failedToHashData", - "printedName": "failedToHashData", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(nfclib.AuthenticateWithWebEidError.Type) -> nfclib.AuthenticateWithWebEidError", - "children": [ - { - "kind": "TypeNominal", - "name": "AuthenticateWithWebEidError", - "printedName": "nfclib.AuthenticateWithWebEidError", - "usr": "s:6nfclib27AuthenticateWithWebEidErrorO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "nfclib.AuthenticateWithWebEidError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "AuthenticateWithWebEidError", - "printedName": "nfclib.AuthenticateWithWebEidError", - "usr": "s:6nfclib27AuthenticateWithWebEidErrorO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:6nfclib27AuthenticateWithWebEidErrorO16failedToHashDatayA2CmF", - "mangledName": "$s6nfclib27AuthenticateWithWebEidErrorO16failedToHashDatayA2CmF", - "moduleName": "nfclib" - }, { "kind": "Var", "name": "failedToMapAlgorithm", @@ -1581,56 +1557,6 @@ "isFromExtension": true, "funcSelfKind": "NonMutating" }, - { - "kind": "Function", - "name": "getAlgorithmNameTypeAndLength", - "printedName": "getAlgorithmNameTypeAndLength(from:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "(algorithm: Swift.String, keyLength: Swift.Int)?", - "children": [ - { - "kind": "TypeNominal", - "name": "Tuple", - "printedName": "(algorithm: Swift.String, keyLength: Swift.Int)", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ] - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "SecKey", - "printedName": "Security.SecKey", - "usr": "c:@T@SecKeyRef" - } - ], - "declKind": "Func", - "usr": "s:6nfclib31OperationAuthenticateWithWebEIDC29getAlgorithmNameTypeAndLength4fromSS9algorithm_Si03keyL0tSgSo9SecKeyRefa_tF", - "mangledName": "$s6nfclib31OperationAuthenticateWithWebEIDC29getAlgorithmNameTypeAndLength4fromSS9algorithm_Si03keyL0tSgSo9SecKeyRefa_tF", - "moduleName": "nfclib", - "declAttributes": [ - "Custom", - "AccessControl" - ], - "isFromExtension": true, - "funcSelfKind": "NonMutating" - }, { "kind": "Function", "name": "tagReaderSessionDidBecomeActive", @@ -1692,49 +1618,6 @@ ], "isFromExtension": true, "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "mapToAlgorithm", - "printedName": "mapToAlgorithm(algorithm:bitLength:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:6nfclib31OperationAuthenticateWithWebEIDC14mapToAlgorithm9algorithm9bitLengthSSSgSS_SitF", - "mangledName": "$s6nfclib31OperationAuthenticateWithWebEIDC14mapToAlgorithm9algorithm9bitLengthSSSgSS_SitF", - "moduleName": "nfclib", - "declAttributes": [ - "Custom", - "AccessControl" - ], - "isFromExtension": true, - "funcSelfKind": "NonMutating" } ], "declKind": "Class", @@ -1831,48 +1714,20 @@ ] }, { - "kind": "TypeDecl", - "name": "SignatureAlgorithmInfo", - "printedName": "SignatureAlgorithmInfo", - "declKind": "Struct", - "usr": "s:6nfclib22SignatureAlgorithmInfoV", - "mangledName": "$s6nfclib22SignatureAlgorithmInfoV", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - } - ] - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", + "kind": "Import", + "name": "CryptoTokenKit", + "printedName": "CryptoTokenKit", + "declKind": "Import", + "moduleName": "nfclib", + "declAttributes": [ + "RawDocComment" + ] + }, + { + "kind": "Import", + "name": "SwiftECC", + "printedName": "SwiftECC", + "declKind": "Import", "moduleName": "nfclib", "declAttributes": [ "AccessControl" @@ -1924,7 +1779,10 @@ "name": "BigInt", "printedName": "BigInt", "declKind": "Import", - "moduleName": "nfclib" + "moduleName": "nfclib", + "declAttributes": [ + "AccessControl" + ] }, { "kind": "Import", @@ -1963,37 +1821,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "Import", "name": "Security", @@ -2756,21 +2583,14 @@ }, { "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", + "name": "Foundation", + "printedName": "Foundation", "declKind": "Import", "moduleName": "nfclib", "declAttributes": [ "RawDocComment" ] }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "Import", "name": "SwiftECC", @@ -2783,8 +2603,8 @@ }, { "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", + "name": "Foundation", + "printedName": "Foundation", "declKind": "Import", "moduleName": "nfclib", "declAttributes": [ @@ -2835,44 +2655,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "Security", - "printedName": "Security", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "TypeDecl", "name": "UnblockPINError", @@ -2915,43 +2697,6 @@ "mangledName": "$s6nfclib15UnblockPINErrorO24missingRequiredParameteryA2CmF", "moduleName": "nfclib" }, - { - "kind": "Var", - "name": "failed", - "printedName": "failed", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(nfclib.UnblockPINError.Type) -> nfclib.UnblockPINError", - "children": [ - { - "kind": "TypeNominal", - "name": "UnblockPINError", - "printedName": "nfclib.UnblockPINError", - "usr": "s:6nfclib15UnblockPINErrorO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "nfclib.UnblockPINError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "UnblockPINError", - "printedName": "nfclib.UnblockPINError", - "usr": "s:6nfclib15UnblockPINErrorO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:6nfclib15UnblockPINErrorO6failedyA2CmF", - "mangledName": "$s6nfclib15UnblockPINErrorO6failedyA2CmF", - "moduleName": "nfclib" - }, { "kind": "Var", "name": "general", @@ -3442,20 +3187,6 @@ "Preconcurrency" ] }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "TypeDecl", "name": "NFCConnection", @@ -3617,16 +3348,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, { "kind": "Import", "name": "Foundation", @@ -3644,6 +3365,16 @@ "declKind": "Import", "moduleName": "nfclib" }, + { + "kind": "Import", + "name": "CoreNFC", + "printedName": "CoreNFC", + "declKind": "Import", + "moduleName": "nfclib", + "declAttributes": [ + "RawDocComment" + ] + }, { "kind": "TypeDecl", "name": "IdCardError", @@ -3694,12 +3425,12 @@ { "kind": "TypeFunc", "name": "Function", - "printedName": "(nfclib.IdCardError.Type) -> (Swift.Int) -> nfclib.IdCardError", + "printedName": "(nfclib.IdCardError.Type) -> (nfclib.CodeType, Swift.Int) -> nfclib.IdCardError", "children": [ { "kind": "TypeFunc", "name": "Function", - "printedName": "(Swift.Int) -> nfclib.IdCardError", + "printedName": "(nfclib.CodeType, Swift.Int) -> nfclib.IdCardError", "children": [ { "kind": "TypeNominal", @@ -3710,8 +3441,14 @@ { "kind": "TypeNominal", "name": "Tuple", - "printedName": "(triesLeft: Swift.Int)", + "printedName": "(codeType: nfclib.CodeType, triesLeft: Swift.Int)", "children": [ + { + "kind": "TypeNominal", + "name": "CodeType", + "printedName": "nfclib.CodeType", + "usr": "s:6nfclib8CodeTypeO" + }, { "kind": "TypeNominal", "name": "Int", @@ -3739,8 +3476,8 @@ } ], "declKind": "EnumElement", - "usr": "s:6nfclib11IdCardErrorO8wrongPINyACSi_tcACmF", - "mangledName": "$s6nfclib11IdCardErrorO8wrongPINyACSi_tcACmF", + "usr": "s:6nfclib11IdCardErrorO8wrongPINyAcA8CodeTypeO_SitcACmF", + "mangledName": "$s6nfclib11IdCardErrorO8wrongPINyAcA8CodeTypeO_SitcACmF", "moduleName": "nfclib" }, { @@ -3816,6 +3553,43 @@ "usr": "s:6nfclib11IdCardErrorO07sessionD0yA2CmF", "mangledName": "$s6nfclib11IdCardErrorO07sessionD0yA2CmF", "moduleName": "nfclib" + }, + { + "kind": "Var", + "name": "notActivated", + "printedName": "notActivated", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.IdCardError.Type) -> nfclib.IdCardError", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardError", + "printedName": "nfclib.IdCardError", + "usr": "s:6nfclib11IdCardErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.IdCardError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardError", + "printedName": "nfclib.IdCardError", + "usr": "s:6nfclib11IdCardErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib11IdCardErrorO12notActivatedyA2CmF", + "mangledName": "$s6nfclib11IdCardErrorO12notActivatedyA2CmF", + "moduleName": "nfclib" } ], "declKind": "Enum", @@ -3823,8 +3597,7 @@ "mangledName": "$s6nfclib11IdCardErrorO", "moduleName": "nfclib", "declAttributes": [ - "AccessControl", - "RawDocComment" + "AccessControl" ], "conformances": [ { @@ -4276,13 +4049,33 @@ { "kind": "TypeFunc", "name": "Function", - "printedName": "(nfclib.IdCardInternalError.Type) -> nfclib.IdCardInternalError", + "printedName": "(nfclib.IdCardInternalError.Type) -> (nfclib.CodeType) -> nfclib.IdCardInternalError", "children": [ { - "kind": "TypeNominal", - "name": "IdCardInternalError", - "printedName": "nfclib.IdCardInternalError", - "usr": "s:6nfclib19IdCardInternalErrorO" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.CodeType) -> nfclib.IdCardInternalError", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardInternalError", + "printedName": "nfclib.IdCardInternalError", + "usr": "s:6nfclib19IdCardInternalErrorO" + }, + { + "kind": "TypeNominal", + "name": "Tuple", + "printedName": "(codeType: nfclib.CodeType)", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeType", + "printedName": "nfclib.CodeType", + "usr": "s:6nfclib8CodeTypeO" + } + ] + } + ] }, { "kind": "TypeNominal", @@ -4301,8 +4094,8 @@ } ], "declKind": "EnumElement", - "usr": "s:6nfclib19IdCardInternalErrorO21pinVerificationFailedyA2CmF", - "mangledName": "$s6nfclib19IdCardInternalErrorO21pinVerificationFailedyA2CmF", + "usr": "s:6nfclib19IdCardInternalErrorO21pinVerificationFailedyAcA8CodeTypeO_tcACmF", + "mangledName": "$s6nfclib19IdCardInternalErrorO21pinVerificationFailedyAcA8CodeTypeO_tcACmF", "moduleName": "nfclib" }, { @@ -4313,12 +4106,12 @@ { "kind": "TypeFunc", "name": "Function", - "printedName": "(nfclib.IdCardInternalError.Type) -> (Swift.Int) -> nfclib.IdCardInternalError", + "printedName": "(nfclib.IdCardInternalError.Type) -> (nfclib.CodeType, Swift.Int) -> nfclib.IdCardInternalError", "children": [ { "kind": "TypeFunc", "name": "Function", - "printedName": "(Swift.Int) -> nfclib.IdCardInternalError", + "printedName": "(nfclib.CodeType, Swift.Int) -> nfclib.IdCardInternalError", "children": [ { "kind": "TypeNominal", @@ -4328,9 +4121,22 @@ }, { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Tuple", + "printedName": "(codeType: nfclib.CodeType, count: Swift.Int)", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeType", + "printedName": "nfclib.CodeType", + "usr": "s:6nfclib8CodeTypeO" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ] } ] }, @@ -4351,8 +4157,8 @@ } ], "declKind": "EnumElement", - "usr": "s:6nfclib19IdCardInternalErrorO22remainingPinRetryCountyACSicACmF", - "mangledName": "$s6nfclib19IdCardInternalErrorO22remainingPinRetryCountyACSicACmF", + "usr": "s:6nfclib19IdCardInternalErrorO22remainingPinRetryCountyAcA8CodeTypeO_SitcACmF", + "mangledName": "$s6nfclib19IdCardInternalErrorO22remainingPinRetryCountyAcA8CodeTypeO_SitcACmF", "moduleName": "nfclib" }, { @@ -4984,6 +4790,80 @@ "mangledName": "$s6nfclib19IdCardInternalErrorO21notSupportedAlgorithmyA2CmF", "moduleName": "nfclib" }, + { + "kind": "Var", + "name": "operationInProgress", + "printedName": "operationInProgress", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.IdCardInternalError.Type) -> nfclib.IdCardInternalError", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardInternalError", + "printedName": "nfclib.IdCardInternalError", + "usr": "s:6nfclib19IdCardInternalErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.IdCardInternalError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardInternalError", + "printedName": "nfclib.IdCardInternalError", + "usr": "s:6nfclib19IdCardInternalErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib19IdCardInternalErrorO19operationInProgressyA2CmF", + "mangledName": "$s6nfclib19IdCardInternalErrorO19operationInProgressyA2CmF", + "moduleName": "nfclib" + }, + { + "kind": "Var", + "name": "notActivated", + "printedName": "notActivated", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.IdCardInternalError.Type) -> nfclib.IdCardInternalError", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardInternalError", + "printedName": "nfclib.IdCardInternalError", + "usr": "s:6nfclib19IdCardInternalErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.IdCardInternalError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardInternalError", + "printedName": "nfclib.IdCardInternalError", + "usr": "s:6nfclib19IdCardInternalErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib19IdCardInternalErrorO12notActivatedyA2CmF", + "mangledName": "$s6nfclib19IdCardInternalErrorO12notActivatedyA2CmF", + "moduleName": "nfclib" + }, { "kind": "Function", "name": "getIdCardError", @@ -5051,55 +4931,6 @@ } ] }, - { - "kind": "TypeDecl", - "name": "PinError", - "printedName": "PinError", - "declKind": "Struct", - "usr": "s:6nfclib8PinErrorV", - "mangledName": "$s6nfclib8PinErrorV", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Error", - "printedName": "Error", - "usr": "s:s5ErrorP", - "mangledName": "$ss5ErrorP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "Sendable", - "printedName": "Sendable", - "usr": "s:s8SendableP", - "mangledName": "$ss8SendableP" - }, - { - "kind": "Conformance", - "name": "SendableMetatype", - "printedName": "SendableMetatype", - "usr": "s:s16SendableMetatypeP", - "mangledName": "$ss16SendableMetatypeP" - } - ] - }, { "kind": "Import", "name": "os", @@ -5225,6 +5056,16 @@ } ] }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "nfclib", + "declAttributes": [ + "RawDocComment" + ] + }, { "kind": "TypeDecl", "name": "CardInfo", @@ -5740,10 +5581,95 @@ } ] }, + { + "kind": "Var", + "name": "dateAndPlaceOfBirth", + "printedName": "dateAndPlaceOfBirth", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CardInfoV19dateAndPlaceOfBirthSSvp", + "mangledName": "$s6nfclib8CardInfoV19dateAndPlaceOfBirthSSvp", + "moduleName": "nfclib", + "declAttributes": [ + "HasStorage", + "AccessControl" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CardInfoV19dateAndPlaceOfBirthSSvg", + "mangledName": "$s6nfclib8CardInfoV19dateAndPlaceOfBirthSSvg", + "moduleName": "nfclib", + "implicit": true, + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CardInfoV19dateAndPlaceOfBirthSSvs", + "mangledName": "$s6nfclib8CardInfoV19dateAndPlaceOfBirthSSvs", + "moduleName": "nfclib", + "implicit": true, + "accessorKind": "set" + }, + { + "kind": "Accessor", + "name": "Modify", + "printedName": "Modify()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CardInfoV19dateAndPlaceOfBirthSSvM", + "mangledName": "$s6nfclib8CardInfoV19dateAndPlaceOfBirthSSvM", + "moduleName": "nfclib", + "implicit": true, + "accessorKind": "_modify" + } + ] + }, { "kind": "Constructor", "name": "init", - "printedName": "init(givenName:surname:personalCode:citizenship:documentNumber:dateOfExpiry:)", + "printedName": "init(givenName:surname:personalCode:citizenship:documentNumber:dateOfExpiry:dateAndPlaceOfBirth:)", "children": [ { "kind": "TypeNominal", @@ -5786,6 +5712,13 @@ "hasDefaultArg": true, "usr": "s:SS" }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "hasDefaultArg": true, + "usr": "s:SS" + }, { "kind": "TypeNominal", "name": "String", @@ -5795,8 +5728,8 @@ } ], "declKind": "Constructor", - "usr": "s:6nfclib8CardInfoV9givenName7surname12personalCode11citizenship14documentNumber12dateOfExpiryACSS_S5Stcfc", - "mangledName": "$s6nfclib8CardInfoV9givenName7surname12personalCode11citizenship14documentNumber12dateOfExpiryACSS_S5Stcfc", + "usr": "s:6nfclib8CardInfoV9givenName7surname12personalCode11citizenship14documentNumber12dateOfExpiry0l8AndPlaceM5BirthACSS_S6Stcfc", + "mangledName": "$s6nfclib8CardInfoV9givenName7surname12personalCode11citizenship14documentNumber12dateOfExpiry0l8AndPlaceM5BirthACSS_S6Stcfc", "moduleName": "nfclib", "declAttributes": [ "AccessControl" @@ -5805,19 +5738,27 @@ }, { "kind": "Var", - "name": "formattedDescription", - "printedName": "formattedDescription", + "name": "dateOfBirth", + "printedName": "dateOfBirth", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Foundation.Date?", + "children": [ + { + "kind": "TypeNominal", + "name": "Date", + "printedName": "Foundation.Date", + "usr": "s:10Foundation4DateV" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "s:6nfclib8CardInfoV20formattedDescriptionSSvp", - "mangledName": "$s6nfclib8CardInfoV20formattedDescriptionSSvp", + "usr": "s:6nfclib8CardInfoV11dateOfBirth10Foundation4DateVSgvp", + "mangledName": "$s6nfclib8CardInfoV11dateOfBirth10Foundation4DateVSgvp", "moduleName": "nfclib", "declAttributes": [ "AccessControl" @@ -5830,38 +5771,122 @@ "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Foundation.Date?", + "children": [ + { + "kind": "TypeNominal", + "name": "Date", + "printedName": "Foundation.Date", + "usr": "s:10Foundation4DateV" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "s:6nfclib8CardInfoV20formattedDescriptionSSvg", - "mangledName": "$s6nfclib8CardInfoV20formattedDescriptionSSvg", + "usr": "s:6nfclib8CardInfoV11dateOfBirth10Foundation4DateVSgvg", + "mangledName": "$s6nfclib8CardInfoV11dateOfBirth10Foundation4DateVSgvg", "moduleName": "nfclib", "accessorKind": "get" } ] }, { - "kind": "Var", - "name": "hashValue", - "printedName": "hashValue", + "kind": "Function", + "name": "dateOfBirth", + "printedName": "dateOfBirth(fromPersonalCode:)", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Var", - "usr": "s:6nfclib8CardInfoV9hashValueSivp", - "mangledName": "$s6nfclib8CardInfoV9hashValueSivp", - "moduleName": "nfclib", - "implicit": true, - "accessors": [ - { + "name": "Optional", + "printedName": "Foundation.Date?", + "children": [ + { + "kind": "TypeNominal", + "name": "Date", + "printedName": "Foundation.Date", + "usr": "s:10Foundation4DateV" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:6nfclib8CardInfoV11dateOfBirth16fromPersonalCode10Foundation4DateVSgSS_tFZ", + "mangledName": "$s6nfclib8CardInfoV11dateOfBirth16fromPersonalCode10Foundation4DateVSgSS_tFZ", + "moduleName": "nfclib", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Var", + "name": "formattedDescription", + "printedName": "formattedDescription", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CardInfoV20formattedDescriptionSSvp", + "mangledName": "$s6nfclib8CardInfoV20formattedDescriptionSSvp", + "moduleName": "nfclib", + "declAttributes": [ + "AccessControl" + ], + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CardInfoV20formattedDescriptionSSvg", + "mangledName": "$s6nfclib8CardInfoV20formattedDescriptionSSvg", + "moduleName": "nfclib", + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "hashValue", + "printedName": "hashValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CardInfoV9hashValueSivp", + "mangledName": "$s6nfclib8CardInfoV9hashValueSivp", + "moduleName": "nfclib", + "implicit": true, + "accessors": [ + { "kind": "Accessor", "name": "Get", "printedName": "Get()", @@ -5945,8 +5970,7 @@ "mangledName": "$s6nfclib8CardInfoV", "moduleName": "nfclib", "declAttributes": [ - "AccessControl", - "RawDocComment" + "AccessControl" ], "conformances": [ { @@ -6459,37 +6483,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "TypeDecl", "name": "OperationReadPublicData", @@ -7002,6 +6995,180 @@ "accessorKind": "get" } ] + }, + { + "kind": "Var", + "name": "minimumLength", + "printedName": "minimumLength", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CodeTypeO13minimumLengthSivp", + "mangledName": "$s6nfclib8CodeTypeO13minimumLengthSivp", + "moduleName": "nfclib", + "isFromExtension": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CodeTypeO13minimumLengthSivg", + "mangledName": "$s6nfclib8CodeTypeO13minimumLengthSivg", + "moduleName": "nfclib", + "isFromExtension": true, + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "maximumLength", + "printedName": "maximumLength", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CodeTypeO13maximumLengthSivp", + "mangledName": "$s6nfclib8CodeTypeO13maximumLengthSivp", + "moduleName": "nfclib", + "isFromExtension": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CodeTypeO13maximumLengthSivg", + "mangledName": "$s6nfclib8CodeTypeO13maximumLengthSivg", + "moduleName": "nfclib", + "isFromExtension": true, + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "validLength", + "printedName": "validLength", + "children": [ + { + "kind": "TypeNominal", + "name": "ClosedRange", + "printedName": "Swift.ClosedRange", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "usr": "s:SN" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CodeTypeO11validLengthSNySiGvp", + "mangledName": "$s6nfclib8CodeTypeO11validLengthSNySiGvp", + "moduleName": "nfclib", + "isFromExtension": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "ClosedRange", + "printedName": "Swift.ClosedRange", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "usr": "s:SN" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CodeTypeO11validLengthSNySiGvg", + "mangledName": "$s6nfclib8CodeTypeO11validLengthSNySiGvg", + "moduleName": "nfclib", + "isFromExtension": true, + "accessorKind": "get" + } + ] + }, + { + "kind": "Function", + "name": "validateFormat", + "printedName": "validateFormat(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "nfclib.CodeValidationFailure?", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Array", + "printedName": "[Swift.UInt8]", + "children": [ + { + "kind": "TypeNominal", + "name": "UInt8", + "printedName": "Swift.UInt8", + "usr": "s:s5UInt8V" + } + ], + "usr": "s:Sa" + } + ], + "declKind": "Func", + "usr": "s:6nfclib8CodeTypeO14validateFormatyAA0B17ValidationFailureOSgSays5UInt8VGF", + "mangledName": "$s6nfclib8CodeTypeO14validateFormatyAA0B17ValidationFailureOSgSays5UInt8VGF", + "moduleName": "nfclib", + "isFromExtension": true, + "funcSelfKind": "NonMutating" } ], "declKind": "Enum", @@ -7079,6 +7246,196 @@ } ] }, + { + "kind": "TypeDecl", + "name": "CodeValidationFailure", + "printedName": "CodeValidationFailure", + "children": [ + { + "kind": "Var", + "name": "wrongLength", + "printedName": "wrongLength", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.CodeValidationFailure.Type) -> (Swift.Int, Swift.Int) -> nfclib.CodeValidationFailure", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Swift.Int, Swift.Int) -> nfclib.CodeValidationFailure", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + }, + { + "kind": "TypeNominal", + "name": "Tuple", + "printedName": "(minimum: Swift.Int, maximum: Swift.Int)", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ] + } + ] + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.CodeValidationFailure.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib21CodeValidationFailureO11wrongLengthyACSi_SitcACmF", + "mangledName": "$s6nfclib21CodeValidationFailureO11wrongLengthyACSi_SitcACmF", + "moduleName": "nfclib" + }, + { + "kind": "Var", + "name": "notNumeric", + "printedName": "notNumeric", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.CodeValidationFailure.Type) -> nfclib.CodeValidationFailure", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.CodeValidationFailure.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib21CodeValidationFailureO10notNumericyA2CmF", + "mangledName": "$s6nfclib21CodeValidationFailureO10notNumericyA2CmF", + "moduleName": "nfclib" + }, + { + "kind": "Function", + "name": "==", + "printedName": "==(_:_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + }, + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + } + ], + "declKind": "Func", + "usr": "s:6nfclib21CodeValidationFailureO2eeoiySbAC_ACtFZ", + "mangledName": "$s6nfclib21CodeValidationFailureO2eeoiySbAC_ACtFZ", + "moduleName": "nfclib", + "static": true, + "implicit": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:6nfclib21CodeValidationFailureO", + "mangledName": "$s6nfclib21CodeValidationFailureO", + "moduleName": "nfclib", + "declAttributes": [ + "AccessControl" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Error", + "printedName": "Error", + "usr": "s:s5ErrorP", + "mangledName": "$ss5ErrorP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "SendableMetatype", + "printedName": "SendableMetatype", + "usr": "s:s16SendableMetatypeP", + "mangledName": "$ss16SendableMetatypeP" + } + ] + }, { "kind": "TypeDecl", "name": "CardCommands", @@ -7538,118 +7895,6 @@ "RawDocComment" ] }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "TypeDecl", - "name": "DataProtocol", - "printedName": "DataProtocol", - "children": [ - { - "kind": "Function", - "name": "^", - "printedName": "^(_:_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "GenericTypeParam", - "printedName": "τ_0_0" - }, - { - "kind": "TypeNominal", - "name": "GenericTypeParam", - "printedName": "τ_0_0" - }, - { - "kind": "TypeNominal", - "name": "GenericTypeParam", - "printedName": "τ_0_0" - } - ], - "declKind": "Func", - "usr": "s:10Foundation12DataProtocolP6nfclibAA07MutablebC0RzSi5IndexRtzrlE1xoiyxx_xtFZ", - "mangledName": "$s10Foundation12DataProtocolP6nfclibAA07MutablebC0RzSi5IndexRtzrlE1xoiyxx_xtFZ", - "moduleName": "nfclib", - "genericSig": "<τ_0_0 where τ_0_0 : Foundation.MutableDataProtocol, τ_0_0.Index == Swift.Int>", - "sugared_genericSig": "", - "static": true, - "declAttributes": [ - "AccessControl" - ], - "isFromExtension": true, - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Protocol", - "usr": "s:10Foundation12DataProtocolP", - "mangledName": "$s10Foundation12DataProtocolP", - "moduleName": "Foundation", - "genericSig": "<τ_0_0 : Swift.RandomAccessCollection, τ_0_0.Element == Swift.UInt8, τ_0_0.Regions : Swift.BidirectionalCollection, τ_0_0.SubSequence : Foundation.DataProtocol, τ_0_0.Regions.Element : Foundation.ContiguousBytes, τ_0_0.Regions.Element : Foundation.DataProtocol, τ_0_0.Regions.Element.SubSequence : Foundation.ContiguousBytes>", - "sugared_genericSig": "", - "intro_Macosx": "10.10", - "intro_iOS": "8.0", - "intro_tvOS": "9.0", - "intro_watchOS": "2.0", - "declAttributes": [ - "Available", - "Available", - "Available", - "Available" - ], - "isExternal": true, - "conformances": [ - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "RandomAccessCollection", - "printedName": "RandomAccessCollection", - "usr": "s:Sk", - "mangledName": "$sSk" - }, - { - "kind": "Conformance", - "name": "BidirectionalCollection", - "printedName": "BidirectionalCollection", - "usr": "s:SK", - "mangledName": "$sSK" - }, - { - "kind": "Conformance", - "name": "Collection", - "printedName": "Collection", - "usr": "s:Sl", - "mangledName": "$sSl" - }, - { - "kind": "Conformance", - "name": "Sequence", - "printedName": "Sequence", - "usr": "s:ST", - "mangledName": "$sST" - } - ] - }, { "kind": "TypeDecl", "name": "NFCTagReaderSession", @@ -7796,512 +8041,593 @@ "mangledName": "$ss16SendableMetatypeP" } ] + }, + { + "kind": "TypeDecl", + "name": "DataProtocol", + "printedName": "DataProtocol", + "children": [ + { + "kind": "Function", + "name": "^", + "printedName": "^(_:_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:10Foundation12DataProtocolP6nfclibAA07MutablebC0RzSi5IndexRtzrlE1xoiyxx_xtFZ", + "mangledName": "$s10Foundation12DataProtocolP6nfclibAA07MutablebC0RzSi5IndexRtzrlE1xoiyxx_xtFZ", + "moduleName": "nfclib", + "genericSig": "<τ_0_0 where τ_0_0 : Foundation.MutableDataProtocol, τ_0_0.Index == Swift.Int>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Protocol", + "usr": "s:10Foundation12DataProtocolP", + "mangledName": "$s10Foundation12DataProtocolP", + "moduleName": "Foundation", + "genericSig": "<τ_0_0 : Swift.RandomAccessCollection, τ_0_0.Element == Swift.UInt8, τ_0_0.Regions : Swift.BidirectionalCollection, τ_0_0.SubSequence : Foundation.DataProtocol, τ_0_0.Regions.Element : Foundation.ContiguousBytes, τ_0_0.Regions.Element : Foundation.DataProtocol, τ_0_0.Regions.Element.SubSequence : Foundation.ContiguousBytes>", + "sugared_genericSig": "", + "intro_Macosx": "10.10", + "intro_iOS": "8.0", + "intro_tvOS": "9.0", + "intro_watchOS": "2.0", + "declAttributes": [ + "Available", + "Available", + "Available", + "Available" + ], + "isExternal": true, + "conformances": [ + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "RandomAccessCollection", + "printedName": "RandomAccessCollection", + "usr": "s:Sk", + "mangledName": "$sSk" + }, + { + "kind": "Conformance", + "name": "BidirectionalCollection", + "printedName": "BidirectionalCollection", + "usr": "s:SK", + "mangledName": "$sSK" + }, + { + "kind": "Conformance", + "name": "Collection", + "printedName": "Collection", + "usr": "s:Sl", + "mangledName": "$sSl" + }, + { + "kind": "Conformance", + "name": "Sequence", + "printedName": "Sequence", + "usr": "s:ST", + "mangledName": "$sST" + } + ] } ], "json_format_version": 8 }, "ConstValues": [ { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", "kind": "StringLiteral", - "offset": 1066, + "offset": 276, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", "kind": "Array", - "offset": 1114, + "offset": 324, "length": 6, "value": "[0x00]" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", "kind": "StringLiteral", - "offset": 1193, + "offset": 403, "length": 52, "value": "\"Please place your ID card against the smart device\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/Utilities.swift", - "kind": "StringLiteral", - "offset": 927, - "length": 5, - "value": "\"RSA\"" - }, - { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/Utilities.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/WebEID\/WebEidSignatureAlgorithm.swift", "kind": "StringLiteral", - "offset": 962, - "length": 4, - "value": "\"EC\"" + "offset": 221, + "length": 7, + "value": "\"ES256\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/Utilities.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/WebEID\/WebEidSignatureAlgorithm.swift", "kind": "StringLiteral", - "offset": 1001, - "length": 9, - "value": "\"Unknown\"" + "offset": 246, + "length": 7, + "value": "\"ES384\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "StringLiteral", - "offset": 1019, + "offset": 326, "length": 20, "value": "\"ee.ria.nfc-iOS-lib\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "StringLiteral", - "offset": 1051, + "offset": 358, "length": 15, "value": "\"CardReaderNFC\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 1175, + "offset": 482, "length": 1, "value": "1" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 1238, + "offset": 545, "length": 1, "value": "2" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "StringLiteral", - "offset": 1555, + "offset": 862, "length": 22, "value": "\"04007f00070202040204\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "StringLiteral", - "offset": 1653, + "offset": 960, "length": 22, "value": "\"04007f00070202040404\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 1935, + "offset": 1242, "length": 2, "value": "12" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 1961, + "offset": 1268, "length": 2, "value": "13" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 1987, + "offset": 1294, "length": 2, "value": "15" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 2013, + "offset": 1320, "length": 2, "value": "16" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 2039, + "offset": 1346, "length": 2, "value": "17" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 2065, + "offset": 1372, "length": 2, "value": "18" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "StringLiteral", - "offset": 852, + "offset": 160, "length": 67, "value": "\"3B DB 96 00 80 B1 FE 45 1F 83 00 12 23 3F 53 65 49 44 0F 90 00 F1\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "StringLiteral", - "offset": 952, + "offset": 260, "length": 70, "value": "\"3B DC 96 00 80 B1 FE 45 1F 83 00 12 23 3F 54 65 49 44 32 0F 90 00 C3\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "StringLiteral", - "offset": 1054, + "offset": 362, "length": 49, "value": "\"A0 00 00 00 77 01 08 00 07 00 00 FE 00 00 01 00\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "StringLiteral", - "offset": 1139, + "offset": 447, "length": 49, "value": "\"51 53 43 44 20 41 70 70 6C 69 63 61 74 69 6F 6E\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "StringLiteral", - "offset": 1228, + "offset": 536, "length": 40, "value": "\"E8 28 BD 08 0F F2 50 4F 54 20 41 57 50\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "IntegerLiteral", - "offset": 1299, + "offset": 607, "length": 4, "value": "0x81" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "IntegerLiteral", - "offset": 1333, + "offset": 641, "length": 4, "value": "0x9F" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "BooleanLiteral", - "offset": 1774, + "offset": 1082, "length": 4, "value": "true" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "IntegerLiteral", - "offset": 1832, + "offset": 1140, "length": 4, "value": "0xFF" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommandsInternal.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommandsInternal.swift", "kind": "IntegerLiteral", - "offset": 1216, + "offset": 524, "length": 4, "value": "0x04" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommandsInternal.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommandsInternal.swift", "kind": "IntegerLiteral", - "offset": 1238, + "offset": 546, "length": 4, "value": "0x0C" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadCertificate.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadCertificate.swift", "kind": "StringLiteral", - "offset": 1489, + "offset": 717, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadCertificate.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadCertificate.swift", "kind": "StringLiteral", - "offset": 1574, + "offset": 802, "length": 52, "value": "\"Please place your ID card against the smart device\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "StringLiteral", - "offset": 1103, + "offset": 407, "length": 76, "value": "\"3B FF 96 00 00 80 31 FE 43 80 31 B8 53 65 49 44 64 B0 85 05 10 12 23 3F 1D\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "StringLiteral", - "offset": 1222, + "offset": 526, "length": 37, "value": "\"A0 00 00 00 63 50 4B 43 53 2D 31 35\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "StringLiteral", - "offset": 1308, + "offset": 612, "length": 49, "value": "\"A0 00 00 00 18 10 02 03 00 00 00 00 00 00 00 01\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "IntegerLiteral", - "offset": 1399, + "offset": 703, "length": 4, "value": "0x01" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "IntegerLiteral", - "offset": 1444, + "offset": 748, "length": 4, "value": "0x05" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "BooleanLiteral", - "offset": 1479, + "offset": 783, "length": 5, "value": "false" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "IntegerLiteral", - "offset": 1538, + "offset": 842, "length": 4, "value": "0x00" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/NFCISO7816Tag+Extensions.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/NFCISO7816Tag+Extensions.swift", "kind": "IntegerLiteral", - "offset": 1169, + "offset": 439, "length": 2, "value": "-1" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/NFCISO7816Tag+Extensions.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/NFCISO7816Tag+Extensions.swift", "kind": "IntegerLiteral", - "offset": 2281, + "offset": 1902, "length": 2, "value": "-1" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationUnblockPin.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationUnblockPin.swift", "kind": "StringLiteral", - "offset": 1174, + "offset": 369, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationUnblockPin.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationUnblockPin.swift", "kind": "StringLiteral", - "offset": 1319, + "offset": 514, "length": 52, "value": "\"Please place your ID card against the smart device\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/ProgressBar.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/ProgressBar.swift", "kind": "IntegerLiteral", - "offset": 936, + "offset": 244, "length": 1, "value": "4" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", "kind": "IntegerLiteral", - "offset": 1026, + "offset": 309, "length": 4, "value": "0x00" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", "kind": "Array", - "offset": 2744, + "offset": 2027, "length": 298, "value": "[0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x87]" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", "kind": "IntegerLiteral", - "offset": 3562, + "offset": 2845, "length": 1, "value": "8" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/WebEID\/WebEIDHash.swift", - "kind": "IntegerLiteral", - "offset": 885, - "length": 3, - "value": "256" - }, - { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/WebEID\/WebEIDHash.swift", - "kind": "IntegerLiteral", - "offset": 908, - "length": 3, - "value": "384" - }, - { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/WebEID\/WebEIDHash.swift", - "kind": "IntegerLiteral", - "offset": 931, - "length": 3, - "value": "512" - }, - { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/Logger+Extensions.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/Logger+Extensions.swift", "kind": "BooleanLiteral", "offset": 912, "length": 5, "value": "false" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "kind": "StringLiteral", + "offset": 474, + "length": 2, + "value": "\"\"" + }, + { + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1104, + "offset": 504, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1134, + "offset": 539, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1169, + "offset": 573, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1203, + "offset": 610, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1240, + "offset": 645, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1275, + "offset": 687, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1858, + "offset": 2609, "length": 1, "value": "1" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1870, + "offset": 2621, "length": 9, "value": "2" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1890, + "offset": 2641, "length": 3, "value": "3" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1904, + "offset": 2655, "length": 11, "value": "4" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1926, + "offset": 2677, "length": 19, "value": "5" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1956, + "offset": 2707, "length": 12, "value": "6" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1979, + "offset": 2730, "length": 10, "value": "7" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 2000, + "offset": 2751, "length": 12, "value": "8" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadPublicData.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadPublicData.swift", "kind": "StringLiteral", - "offset": 1061, + "offset": 288, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadPublicData.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadPublicData.swift", "kind": "StringLiteral", - "offset": 1101, + "offset": 328, "length": 52, "value": "\"Please place your ID card against the smart device\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", "kind": "IntegerLiteral", - "offset": 2950, + "offset": 2258, "length": 4, "value": "0x00" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", "kind": "IntegerLiteral", - "offset": 2984, + "offset": 2292, "length": 4, "value": "0x00" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", "kind": "IntegerLiteral", - "offset": 3006, + "offset": 2314, "length": 4, "value": "0x00" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", "kind": "IntegerLiteral", - "offset": 877, + "offset": 185, "length": 1, "value": "0" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", "kind": "IntegerLiteral", - "offset": 895, + "offset": 203, "length": 1, "value": "1" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", "kind": "IntegerLiteral", - "offset": 913, + "offset": 221, "length": 1, "value": "2" } diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios.private.swiftinterface b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios.private.swiftinterface index 4319c9afe..75e87e3a5 100644 --- a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios.private.swiftinterface +++ b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios.private.swiftinterface @@ -1,236 +1,258 @@ // swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101) -// swift-module-flags: -target arm64-apple-ios16.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name nfclib -// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3 -import BigInt +// swift-compiler-version: Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1) +// swift-module-flags: -target arm64-apple-ios18.0 -enable-objc-interop -enable-library-evolution -language-mode 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name nfclib +// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.4 import CommonCrypto @preconcurrency import CoreNFC -import CryptoKit import CryptoTokenKit import Darwin import Foundation import OSLog import Security import Swift +import Synchronization import _Concurrency import _StringProcessing import _SwiftConcurrencyShims @_exported import nfclib import os -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationSignHash : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startSigning(CAN: Swift.String, PIN2: nfclib.SecureData, hash: Foundation.Data) async throws -> Foundation.Data - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationSignHash : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startSigning(CAN: Swift::String, PIN2: nfclib::SecureData, hash: Foundation::Data) async throws -> Foundation::Data + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationSignHash : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationSignHash : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -@_hasMissingDesignatedInitializers final public class WebEidData : Swift.Sendable { - final public let unverifiedCertificate: Swift.String - final public let signingCertificate: Swift.String - final public let algorithm: Swift.String - final public let signature: Swift.String - final public var formattedDescription: Swift.String { +@_hasMissingDesignatedInitializers final public class WebEidData : Swift::Sendable { + final public let unverifiedCertificate: Swift::String + final public let signingCertificate: Swift::String + final public let algorithm: nfclib::WebEidSignatureAlgorithm + final public let signature: Swift::String + final public var formattedDescription: Swift::String { get } @objc deinit } -final public class SecureData : Swift.Sendable { - public init(_ bytes: [Swift.UInt8]) - public init(_ data: Foundation.Data) +public enum WebEidSignatureAlgorithm : Swift::String, Swift::Sendable { + case es256 + case es384 + public init?(rawValue: Swift::String) + public typealias RawValue = Swift::String + public var rawValue: Swift::String { + get + } +} +final public class SecureData : Swift::Sendable { + public init(_ bytes: [Swift::UInt8]) + public init(_ data: Foundation::Data) @objc deinit - final public var count: Swift.Int { + final public var count: Swift::Int { get } final public func secureZero() } -public let rsaAlgorithmName: Swift.String -public let ecAlgorithmName: Swift.String -public let unknownAlgorithmName: Swift.String -public enum AuthenticateWithWebEidError : Swift.Error { +public enum AuthenticateWithWebEidError : Swift::Error { case failedToReadPublicKey case failedToDetermineAlgorithm - case failedToHashData case failedToMapAlgorithm case failedCertificateExpired case failedCertificateNotYetValid - public static func == (a: nfclib.AuthenticateWithWebEidError, b: nfclib.AuthenticateWithWebEidError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::AuthenticateWithWebEidError, b: nfclib::AuthenticateWithWebEidError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -@objc @_Concurrency.MainActor public class OperationAuthenticateWithWebEID : ObjectiveC.NSObject { - @_Concurrency.MainActor public init(CAN: Swift.String, pin1: nfclib.SecureData, challenge: Swift.String, origin: Swift.String) - @_Concurrency.MainActor public func startReading() async throws -> nfclib.WebEidData +@objc @_Concurrency::MainActor public class OperationAuthenticateWithWebEID : ObjectiveC::NSObject { + @_Concurrency::MainActor public init(CAN: Swift::String, pin1: nfclib::SecureData, challenge: Swift::String, origin: Swift::String) + @_Concurrency::MainActor public func startReading() async throws -> nfclib::WebEidData @objc deinit } -extension nfclib.OperationAuthenticateWithWebEID : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func getAlgorithmNameTypeAndLength(from key: Security.SecKey) -> (algorithm: Swift.String, keyLength: Swift.Int)? - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) - @_Concurrency.MainActor public func mapToAlgorithm(algorithm: Swift.String, bitLength: Swift.Int) -> Swift.String? -} -public struct SignatureAlgorithmInfo { +extension nfclib::OperationAuthenticateWithWebEID : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum ReadCertificateError : Swift.Error { +public enum ReadCertificateError : Swift::Error { case certificateUsageNotSpecified case failedToReadCertificate case general - public static func == (a: nfclib.ReadCertificateError, b: nfclib.ReadCertificateError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::ReadCertificateError, b: nfclib::ReadCertificateError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } public enum CertificateUsage { case auth case sign - public static func == (a: nfclib.CertificateUsage, b: nfclib.CertificateUsage) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::CertificateUsage, b: nfclib::CertificateUsage) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -extension CoreNFC.NFCTagReaderSession : @unchecked @retroactive Swift.Sendable { +extension CoreNFC::NFCTagReaderSession : @unchecked @retroactive Swift::Sendable { } -extension CoreNFC.NFCTag : @unchecked @retroactive Swift.Sendable { +extension CoreNFC::NFCTag : @unchecked @retroactive Swift::Sendable { } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationReadCertificate : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startReading(CAN: Swift.String, certUsage: nfclib.CertificateUsage) async throws -> Security.SecCertificate - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationReadCertificate : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startReading(CAN: Swift::String, certUsage: nfclib::CertificateUsage) async throws -> Security::SecCertificate + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationReadCertificate : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationReadCertificate : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum UnblockPINError : Swift.Error { +public enum UnblockPINError : Swift::Error { case missingRequiredParameter - case failed case general - public static func == (a: nfclib.UnblockPINError, b: nfclib.UnblockPINError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::UnblockPINError, b: nfclib::UnblockPINError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationUnblockPin : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startReading(CAN: Swift.String, codeType: nfclib.CodeType, puk: nfclib.SecureData, newPin: nfclib.SecureData) async throws - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationUnblockPin : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startReading(CAN: Swift::String, codeType: nfclib::CodeType, puk: nfclib::SecureData, newPin: nfclib::SecureData) async throws + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationUnblockPin : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationUnblockPin : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -@_Concurrency.MainActor public class NFCConnection { - @_Concurrency.MainActor public init() - @_Concurrency.MainActor public func setup(_ session: CoreNFC.NFCTagReaderSession, tags: [CoreNFC.NFCTag]) async throws -> any CoreNFC.NFCISO7816Tag - @_Concurrency.MainActor public func getCardCommands(_: CoreNFC.NFCTagReaderSession, tag: any CoreNFC.NFCISO7816Tag, CAN: Swift.String) async throws -> any nfclib.CardCommands +@_Concurrency::MainActor public class NFCConnection { + @_Concurrency::MainActor public init() + @_Concurrency::MainActor public func setup(_ session: CoreNFC::NFCTagReaderSession, tags: [CoreNFC::NFCTag]) async throws -> any CoreNFC::NFCISO7816Tag + @_Concurrency::MainActor public func getCardCommands(_: CoreNFC::NFCTagReaderSession, tag: any CoreNFC::NFCISO7816Tag, CAN: Swift::String) async throws -> any nfclib::CardCommands @objc deinit } -public enum IdCardError : Swift.Error { - case wrongCAN, wrongPIN(triesLeft: Swift.Int), invalidNewPIN, sessionError +public enum IdCardError : Swift::Error { + case wrongCAN, wrongPIN(codeType: nfclib::CodeType, triesLeft: Swift::Int), invalidNewPIN, sessionError, notActivated } -public enum IdCardInternalError : Swift.Error { - case missingRESTag, missingMACTag, invalidMACValue, failedReadingField(nfclib.CardField), hexConversionFailed, AESCBCError, sendCommandFailed(message: Swift.String), invalidResponse(message: Swift.String), swError(Swift.UInt16), pinVerificationFailed, remainingPinRetryCount(Swift.Int), invalidNewPin, notSupportedCodeType, dataPaddingError, invalidAPDU, authenticationFailed, canAuthenticationFailed, invalidTag, cardNotSupported, nfcNotSupported, connectionFailed, multipleTagsDetected, couldNotVerifyChipsMAC, cancelledByUser, sessionInvalidated, readerProcessFailed, failedToRemovePadding, notSupportedAlgorithm - public func getIdCardError() -> nfclib.IdCardError -} -public struct PinError : Swift.Error { +public enum IdCardInternalError : Swift::Error { + case missingRESTag, missingMACTag, invalidMACValue, failedReadingField(nfclib::CardField), hexConversionFailed, AESCBCError, sendCommandFailed(message: Swift::String), invalidResponse(message: Swift::String), swError(Swift::UInt16), pinVerificationFailed(codeType: nfclib::CodeType), remainingPinRetryCount(codeType: nfclib::CodeType, count: Swift::Int), invalidNewPin, notSupportedCodeType, dataPaddingError, invalidAPDU, authenticationFailed, canAuthenticationFailed, invalidTag, cardNotSupported, nfcNotSupported, connectionFailed, multipleTagsDetected, couldNotVerifyChipsMAC, cancelledByUser, sessionInvalidated, readerProcessFailed, failedToRemovePadding, notSupportedAlgorithm, operationInProgress, notActivated + public func getIdCardError() -> nfclib::IdCardError } public enum NFCLibLogging { - public static var isEnabled: Swift.Bool { + public static var isEnabled: Swift::Bool { get set } } -public struct CardInfo : Swift.Sendable, Swift.Hashable { - public var givenName: Swift.String - public var surname: Swift.String - public var personalCode: Swift.String - public var citizenship: Swift.String - public var documentNumber: Swift.String - public var dateOfExpiry: Swift.String - public init(givenName: Swift.String = "", surname: Swift.String = "", personalCode: Swift.String = "", citizenship: Swift.String = "", documentNumber: Swift.String = "", dateOfExpiry: Swift.String = "") - public var formattedDescription: Swift.String { +public struct CardInfo : Swift::Sendable, Swift::Hashable { + public var givenName: Swift::String + public var surname: Swift::String + public var personalCode: Swift::String + public var citizenship: Swift::String + public var documentNumber: Swift::String + public var dateOfExpiry: Swift::String + public var dateAndPlaceOfBirth: Swift::String + public init(givenName: Swift::String = "", surname: Swift::String = "", personalCode: Swift::String = "", citizenship: Swift::String = "", documentNumber: Swift::String = "", dateOfExpiry: Swift::String = "", dateAndPlaceOfBirth: Swift::String = "") + public var dateOfBirth: Foundation::Date? { + get + } + public static func dateOfBirth(fromPersonalCode personalCode: Swift::String) -> Foundation::Date? + public var formattedDescription: Swift::String { get } - public static func == (a: nfclib.CardInfo, b: nfclib.CardInfo) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::CardInfo, b: nfclib::CardInfo) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -public enum CardField : Swift.Int, Swift.Sendable { +public enum CardField : Swift::Int, Swift::Sendable { case surname, firstName, sex, citizenship, dateAndPlaceOfBirth, personalCode, documentNr, dateOfExpiry - public init?(rawValue: Swift.Int) - public typealias RawValue = Swift.Int - public var rawValue: Swift.Int { + public init?(rawValue: Swift::Int) + public typealias RawValue = Swift::Int + public var rawValue: Swift::Int { get } } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor final public class OperationReadPublicData : ObjectiveC.NSObject { - @_Concurrency.MainActor final public func startReading(CAN: Swift.String) async throws -> nfclib.CardInfo - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor final public class OperationReadPublicData : ObjectiveC::NSObject { + @_Concurrency::MainActor final public func startReading(CAN: Swift::String) async throws -> nfclib::CardInfo + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationReadPublicData : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor final public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor final public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor final public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationReadPublicData : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor final public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor final public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor final public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum CodeType : Swift.UInt, Swift.Sendable { +public enum CodeType : Swift::UInt, Swift::Sendable { case puk case pin1 case pin2 - public var name: Swift.String { + public var name: Swift::String { + get + } + public init?(rawValue: Swift::UInt) + public typealias RawValue = Swift::UInt + public var rawValue: Swift::UInt { + get + } +} +public enum CodeValidationFailure : Swift::Error, Swift::Sendable, Swift::Equatable { + case wrongLength(minimum: Swift::Int, maximum: Swift::Int) + case notNumeric + public static func == (a: nfclib::CodeValidationFailure, b: nfclib::CodeValidationFailure) -> Swift::Bool +} +extension nfclib::CodeType { + public var minimumLength: Swift::Int { + get + } + public var maximumLength: Swift::Int { get } - public init?(rawValue: Swift.UInt) - public typealias RawValue = Swift.UInt - public var rawValue: Swift.UInt { + public var validLength: Swift::ClosedRange { get } + public func validateFormat(_ code: [Swift::UInt8]) -> nfclib::CodeValidationFailure? } -public protocol CardCommands : Swift.Sendable { - var canChangePUK: Swift.Bool { get } - func readPublicData() async throws -> nfclib.CardInfo - func readAuthenticationCertificate() async throws -> Foundation.Data - func readSignatureCertificate() async throws -> Foundation.Data - func readCodeTryCounterRecord(_ type: nfclib.CodeType) async throws -> (retryCount: Swift.UInt8, pinActive: Swift.Bool) - func changeCode(_ type: nfclib.CodeType, to code: nfclib.SecureData, verifyCode: nfclib.SecureData) async throws - func verifyCode(_ type: nfclib.CodeType, code: nfclib.SecureData) async throws - func unblockCode(_ type: nfclib.CodeType, puk: nfclib.SecureData, newCode: nfclib.SecureData) async throws - func authenticate(for hash: Foundation.Data, withPin1 pin1: nfclib.SecureData) async throws -> Foundation.Data - func calculateSignature(for hash: Foundation.Data, withPin2 pin2: nfclib.SecureData) async throws -> Foundation.Data - func decryptData(_ hash: Foundation.Data, withPin1 pin1: nfclib.SecureData) async throws -> Foundation.Data +public protocol CardCommands : Swift::Sendable { + var canChangePUK: Swift::Bool { get } + func readPublicData() async throws -> nfclib::CardInfo + func readAuthenticationCertificate() async throws -> Foundation::Data + func readSignatureCertificate() async throws -> Foundation::Data + func readCodeTryCounterRecord(_ type: nfclib::CodeType) async throws -> (retryCount: Swift::UInt8, pinActive: Swift::Bool) + func changeCode(_ type: nfclib::CodeType, to code: nfclib::SecureData, verifyCode: nfclib::SecureData) async throws + func verifyCode(_ type: nfclib::CodeType, code: nfclib::SecureData) async throws + func unblockCode(_ type: nfclib::CodeType, puk: nfclib::SecureData, newCode: nfclib::SecureData) async throws + func authenticate(for hash: Foundation::Data, withPin1 pin1: nfclib::SecureData) async throws -> Foundation::Data + func calculateSignature(for hash: Foundation::Data, withPin2 pin2: nfclib::SecureData) async throws -> Foundation::Data + func decryptData(_ hash: Foundation::Data, withPin1 pin1: nfclib::SecureData) async throws -> Foundation::Data } -extension Foundation.DataProtocol where Self : Foundation.MutableDataProtocol, Self.Index == Swift.Int { +extension Foundation::DataProtocol where Self : Foundation::MutableDataProtocol, Self.Index == Swift::Int { public static func ^ (xVal: Self, yVal: Self) -> Self } -extension nfclib.OperationSignHash : Swift.Sendable {} -extension nfclib.AuthenticateWithWebEidError : Swift.Equatable {} -extension nfclib.AuthenticateWithWebEidError : Swift.Hashable {} -extension nfclib.OperationAuthenticateWithWebEID : Swift.Sendable {} -extension nfclib.CodeType : Swift.Equatable {} -extension nfclib.CodeType : Swift.Hashable {} -extension nfclib.CodeType : Swift.RawRepresentable {} -extension nfclib.ReadCertificateError : Swift.Equatable {} -extension nfclib.ReadCertificateError : Swift.Hashable {} -extension nfclib.CertificateUsage : Swift.Equatable {} -extension nfclib.CertificateUsage : Swift.Hashable {} -extension nfclib.OperationReadCertificate : Swift.Sendable {} -extension nfclib.UnblockPINError : Swift.Equatable {} -extension nfclib.UnblockPINError : Swift.Hashable {} -extension nfclib.OperationUnblockPin : Swift.Sendable {} -extension nfclib.NFCConnection : Swift.Sendable {} -extension nfclib.CardField : Swift.Equatable {} -extension nfclib.CardField : Swift.Hashable {} -extension nfclib.CardField : Swift.RawRepresentable {} -extension nfclib.OperationReadPublicData : Swift.Sendable {} +extension nfclib::OperationSignHash : Swift::Sendable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::Equatable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::Hashable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::RawRepresentable {} +extension nfclib::AuthenticateWithWebEidError : Swift::Equatable {} +extension nfclib::AuthenticateWithWebEidError : Swift::Hashable {} +extension nfclib::OperationAuthenticateWithWebEID : Swift::Sendable {} +extension nfclib::CodeType : Swift::Equatable {} +extension nfclib::CodeType : Swift::Hashable {} +extension nfclib::CodeType : Swift::RawRepresentable {} +extension nfclib::ReadCertificateError : Swift::Equatable {} +extension nfclib::ReadCertificateError : Swift::Hashable {} +extension nfclib::CertificateUsage : Swift::Equatable {} +extension nfclib::CertificateUsage : Swift::Hashable {} +extension nfclib::OperationReadCertificate : Swift::Sendable {} +extension nfclib::UnblockPINError : Swift::Equatable {} +extension nfclib::UnblockPINError : Swift::Hashable {} +extension nfclib::OperationUnblockPin : Swift::Sendable {} +extension nfclib::NFCConnection : Swift::Sendable {} +extension nfclib::CardField : Swift::Equatable {} +extension nfclib::CardField : Swift::Hashable {} +extension nfclib::CardField : Swift::RawRepresentable {} +extension nfclib::OperationReadPublicData : Swift::Sendable {} diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios.swiftdoc b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios.swiftdoc index 6a4bb5022..4f02f0d5e 100644 Binary files a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios.swiftdoc and b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios.swiftinterface b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios.swiftinterface index 4319c9afe..75e87e3a5 100644 --- a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios.swiftinterface +++ b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios.swiftinterface @@ -1,236 +1,258 @@ // swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101) -// swift-module-flags: -target arm64-apple-ios16.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name nfclib -// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3 -import BigInt +// swift-compiler-version: Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1) +// swift-module-flags: -target arm64-apple-ios18.0 -enable-objc-interop -enable-library-evolution -language-mode 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name nfclib +// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.4 import CommonCrypto @preconcurrency import CoreNFC -import CryptoKit import CryptoTokenKit import Darwin import Foundation import OSLog import Security import Swift +import Synchronization import _Concurrency import _StringProcessing import _SwiftConcurrencyShims @_exported import nfclib import os -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationSignHash : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startSigning(CAN: Swift.String, PIN2: nfclib.SecureData, hash: Foundation.Data) async throws -> Foundation.Data - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationSignHash : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startSigning(CAN: Swift::String, PIN2: nfclib::SecureData, hash: Foundation::Data) async throws -> Foundation::Data + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationSignHash : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationSignHash : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -@_hasMissingDesignatedInitializers final public class WebEidData : Swift.Sendable { - final public let unverifiedCertificate: Swift.String - final public let signingCertificate: Swift.String - final public let algorithm: Swift.String - final public let signature: Swift.String - final public var formattedDescription: Swift.String { +@_hasMissingDesignatedInitializers final public class WebEidData : Swift::Sendable { + final public let unverifiedCertificate: Swift::String + final public let signingCertificate: Swift::String + final public let algorithm: nfclib::WebEidSignatureAlgorithm + final public let signature: Swift::String + final public var formattedDescription: Swift::String { get } @objc deinit } -final public class SecureData : Swift.Sendable { - public init(_ bytes: [Swift.UInt8]) - public init(_ data: Foundation.Data) +public enum WebEidSignatureAlgorithm : Swift::String, Swift::Sendable { + case es256 + case es384 + public init?(rawValue: Swift::String) + public typealias RawValue = Swift::String + public var rawValue: Swift::String { + get + } +} +final public class SecureData : Swift::Sendable { + public init(_ bytes: [Swift::UInt8]) + public init(_ data: Foundation::Data) @objc deinit - final public var count: Swift.Int { + final public var count: Swift::Int { get } final public func secureZero() } -public let rsaAlgorithmName: Swift.String -public let ecAlgorithmName: Swift.String -public let unknownAlgorithmName: Swift.String -public enum AuthenticateWithWebEidError : Swift.Error { +public enum AuthenticateWithWebEidError : Swift::Error { case failedToReadPublicKey case failedToDetermineAlgorithm - case failedToHashData case failedToMapAlgorithm case failedCertificateExpired case failedCertificateNotYetValid - public static func == (a: nfclib.AuthenticateWithWebEidError, b: nfclib.AuthenticateWithWebEidError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::AuthenticateWithWebEidError, b: nfclib::AuthenticateWithWebEidError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -@objc @_Concurrency.MainActor public class OperationAuthenticateWithWebEID : ObjectiveC.NSObject { - @_Concurrency.MainActor public init(CAN: Swift.String, pin1: nfclib.SecureData, challenge: Swift.String, origin: Swift.String) - @_Concurrency.MainActor public func startReading() async throws -> nfclib.WebEidData +@objc @_Concurrency::MainActor public class OperationAuthenticateWithWebEID : ObjectiveC::NSObject { + @_Concurrency::MainActor public init(CAN: Swift::String, pin1: nfclib::SecureData, challenge: Swift::String, origin: Swift::String) + @_Concurrency::MainActor public func startReading() async throws -> nfclib::WebEidData @objc deinit } -extension nfclib.OperationAuthenticateWithWebEID : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func getAlgorithmNameTypeAndLength(from key: Security.SecKey) -> (algorithm: Swift.String, keyLength: Swift.Int)? - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) - @_Concurrency.MainActor public func mapToAlgorithm(algorithm: Swift.String, bitLength: Swift.Int) -> Swift.String? -} -public struct SignatureAlgorithmInfo { +extension nfclib::OperationAuthenticateWithWebEID : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum ReadCertificateError : Swift.Error { +public enum ReadCertificateError : Swift::Error { case certificateUsageNotSpecified case failedToReadCertificate case general - public static func == (a: nfclib.ReadCertificateError, b: nfclib.ReadCertificateError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::ReadCertificateError, b: nfclib::ReadCertificateError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } public enum CertificateUsage { case auth case sign - public static func == (a: nfclib.CertificateUsage, b: nfclib.CertificateUsage) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::CertificateUsage, b: nfclib::CertificateUsage) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -extension CoreNFC.NFCTagReaderSession : @unchecked @retroactive Swift.Sendable { +extension CoreNFC::NFCTagReaderSession : @unchecked @retroactive Swift::Sendable { } -extension CoreNFC.NFCTag : @unchecked @retroactive Swift.Sendable { +extension CoreNFC::NFCTag : @unchecked @retroactive Swift::Sendable { } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationReadCertificate : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startReading(CAN: Swift.String, certUsage: nfclib.CertificateUsage) async throws -> Security.SecCertificate - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationReadCertificate : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startReading(CAN: Swift::String, certUsage: nfclib::CertificateUsage) async throws -> Security::SecCertificate + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationReadCertificate : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationReadCertificate : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum UnblockPINError : Swift.Error { +public enum UnblockPINError : Swift::Error { case missingRequiredParameter - case failed case general - public static func == (a: nfclib.UnblockPINError, b: nfclib.UnblockPINError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::UnblockPINError, b: nfclib::UnblockPINError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationUnblockPin : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startReading(CAN: Swift.String, codeType: nfclib.CodeType, puk: nfclib.SecureData, newPin: nfclib.SecureData) async throws - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationUnblockPin : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startReading(CAN: Swift::String, codeType: nfclib::CodeType, puk: nfclib::SecureData, newPin: nfclib::SecureData) async throws + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationUnblockPin : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationUnblockPin : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -@_Concurrency.MainActor public class NFCConnection { - @_Concurrency.MainActor public init() - @_Concurrency.MainActor public func setup(_ session: CoreNFC.NFCTagReaderSession, tags: [CoreNFC.NFCTag]) async throws -> any CoreNFC.NFCISO7816Tag - @_Concurrency.MainActor public func getCardCommands(_: CoreNFC.NFCTagReaderSession, tag: any CoreNFC.NFCISO7816Tag, CAN: Swift.String) async throws -> any nfclib.CardCommands +@_Concurrency::MainActor public class NFCConnection { + @_Concurrency::MainActor public init() + @_Concurrency::MainActor public func setup(_ session: CoreNFC::NFCTagReaderSession, tags: [CoreNFC::NFCTag]) async throws -> any CoreNFC::NFCISO7816Tag + @_Concurrency::MainActor public func getCardCommands(_: CoreNFC::NFCTagReaderSession, tag: any CoreNFC::NFCISO7816Tag, CAN: Swift::String) async throws -> any nfclib::CardCommands @objc deinit } -public enum IdCardError : Swift.Error { - case wrongCAN, wrongPIN(triesLeft: Swift.Int), invalidNewPIN, sessionError +public enum IdCardError : Swift::Error { + case wrongCAN, wrongPIN(codeType: nfclib::CodeType, triesLeft: Swift::Int), invalidNewPIN, sessionError, notActivated } -public enum IdCardInternalError : Swift.Error { - case missingRESTag, missingMACTag, invalidMACValue, failedReadingField(nfclib.CardField), hexConversionFailed, AESCBCError, sendCommandFailed(message: Swift.String), invalidResponse(message: Swift.String), swError(Swift.UInt16), pinVerificationFailed, remainingPinRetryCount(Swift.Int), invalidNewPin, notSupportedCodeType, dataPaddingError, invalidAPDU, authenticationFailed, canAuthenticationFailed, invalidTag, cardNotSupported, nfcNotSupported, connectionFailed, multipleTagsDetected, couldNotVerifyChipsMAC, cancelledByUser, sessionInvalidated, readerProcessFailed, failedToRemovePadding, notSupportedAlgorithm - public func getIdCardError() -> nfclib.IdCardError -} -public struct PinError : Swift.Error { +public enum IdCardInternalError : Swift::Error { + case missingRESTag, missingMACTag, invalidMACValue, failedReadingField(nfclib::CardField), hexConversionFailed, AESCBCError, sendCommandFailed(message: Swift::String), invalidResponse(message: Swift::String), swError(Swift::UInt16), pinVerificationFailed(codeType: nfclib::CodeType), remainingPinRetryCount(codeType: nfclib::CodeType, count: Swift::Int), invalidNewPin, notSupportedCodeType, dataPaddingError, invalidAPDU, authenticationFailed, canAuthenticationFailed, invalidTag, cardNotSupported, nfcNotSupported, connectionFailed, multipleTagsDetected, couldNotVerifyChipsMAC, cancelledByUser, sessionInvalidated, readerProcessFailed, failedToRemovePadding, notSupportedAlgorithm, operationInProgress, notActivated + public func getIdCardError() -> nfclib::IdCardError } public enum NFCLibLogging { - public static var isEnabled: Swift.Bool { + public static var isEnabled: Swift::Bool { get set } } -public struct CardInfo : Swift.Sendable, Swift.Hashable { - public var givenName: Swift.String - public var surname: Swift.String - public var personalCode: Swift.String - public var citizenship: Swift.String - public var documentNumber: Swift.String - public var dateOfExpiry: Swift.String - public init(givenName: Swift.String = "", surname: Swift.String = "", personalCode: Swift.String = "", citizenship: Swift.String = "", documentNumber: Swift.String = "", dateOfExpiry: Swift.String = "") - public var formattedDescription: Swift.String { +public struct CardInfo : Swift::Sendable, Swift::Hashable { + public var givenName: Swift::String + public var surname: Swift::String + public var personalCode: Swift::String + public var citizenship: Swift::String + public var documentNumber: Swift::String + public var dateOfExpiry: Swift::String + public var dateAndPlaceOfBirth: Swift::String + public init(givenName: Swift::String = "", surname: Swift::String = "", personalCode: Swift::String = "", citizenship: Swift::String = "", documentNumber: Swift::String = "", dateOfExpiry: Swift::String = "", dateAndPlaceOfBirth: Swift::String = "") + public var dateOfBirth: Foundation::Date? { + get + } + public static func dateOfBirth(fromPersonalCode personalCode: Swift::String) -> Foundation::Date? + public var formattedDescription: Swift::String { get } - public static func == (a: nfclib.CardInfo, b: nfclib.CardInfo) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::CardInfo, b: nfclib::CardInfo) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -public enum CardField : Swift.Int, Swift.Sendable { +public enum CardField : Swift::Int, Swift::Sendable { case surname, firstName, sex, citizenship, dateAndPlaceOfBirth, personalCode, documentNr, dateOfExpiry - public init?(rawValue: Swift.Int) - public typealias RawValue = Swift.Int - public var rawValue: Swift.Int { + public init?(rawValue: Swift::Int) + public typealias RawValue = Swift::Int + public var rawValue: Swift::Int { get } } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor final public class OperationReadPublicData : ObjectiveC.NSObject { - @_Concurrency.MainActor final public func startReading(CAN: Swift.String) async throws -> nfclib.CardInfo - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor final public class OperationReadPublicData : ObjectiveC::NSObject { + @_Concurrency::MainActor final public func startReading(CAN: Swift::String) async throws -> nfclib::CardInfo + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationReadPublicData : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor final public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor final public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor final public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationReadPublicData : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor final public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor final public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor final public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum CodeType : Swift.UInt, Swift.Sendable { +public enum CodeType : Swift::UInt, Swift::Sendable { case puk case pin1 case pin2 - public var name: Swift.String { + public var name: Swift::String { + get + } + public init?(rawValue: Swift::UInt) + public typealias RawValue = Swift::UInt + public var rawValue: Swift::UInt { + get + } +} +public enum CodeValidationFailure : Swift::Error, Swift::Sendable, Swift::Equatable { + case wrongLength(minimum: Swift::Int, maximum: Swift::Int) + case notNumeric + public static func == (a: nfclib::CodeValidationFailure, b: nfclib::CodeValidationFailure) -> Swift::Bool +} +extension nfclib::CodeType { + public var minimumLength: Swift::Int { + get + } + public var maximumLength: Swift::Int { get } - public init?(rawValue: Swift.UInt) - public typealias RawValue = Swift.UInt - public var rawValue: Swift.UInt { + public var validLength: Swift::ClosedRange { get } + public func validateFormat(_ code: [Swift::UInt8]) -> nfclib::CodeValidationFailure? } -public protocol CardCommands : Swift.Sendable { - var canChangePUK: Swift.Bool { get } - func readPublicData() async throws -> nfclib.CardInfo - func readAuthenticationCertificate() async throws -> Foundation.Data - func readSignatureCertificate() async throws -> Foundation.Data - func readCodeTryCounterRecord(_ type: nfclib.CodeType) async throws -> (retryCount: Swift.UInt8, pinActive: Swift.Bool) - func changeCode(_ type: nfclib.CodeType, to code: nfclib.SecureData, verifyCode: nfclib.SecureData) async throws - func verifyCode(_ type: nfclib.CodeType, code: nfclib.SecureData) async throws - func unblockCode(_ type: nfclib.CodeType, puk: nfclib.SecureData, newCode: nfclib.SecureData) async throws - func authenticate(for hash: Foundation.Data, withPin1 pin1: nfclib.SecureData) async throws -> Foundation.Data - func calculateSignature(for hash: Foundation.Data, withPin2 pin2: nfclib.SecureData) async throws -> Foundation.Data - func decryptData(_ hash: Foundation.Data, withPin1 pin1: nfclib.SecureData) async throws -> Foundation.Data +public protocol CardCommands : Swift::Sendable { + var canChangePUK: Swift::Bool { get } + func readPublicData() async throws -> nfclib::CardInfo + func readAuthenticationCertificate() async throws -> Foundation::Data + func readSignatureCertificate() async throws -> Foundation::Data + func readCodeTryCounterRecord(_ type: nfclib::CodeType) async throws -> (retryCount: Swift::UInt8, pinActive: Swift::Bool) + func changeCode(_ type: nfclib::CodeType, to code: nfclib::SecureData, verifyCode: nfclib::SecureData) async throws + func verifyCode(_ type: nfclib::CodeType, code: nfclib::SecureData) async throws + func unblockCode(_ type: nfclib::CodeType, puk: nfclib::SecureData, newCode: nfclib::SecureData) async throws + func authenticate(for hash: Foundation::Data, withPin1 pin1: nfclib::SecureData) async throws -> Foundation::Data + func calculateSignature(for hash: Foundation::Data, withPin2 pin2: nfclib::SecureData) async throws -> Foundation::Data + func decryptData(_ hash: Foundation::Data, withPin1 pin1: nfclib::SecureData) async throws -> Foundation::Data } -extension Foundation.DataProtocol where Self : Foundation.MutableDataProtocol, Self.Index == Swift.Int { +extension Foundation::DataProtocol where Self : Foundation::MutableDataProtocol, Self.Index == Swift::Int { public static func ^ (xVal: Self, yVal: Self) -> Self } -extension nfclib.OperationSignHash : Swift.Sendable {} -extension nfclib.AuthenticateWithWebEidError : Swift.Equatable {} -extension nfclib.AuthenticateWithWebEidError : Swift.Hashable {} -extension nfclib.OperationAuthenticateWithWebEID : Swift.Sendable {} -extension nfclib.CodeType : Swift.Equatable {} -extension nfclib.CodeType : Swift.Hashable {} -extension nfclib.CodeType : Swift.RawRepresentable {} -extension nfclib.ReadCertificateError : Swift.Equatable {} -extension nfclib.ReadCertificateError : Swift.Hashable {} -extension nfclib.CertificateUsage : Swift.Equatable {} -extension nfclib.CertificateUsage : Swift.Hashable {} -extension nfclib.OperationReadCertificate : Swift.Sendable {} -extension nfclib.UnblockPINError : Swift.Equatable {} -extension nfclib.UnblockPINError : Swift.Hashable {} -extension nfclib.OperationUnblockPin : Swift.Sendable {} -extension nfclib.NFCConnection : Swift.Sendable {} -extension nfclib.CardField : Swift.Equatable {} -extension nfclib.CardField : Swift.Hashable {} -extension nfclib.CardField : Swift.RawRepresentable {} -extension nfclib.OperationReadPublicData : Swift.Sendable {} +extension nfclib::OperationSignHash : Swift::Sendable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::Equatable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::Hashable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::RawRepresentable {} +extension nfclib::AuthenticateWithWebEidError : Swift::Equatable {} +extension nfclib::AuthenticateWithWebEidError : Swift::Hashable {} +extension nfclib::OperationAuthenticateWithWebEID : Swift::Sendable {} +extension nfclib::CodeType : Swift::Equatable {} +extension nfclib::CodeType : Swift::Hashable {} +extension nfclib::CodeType : Swift::RawRepresentable {} +extension nfclib::ReadCertificateError : Swift::Equatable {} +extension nfclib::ReadCertificateError : Swift::Hashable {} +extension nfclib::CertificateUsage : Swift::Equatable {} +extension nfclib::CertificateUsage : Swift::Hashable {} +extension nfclib::OperationReadCertificate : Swift::Sendable {} +extension nfclib::UnblockPINError : Swift::Equatable {} +extension nfclib::UnblockPINError : Swift::Hashable {} +extension nfclib::OperationUnblockPin : Swift::Sendable {} +extension nfclib::NFCConnection : Swift::Sendable {} +extension nfclib::CardField : Swift::Equatable {} +extension nfclib::CardField : Swift::Hashable {} +extension nfclib::CardField : Swift::RawRepresentable {} +extension nfclib::OperationReadPublicData : Swift::Sendable {} diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/nfclib b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/nfclib index d1d277dd6..2ddcc36c0 100755 Binary files a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/nfclib and b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64/nfclib.framework/nfclib differ diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Headers/nfclib-Swift.h b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Headers/nfclib-Swift.h index 9a4f15b8e..f32aa35c7 100644 --- a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Headers/nfclib-Swift.h +++ b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Headers/nfclib-Swift.h @@ -1,6 +1,6 @@ #if 0 #elif defined(__arm64__) && __arm64__ -// Generated by Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101) +// Generated by Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1) #ifndef NFCLIB_SWIFT_H #define NFCLIB_SWIFT_H #pragma clang diagnostic push @@ -30,7 +30,6 @@ #if defined(__cplusplus) #include #include -#include #include #include #include @@ -321,6 +320,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Warc-bridge-casts-disallowed-in-nonarc" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #pragma clang diagnostic ignored "-Wunsafe-buffer-usage" @@ -357,6 +357,7 @@ extern "C" { #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Warc-bridge-casts-disallowed-in-nonarc" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #pragma clang diagnostic ignored "-Wunsafe-buffer-usage" @@ -405,7 +406,7 @@ SWIFT_CLASS("_TtC6nfclib19OperationUnblockPin") #endif #elif defined(__x86_64__) && __x86_64__ -// Generated by Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101) +// Generated by Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1) #ifndef NFCLIB_SWIFT_H #define NFCLIB_SWIFT_H #pragma clang diagnostic push @@ -435,7 +436,6 @@ SWIFT_CLASS("_TtC6nfclib19OperationUnblockPin") #if defined(__cplusplus) #include #include -#include #include #include #include @@ -726,6 +726,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Warc-bridge-casts-disallowed-in-nonarc" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #pragma clang diagnostic ignored "-Wunsafe-buffer-usage" @@ -762,6 +763,7 @@ extern "C" { #endif #pragma clang diagnostic ignored "-Wunknown-pragmas" #pragma clang diagnostic ignored "-Wnullability" +#pragma clang diagnostic ignored "-Warc-bridge-casts-disallowed-in-nonarc" #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension" #pragma clang diagnostic ignored "-Wunsafe-buffer-usage" diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Headers/nfclib.h b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Headers/nfclib.h index 9ab9e1be8..b62940649 100644 --- a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Headers/nfclib.h +++ b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Headers/nfclib.h @@ -1,21 +1,5 @@ -/* - * Copyright 2017 - 2025 Riigi Infosüsteemi Amet - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - * - */ +// SPDX-FileCopyrightText: Estonian Information System Authority +// SPDX-License-Identifier: LGPL-2.1-or-later #import diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Info.plist b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Info.plist index 5f353177e..aa30859e0 100644 Binary files a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Info.plist and b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Info.plist differ diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo index 9cc6b17bc..2ba196f83 100644 Binary files a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo and b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo differ diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo index 067ede58f..8d4c7a8ed 100644 Binary files a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo and b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo differ diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.abi.json b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.abi.json index 5f2505d33..c0e130b00 100644 --- a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.abi.json +++ b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.abi.json @@ -21,44 +21,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoKit", - "printedName": "CryptoKit", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "TypeDecl", "name": "OperationSignHash", @@ -449,14 +411,14 @@ "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" } ], "declKind": "Var", - "usr": "s:6nfclib10WebEidDataC9algorithmSSvp", - "mangledName": "$s6nfclib10WebEidDataC9algorithmSSvp", + "usr": "s:6nfclib10WebEidDataC9algorithmAA0bC18SignatureAlgorithmOvp", + "mangledName": "$s6nfclib10WebEidDataC9algorithmAA0bC18SignatureAlgorithmOvp", "moduleName": "nfclib", "declAttributes": [ "Final", @@ -473,14 +435,14 @@ "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" } ], "declKind": "Accessor", - "usr": "s:6nfclib10WebEidDataC9algorithmSSvg", - "mangledName": "$s6nfclib10WebEidDataC9algorithmSSvg", + "usr": "s:6nfclib10WebEidDataC9algorithmAA0bC18SignatureAlgorithmOvg", + "mangledName": "$s6nfclib10WebEidDataC9algorithmAA0bC18SignatureAlgorithmOvg", "moduleName": "nfclib", "implicit": true, "declAttributes": [ @@ -633,6 +595,257 @@ "RawDocComment" ] }, + { + "kind": "Import", + "name": "Security", + "printedName": "Security", + "declKind": "Import", + "moduleName": "nfclib" + }, + { + "kind": "TypeDecl", + "name": "WebEidSignatureAlgorithm", + "printedName": "WebEidSignatureAlgorithm", + "children": [ + { + "kind": "Var", + "name": "es256", + "printedName": "es256", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.WebEidSignatureAlgorithm.Type) -> nfclib.WebEidSignatureAlgorithm", + "children": [ + { + "kind": "TypeNominal", + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.WebEidSignatureAlgorithm.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO5es256yA2CmF", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO5es256yA2CmF", + "moduleName": "nfclib" + }, + { + "kind": "Var", + "name": "es384", + "printedName": "es384", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.WebEidSignatureAlgorithm.Type) -> nfclib.WebEidSignatureAlgorithm", + "children": [ + { + "kind": "TypeNominal", + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.WebEidSignatureAlgorithm.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO5es384yA2CmF", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO5es384yA2CmF", + "moduleName": "nfclib" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "nfclib.WebEidSignatureAlgorithm?", + "children": [ + { + "kind": "TypeNominal", + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Constructor", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO8rawValueACSgSS_tcfc", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO8rawValueACSgSS_tcfc", + "moduleName": "nfclib", + "implicit": true, + "init_kind": "Designated" + }, + { + "kind": "Var", + "name": "rawValue", + "printedName": "rawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO8rawValueSSvp", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO8rawValueSSvp", + "moduleName": "nfclib", + "implicit": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO8rawValueSSvg", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO8rawValueSSvg", + "moduleName": "nfclib", + "implicit": true, + "accessorKind": "get" + } + ] + } + ], + "declKind": "Enum", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO", + "moduleName": "nfclib", + "declAttributes": [ + "AccessControl" + ], + "enumRawTypeName": "String", + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "RawRepresentable", + "printedName": "RawRepresentable", + "children": [ + { + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ] + } + ], + "usr": "s:SY", + "mangledName": "$sSY" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + }, + { + "kind": "Conformance", + "name": "SendableMetatype", + "printedName": "SendableMetatype", + "usr": "s:s16SendableMetatypeP", + "mangledName": "$ss16SendableMetatypeP" + } + ] + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "nfclib", + "declAttributes": [ + "RawDocComment" + ] + }, + { + "kind": "Import", + "name": "Synchronization", + "printedName": "Synchronization", + "declKind": "Import", + "moduleName": "nfclib" + }, { "kind": "Import", "name": "Darwin", @@ -826,170 +1039,11 @@ }, { "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CoreNFC", - "printedName": "CoreNFC", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", + "name": "Security", + "printedName": "Security", "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Var", - "name": "rsaAlgorithmName", - "printedName": "rsaAlgorithmName", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:6nfclib16rsaAlgorithmNameSSvp", - "mangledName": "$s6nfclib16rsaAlgorithmNameSSvp", - "moduleName": "nfclib", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:6nfclib16rsaAlgorithmNameSSvg", - "mangledName": "$s6nfclib16rsaAlgorithmNameSSvg", - "moduleName": "nfclib", - "implicit": true, - "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "ecAlgorithmName", - "printedName": "ecAlgorithmName", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:6nfclib15ecAlgorithmNameSSvp", - "mangledName": "$s6nfclib15ecAlgorithmNameSSvp", - "moduleName": "nfclib", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:6nfclib15ecAlgorithmNameSSvg", - "mangledName": "$s6nfclib15ecAlgorithmNameSSvg", - "moduleName": "nfclib", - "implicit": true, - "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "unknownAlgorithmName", - "printedName": "unknownAlgorithmName", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:6nfclib20unknownAlgorithmNameSSvp", - "mangledName": "$s6nfclib20unknownAlgorithmNameSSvp", - "moduleName": "nfclib", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:6nfclib20unknownAlgorithmNameSSvg", - "mangledName": "$s6nfclib20unknownAlgorithmNameSSvg", - "moduleName": "nfclib", - "implicit": true, - "accessorKind": "get" - } - ] - }, { "kind": "Import", "name": "Foundation", @@ -1007,37 +1061,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "Import", "name": "Security", @@ -1045,16 +1068,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "X509", - "printedName": "X509", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, { "kind": "TypeDecl", "name": "AuthenticateWithWebEidError", @@ -1134,43 +1147,6 @@ "mangledName": "$s6nfclib27AuthenticateWithWebEidErrorO26failedToDetermineAlgorithmyA2CmF", "moduleName": "nfclib" }, - { - "kind": "Var", - "name": "failedToHashData", - "printedName": "failedToHashData", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(nfclib.AuthenticateWithWebEidError.Type) -> nfclib.AuthenticateWithWebEidError", - "children": [ - { - "kind": "TypeNominal", - "name": "AuthenticateWithWebEidError", - "printedName": "nfclib.AuthenticateWithWebEidError", - "usr": "s:6nfclib27AuthenticateWithWebEidErrorO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "nfclib.AuthenticateWithWebEidError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "AuthenticateWithWebEidError", - "printedName": "nfclib.AuthenticateWithWebEidError", - "usr": "s:6nfclib27AuthenticateWithWebEidErrorO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:6nfclib27AuthenticateWithWebEidErrorO16failedToHashDatayA2CmF", - "mangledName": "$s6nfclib27AuthenticateWithWebEidErrorO16failedToHashDatayA2CmF", - "moduleName": "nfclib" - }, { "kind": "Var", "name": "failedToMapAlgorithm", @@ -1581,56 +1557,6 @@ "isFromExtension": true, "funcSelfKind": "NonMutating" }, - { - "kind": "Function", - "name": "getAlgorithmNameTypeAndLength", - "printedName": "getAlgorithmNameTypeAndLength(from:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "(algorithm: Swift.String, keyLength: Swift.Int)?", - "children": [ - { - "kind": "TypeNominal", - "name": "Tuple", - "printedName": "(algorithm: Swift.String, keyLength: Swift.Int)", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ] - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "SecKey", - "printedName": "Security.SecKey", - "usr": "c:@T@SecKeyRef" - } - ], - "declKind": "Func", - "usr": "s:6nfclib31OperationAuthenticateWithWebEIDC29getAlgorithmNameTypeAndLength4fromSS9algorithm_Si03keyL0tSgSo9SecKeyRefa_tF", - "mangledName": "$s6nfclib31OperationAuthenticateWithWebEIDC29getAlgorithmNameTypeAndLength4fromSS9algorithm_Si03keyL0tSgSo9SecKeyRefa_tF", - "moduleName": "nfclib", - "declAttributes": [ - "Custom", - "AccessControl" - ], - "isFromExtension": true, - "funcSelfKind": "NonMutating" - }, { "kind": "Function", "name": "tagReaderSessionDidBecomeActive", @@ -1692,49 +1618,6 @@ ], "isFromExtension": true, "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "mapToAlgorithm", - "printedName": "mapToAlgorithm(algorithm:bitLength:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:6nfclib31OperationAuthenticateWithWebEIDC14mapToAlgorithm9algorithm9bitLengthSSSgSS_SitF", - "mangledName": "$s6nfclib31OperationAuthenticateWithWebEIDC14mapToAlgorithm9algorithm9bitLengthSSSgSS_SitF", - "moduleName": "nfclib", - "declAttributes": [ - "Custom", - "AccessControl" - ], - "isFromExtension": true, - "funcSelfKind": "NonMutating" } ], "declKind": "Class", @@ -1831,48 +1714,20 @@ ] }, { - "kind": "TypeDecl", - "name": "SignatureAlgorithmInfo", - "printedName": "SignatureAlgorithmInfo", - "declKind": "Struct", - "usr": "s:6nfclib22SignatureAlgorithmInfoV", - "mangledName": "$s6nfclib22SignatureAlgorithmInfoV", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - } - ] - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", + "kind": "Import", + "name": "CryptoTokenKit", + "printedName": "CryptoTokenKit", + "declKind": "Import", + "moduleName": "nfclib", + "declAttributes": [ + "RawDocComment" + ] + }, + { + "kind": "Import", + "name": "SwiftECC", + "printedName": "SwiftECC", + "declKind": "Import", "moduleName": "nfclib", "declAttributes": [ "AccessControl" @@ -1924,7 +1779,10 @@ "name": "BigInt", "printedName": "BigInt", "declKind": "Import", - "moduleName": "nfclib" + "moduleName": "nfclib", + "declAttributes": [ + "AccessControl" + ] }, { "kind": "Import", @@ -1963,37 +1821,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "Import", "name": "Security", @@ -2756,21 +2583,14 @@ }, { "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", + "name": "Foundation", + "printedName": "Foundation", "declKind": "Import", "moduleName": "nfclib", "declAttributes": [ "RawDocComment" ] }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "Import", "name": "SwiftECC", @@ -2783,8 +2603,8 @@ }, { "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", + "name": "Foundation", + "printedName": "Foundation", "declKind": "Import", "moduleName": "nfclib", "declAttributes": [ @@ -2835,44 +2655,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "Security", - "printedName": "Security", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "TypeDecl", "name": "UnblockPINError", @@ -2915,43 +2697,6 @@ "mangledName": "$s6nfclib15UnblockPINErrorO24missingRequiredParameteryA2CmF", "moduleName": "nfclib" }, - { - "kind": "Var", - "name": "failed", - "printedName": "failed", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(nfclib.UnblockPINError.Type) -> nfclib.UnblockPINError", - "children": [ - { - "kind": "TypeNominal", - "name": "UnblockPINError", - "printedName": "nfclib.UnblockPINError", - "usr": "s:6nfclib15UnblockPINErrorO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "nfclib.UnblockPINError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "UnblockPINError", - "printedName": "nfclib.UnblockPINError", - "usr": "s:6nfclib15UnblockPINErrorO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:6nfclib15UnblockPINErrorO6failedyA2CmF", - "mangledName": "$s6nfclib15UnblockPINErrorO6failedyA2CmF", - "moduleName": "nfclib" - }, { "kind": "Var", "name": "general", @@ -3442,20 +3187,6 @@ "Preconcurrency" ] }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "TypeDecl", "name": "NFCConnection", @@ -3617,16 +3348,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, { "kind": "Import", "name": "Foundation", @@ -3644,6 +3365,16 @@ "declKind": "Import", "moduleName": "nfclib" }, + { + "kind": "Import", + "name": "CoreNFC", + "printedName": "CoreNFC", + "declKind": "Import", + "moduleName": "nfclib", + "declAttributes": [ + "RawDocComment" + ] + }, { "kind": "TypeDecl", "name": "IdCardError", @@ -3694,12 +3425,12 @@ { "kind": "TypeFunc", "name": "Function", - "printedName": "(nfclib.IdCardError.Type) -> (Swift.Int) -> nfclib.IdCardError", + "printedName": "(nfclib.IdCardError.Type) -> (nfclib.CodeType, Swift.Int) -> nfclib.IdCardError", "children": [ { "kind": "TypeFunc", "name": "Function", - "printedName": "(Swift.Int) -> nfclib.IdCardError", + "printedName": "(nfclib.CodeType, Swift.Int) -> nfclib.IdCardError", "children": [ { "kind": "TypeNominal", @@ -3710,8 +3441,14 @@ { "kind": "TypeNominal", "name": "Tuple", - "printedName": "(triesLeft: Swift.Int)", + "printedName": "(codeType: nfclib.CodeType, triesLeft: Swift.Int)", "children": [ + { + "kind": "TypeNominal", + "name": "CodeType", + "printedName": "nfclib.CodeType", + "usr": "s:6nfclib8CodeTypeO" + }, { "kind": "TypeNominal", "name": "Int", @@ -3739,8 +3476,8 @@ } ], "declKind": "EnumElement", - "usr": "s:6nfclib11IdCardErrorO8wrongPINyACSi_tcACmF", - "mangledName": "$s6nfclib11IdCardErrorO8wrongPINyACSi_tcACmF", + "usr": "s:6nfclib11IdCardErrorO8wrongPINyAcA8CodeTypeO_SitcACmF", + "mangledName": "$s6nfclib11IdCardErrorO8wrongPINyAcA8CodeTypeO_SitcACmF", "moduleName": "nfclib" }, { @@ -3816,6 +3553,43 @@ "usr": "s:6nfclib11IdCardErrorO07sessionD0yA2CmF", "mangledName": "$s6nfclib11IdCardErrorO07sessionD0yA2CmF", "moduleName": "nfclib" + }, + { + "kind": "Var", + "name": "notActivated", + "printedName": "notActivated", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.IdCardError.Type) -> nfclib.IdCardError", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardError", + "printedName": "nfclib.IdCardError", + "usr": "s:6nfclib11IdCardErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.IdCardError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardError", + "printedName": "nfclib.IdCardError", + "usr": "s:6nfclib11IdCardErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib11IdCardErrorO12notActivatedyA2CmF", + "mangledName": "$s6nfclib11IdCardErrorO12notActivatedyA2CmF", + "moduleName": "nfclib" } ], "declKind": "Enum", @@ -3823,8 +3597,7 @@ "mangledName": "$s6nfclib11IdCardErrorO", "moduleName": "nfclib", "declAttributes": [ - "AccessControl", - "RawDocComment" + "AccessControl" ], "conformances": [ { @@ -4276,13 +4049,33 @@ { "kind": "TypeFunc", "name": "Function", - "printedName": "(nfclib.IdCardInternalError.Type) -> nfclib.IdCardInternalError", + "printedName": "(nfclib.IdCardInternalError.Type) -> (nfclib.CodeType) -> nfclib.IdCardInternalError", "children": [ { - "kind": "TypeNominal", - "name": "IdCardInternalError", - "printedName": "nfclib.IdCardInternalError", - "usr": "s:6nfclib19IdCardInternalErrorO" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.CodeType) -> nfclib.IdCardInternalError", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardInternalError", + "printedName": "nfclib.IdCardInternalError", + "usr": "s:6nfclib19IdCardInternalErrorO" + }, + { + "kind": "TypeNominal", + "name": "Tuple", + "printedName": "(codeType: nfclib.CodeType)", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeType", + "printedName": "nfclib.CodeType", + "usr": "s:6nfclib8CodeTypeO" + } + ] + } + ] }, { "kind": "TypeNominal", @@ -4301,8 +4094,8 @@ } ], "declKind": "EnumElement", - "usr": "s:6nfclib19IdCardInternalErrorO21pinVerificationFailedyA2CmF", - "mangledName": "$s6nfclib19IdCardInternalErrorO21pinVerificationFailedyA2CmF", + "usr": "s:6nfclib19IdCardInternalErrorO21pinVerificationFailedyAcA8CodeTypeO_tcACmF", + "mangledName": "$s6nfclib19IdCardInternalErrorO21pinVerificationFailedyAcA8CodeTypeO_tcACmF", "moduleName": "nfclib" }, { @@ -4313,12 +4106,12 @@ { "kind": "TypeFunc", "name": "Function", - "printedName": "(nfclib.IdCardInternalError.Type) -> (Swift.Int) -> nfclib.IdCardInternalError", + "printedName": "(nfclib.IdCardInternalError.Type) -> (nfclib.CodeType, Swift.Int) -> nfclib.IdCardInternalError", "children": [ { "kind": "TypeFunc", "name": "Function", - "printedName": "(Swift.Int) -> nfclib.IdCardInternalError", + "printedName": "(nfclib.CodeType, Swift.Int) -> nfclib.IdCardInternalError", "children": [ { "kind": "TypeNominal", @@ -4328,9 +4121,22 @@ }, { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Tuple", + "printedName": "(codeType: nfclib.CodeType, count: Swift.Int)", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeType", + "printedName": "nfclib.CodeType", + "usr": "s:6nfclib8CodeTypeO" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ] } ] }, @@ -4351,8 +4157,8 @@ } ], "declKind": "EnumElement", - "usr": "s:6nfclib19IdCardInternalErrorO22remainingPinRetryCountyACSicACmF", - "mangledName": "$s6nfclib19IdCardInternalErrorO22remainingPinRetryCountyACSicACmF", + "usr": "s:6nfclib19IdCardInternalErrorO22remainingPinRetryCountyAcA8CodeTypeO_SitcACmF", + "mangledName": "$s6nfclib19IdCardInternalErrorO22remainingPinRetryCountyAcA8CodeTypeO_SitcACmF", "moduleName": "nfclib" }, { @@ -4984,6 +4790,80 @@ "mangledName": "$s6nfclib19IdCardInternalErrorO21notSupportedAlgorithmyA2CmF", "moduleName": "nfclib" }, + { + "kind": "Var", + "name": "operationInProgress", + "printedName": "operationInProgress", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.IdCardInternalError.Type) -> nfclib.IdCardInternalError", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardInternalError", + "printedName": "nfclib.IdCardInternalError", + "usr": "s:6nfclib19IdCardInternalErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.IdCardInternalError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardInternalError", + "printedName": "nfclib.IdCardInternalError", + "usr": "s:6nfclib19IdCardInternalErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib19IdCardInternalErrorO19operationInProgressyA2CmF", + "mangledName": "$s6nfclib19IdCardInternalErrorO19operationInProgressyA2CmF", + "moduleName": "nfclib" + }, + { + "kind": "Var", + "name": "notActivated", + "printedName": "notActivated", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.IdCardInternalError.Type) -> nfclib.IdCardInternalError", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardInternalError", + "printedName": "nfclib.IdCardInternalError", + "usr": "s:6nfclib19IdCardInternalErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.IdCardInternalError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardInternalError", + "printedName": "nfclib.IdCardInternalError", + "usr": "s:6nfclib19IdCardInternalErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib19IdCardInternalErrorO12notActivatedyA2CmF", + "mangledName": "$s6nfclib19IdCardInternalErrorO12notActivatedyA2CmF", + "moduleName": "nfclib" + }, { "kind": "Function", "name": "getIdCardError", @@ -5051,55 +4931,6 @@ } ] }, - { - "kind": "TypeDecl", - "name": "PinError", - "printedName": "PinError", - "declKind": "Struct", - "usr": "s:6nfclib8PinErrorV", - "mangledName": "$s6nfclib8PinErrorV", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Error", - "printedName": "Error", - "usr": "s:s5ErrorP", - "mangledName": "$ss5ErrorP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "Sendable", - "printedName": "Sendable", - "usr": "s:s8SendableP", - "mangledName": "$ss8SendableP" - }, - { - "kind": "Conformance", - "name": "SendableMetatype", - "printedName": "SendableMetatype", - "usr": "s:s16SendableMetatypeP", - "mangledName": "$ss16SendableMetatypeP" - } - ] - }, { "kind": "Import", "name": "os", @@ -5225,6 +5056,16 @@ } ] }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "nfclib", + "declAttributes": [ + "RawDocComment" + ] + }, { "kind": "TypeDecl", "name": "CardInfo", @@ -5740,10 +5581,95 @@ } ] }, + { + "kind": "Var", + "name": "dateAndPlaceOfBirth", + "printedName": "dateAndPlaceOfBirth", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CardInfoV19dateAndPlaceOfBirthSSvp", + "mangledName": "$s6nfclib8CardInfoV19dateAndPlaceOfBirthSSvp", + "moduleName": "nfclib", + "declAttributes": [ + "HasStorage", + "AccessControl" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CardInfoV19dateAndPlaceOfBirthSSvg", + "mangledName": "$s6nfclib8CardInfoV19dateAndPlaceOfBirthSSvg", + "moduleName": "nfclib", + "implicit": true, + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CardInfoV19dateAndPlaceOfBirthSSvs", + "mangledName": "$s6nfclib8CardInfoV19dateAndPlaceOfBirthSSvs", + "moduleName": "nfclib", + "implicit": true, + "accessorKind": "set" + }, + { + "kind": "Accessor", + "name": "Modify", + "printedName": "Modify()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CardInfoV19dateAndPlaceOfBirthSSvM", + "mangledName": "$s6nfclib8CardInfoV19dateAndPlaceOfBirthSSvM", + "moduleName": "nfclib", + "implicit": true, + "accessorKind": "_modify" + } + ] + }, { "kind": "Constructor", "name": "init", - "printedName": "init(givenName:surname:personalCode:citizenship:documentNumber:dateOfExpiry:)", + "printedName": "init(givenName:surname:personalCode:citizenship:documentNumber:dateOfExpiry:dateAndPlaceOfBirth:)", "children": [ { "kind": "TypeNominal", @@ -5786,6 +5712,13 @@ "hasDefaultArg": true, "usr": "s:SS" }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "hasDefaultArg": true, + "usr": "s:SS" + }, { "kind": "TypeNominal", "name": "String", @@ -5795,8 +5728,8 @@ } ], "declKind": "Constructor", - "usr": "s:6nfclib8CardInfoV9givenName7surname12personalCode11citizenship14documentNumber12dateOfExpiryACSS_S5Stcfc", - "mangledName": "$s6nfclib8CardInfoV9givenName7surname12personalCode11citizenship14documentNumber12dateOfExpiryACSS_S5Stcfc", + "usr": "s:6nfclib8CardInfoV9givenName7surname12personalCode11citizenship14documentNumber12dateOfExpiry0l8AndPlaceM5BirthACSS_S6Stcfc", + "mangledName": "$s6nfclib8CardInfoV9givenName7surname12personalCode11citizenship14documentNumber12dateOfExpiry0l8AndPlaceM5BirthACSS_S6Stcfc", "moduleName": "nfclib", "declAttributes": [ "AccessControl" @@ -5805,19 +5738,27 @@ }, { "kind": "Var", - "name": "formattedDescription", - "printedName": "formattedDescription", + "name": "dateOfBirth", + "printedName": "dateOfBirth", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Foundation.Date?", + "children": [ + { + "kind": "TypeNominal", + "name": "Date", + "printedName": "Foundation.Date", + "usr": "s:10Foundation4DateV" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "s:6nfclib8CardInfoV20formattedDescriptionSSvp", - "mangledName": "$s6nfclib8CardInfoV20formattedDescriptionSSvp", + "usr": "s:6nfclib8CardInfoV11dateOfBirth10Foundation4DateVSgvp", + "mangledName": "$s6nfclib8CardInfoV11dateOfBirth10Foundation4DateVSgvp", "moduleName": "nfclib", "declAttributes": [ "AccessControl" @@ -5830,38 +5771,122 @@ "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Foundation.Date?", + "children": [ + { + "kind": "TypeNominal", + "name": "Date", + "printedName": "Foundation.Date", + "usr": "s:10Foundation4DateV" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "s:6nfclib8CardInfoV20formattedDescriptionSSvg", - "mangledName": "$s6nfclib8CardInfoV20formattedDescriptionSSvg", + "usr": "s:6nfclib8CardInfoV11dateOfBirth10Foundation4DateVSgvg", + "mangledName": "$s6nfclib8CardInfoV11dateOfBirth10Foundation4DateVSgvg", "moduleName": "nfclib", "accessorKind": "get" } ] }, { - "kind": "Var", - "name": "hashValue", - "printedName": "hashValue", + "kind": "Function", + "name": "dateOfBirth", + "printedName": "dateOfBirth(fromPersonalCode:)", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Var", - "usr": "s:6nfclib8CardInfoV9hashValueSivp", - "mangledName": "$s6nfclib8CardInfoV9hashValueSivp", - "moduleName": "nfclib", - "implicit": true, - "accessors": [ - { + "name": "Optional", + "printedName": "Foundation.Date?", + "children": [ + { + "kind": "TypeNominal", + "name": "Date", + "printedName": "Foundation.Date", + "usr": "s:10Foundation4DateV" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:6nfclib8CardInfoV11dateOfBirth16fromPersonalCode10Foundation4DateVSgSS_tFZ", + "mangledName": "$s6nfclib8CardInfoV11dateOfBirth16fromPersonalCode10Foundation4DateVSgSS_tFZ", + "moduleName": "nfclib", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Var", + "name": "formattedDescription", + "printedName": "formattedDescription", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CardInfoV20formattedDescriptionSSvp", + "mangledName": "$s6nfclib8CardInfoV20formattedDescriptionSSvp", + "moduleName": "nfclib", + "declAttributes": [ + "AccessControl" + ], + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CardInfoV20formattedDescriptionSSvg", + "mangledName": "$s6nfclib8CardInfoV20formattedDescriptionSSvg", + "moduleName": "nfclib", + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "hashValue", + "printedName": "hashValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CardInfoV9hashValueSivp", + "mangledName": "$s6nfclib8CardInfoV9hashValueSivp", + "moduleName": "nfclib", + "implicit": true, + "accessors": [ + { "kind": "Accessor", "name": "Get", "printedName": "Get()", @@ -5945,8 +5970,7 @@ "mangledName": "$s6nfclib8CardInfoV", "moduleName": "nfclib", "declAttributes": [ - "AccessControl", - "RawDocComment" + "AccessControl" ], "conformances": [ { @@ -6459,37 +6483,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "TypeDecl", "name": "OperationReadPublicData", @@ -7002,6 +6995,180 @@ "accessorKind": "get" } ] + }, + { + "kind": "Var", + "name": "minimumLength", + "printedName": "minimumLength", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CodeTypeO13minimumLengthSivp", + "mangledName": "$s6nfclib8CodeTypeO13minimumLengthSivp", + "moduleName": "nfclib", + "isFromExtension": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CodeTypeO13minimumLengthSivg", + "mangledName": "$s6nfclib8CodeTypeO13minimumLengthSivg", + "moduleName": "nfclib", + "isFromExtension": true, + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "maximumLength", + "printedName": "maximumLength", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CodeTypeO13maximumLengthSivp", + "mangledName": "$s6nfclib8CodeTypeO13maximumLengthSivp", + "moduleName": "nfclib", + "isFromExtension": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CodeTypeO13maximumLengthSivg", + "mangledName": "$s6nfclib8CodeTypeO13maximumLengthSivg", + "moduleName": "nfclib", + "isFromExtension": true, + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "validLength", + "printedName": "validLength", + "children": [ + { + "kind": "TypeNominal", + "name": "ClosedRange", + "printedName": "Swift.ClosedRange", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "usr": "s:SN" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CodeTypeO11validLengthSNySiGvp", + "mangledName": "$s6nfclib8CodeTypeO11validLengthSNySiGvp", + "moduleName": "nfclib", + "isFromExtension": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "ClosedRange", + "printedName": "Swift.ClosedRange", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "usr": "s:SN" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CodeTypeO11validLengthSNySiGvg", + "mangledName": "$s6nfclib8CodeTypeO11validLengthSNySiGvg", + "moduleName": "nfclib", + "isFromExtension": true, + "accessorKind": "get" + } + ] + }, + { + "kind": "Function", + "name": "validateFormat", + "printedName": "validateFormat(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "nfclib.CodeValidationFailure?", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Array", + "printedName": "[Swift.UInt8]", + "children": [ + { + "kind": "TypeNominal", + "name": "UInt8", + "printedName": "Swift.UInt8", + "usr": "s:s5UInt8V" + } + ], + "usr": "s:Sa" + } + ], + "declKind": "Func", + "usr": "s:6nfclib8CodeTypeO14validateFormatyAA0B17ValidationFailureOSgSays5UInt8VGF", + "mangledName": "$s6nfclib8CodeTypeO14validateFormatyAA0B17ValidationFailureOSgSays5UInt8VGF", + "moduleName": "nfclib", + "isFromExtension": true, + "funcSelfKind": "NonMutating" } ], "declKind": "Enum", @@ -7079,6 +7246,196 @@ } ] }, + { + "kind": "TypeDecl", + "name": "CodeValidationFailure", + "printedName": "CodeValidationFailure", + "children": [ + { + "kind": "Var", + "name": "wrongLength", + "printedName": "wrongLength", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.CodeValidationFailure.Type) -> (Swift.Int, Swift.Int) -> nfclib.CodeValidationFailure", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Swift.Int, Swift.Int) -> nfclib.CodeValidationFailure", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + }, + { + "kind": "TypeNominal", + "name": "Tuple", + "printedName": "(minimum: Swift.Int, maximum: Swift.Int)", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ] + } + ] + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.CodeValidationFailure.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib21CodeValidationFailureO11wrongLengthyACSi_SitcACmF", + "mangledName": "$s6nfclib21CodeValidationFailureO11wrongLengthyACSi_SitcACmF", + "moduleName": "nfclib" + }, + { + "kind": "Var", + "name": "notNumeric", + "printedName": "notNumeric", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.CodeValidationFailure.Type) -> nfclib.CodeValidationFailure", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.CodeValidationFailure.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib21CodeValidationFailureO10notNumericyA2CmF", + "mangledName": "$s6nfclib21CodeValidationFailureO10notNumericyA2CmF", + "moduleName": "nfclib" + }, + { + "kind": "Function", + "name": "==", + "printedName": "==(_:_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + }, + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + } + ], + "declKind": "Func", + "usr": "s:6nfclib21CodeValidationFailureO2eeoiySbAC_ACtFZ", + "mangledName": "$s6nfclib21CodeValidationFailureO2eeoiySbAC_ACtFZ", + "moduleName": "nfclib", + "static": true, + "implicit": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:6nfclib21CodeValidationFailureO", + "mangledName": "$s6nfclib21CodeValidationFailureO", + "moduleName": "nfclib", + "declAttributes": [ + "AccessControl" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Error", + "printedName": "Error", + "usr": "s:s5ErrorP", + "mangledName": "$ss5ErrorP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "SendableMetatype", + "printedName": "SendableMetatype", + "usr": "s:s16SendableMetatypeP", + "mangledName": "$ss16SendableMetatypeP" + } + ] + }, { "kind": "TypeDecl", "name": "CardCommands", @@ -7538,118 +7895,6 @@ "RawDocComment" ] }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "TypeDecl", - "name": "DataProtocol", - "printedName": "DataProtocol", - "children": [ - { - "kind": "Function", - "name": "^", - "printedName": "^(_:_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "GenericTypeParam", - "printedName": "τ_0_0" - }, - { - "kind": "TypeNominal", - "name": "GenericTypeParam", - "printedName": "τ_0_0" - }, - { - "kind": "TypeNominal", - "name": "GenericTypeParam", - "printedName": "τ_0_0" - } - ], - "declKind": "Func", - "usr": "s:10Foundation12DataProtocolP6nfclibAA07MutablebC0RzSi5IndexRtzrlE1xoiyxx_xtFZ", - "mangledName": "$s10Foundation12DataProtocolP6nfclibAA07MutablebC0RzSi5IndexRtzrlE1xoiyxx_xtFZ", - "moduleName": "nfclib", - "genericSig": "<τ_0_0 where τ_0_0 : Foundation.MutableDataProtocol, τ_0_0.Index == Swift.Int>", - "sugared_genericSig": "", - "static": true, - "declAttributes": [ - "AccessControl" - ], - "isFromExtension": true, - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Protocol", - "usr": "s:10Foundation12DataProtocolP", - "mangledName": "$s10Foundation12DataProtocolP", - "moduleName": "Foundation", - "genericSig": "<τ_0_0 : Swift.RandomAccessCollection, τ_0_0.Element == Swift.UInt8, τ_0_0.Regions : Swift.BidirectionalCollection, τ_0_0.SubSequence : Foundation.DataProtocol, τ_0_0.Regions.Element : Foundation.ContiguousBytes, τ_0_0.Regions.Element : Foundation.DataProtocol, τ_0_0.Regions.Element.SubSequence : Foundation.ContiguousBytes>", - "sugared_genericSig": "", - "intro_Macosx": "10.10", - "intro_iOS": "8.0", - "intro_tvOS": "9.0", - "intro_watchOS": "2.0", - "declAttributes": [ - "Available", - "Available", - "Available", - "Available" - ], - "isExternal": true, - "conformances": [ - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "RandomAccessCollection", - "printedName": "RandomAccessCollection", - "usr": "s:Sk", - "mangledName": "$sSk" - }, - { - "kind": "Conformance", - "name": "BidirectionalCollection", - "printedName": "BidirectionalCollection", - "usr": "s:SK", - "mangledName": "$sSK" - }, - { - "kind": "Conformance", - "name": "Collection", - "printedName": "Collection", - "usr": "s:Sl", - "mangledName": "$sSl" - }, - { - "kind": "Conformance", - "name": "Sequence", - "printedName": "Sequence", - "usr": "s:ST", - "mangledName": "$sST" - } - ] - }, { "kind": "TypeDecl", "name": "NFCTagReaderSession", @@ -7796,512 +8041,593 @@ "mangledName": "$ss16SendableMetatypeP" } ] + }, + { + "kind": "TypeDecl", + "name": "DataProtocol", + "printedName": "DataProtocol", + "children": [ + { + "kind": "Function", + "name": "^", + "printedName": "^(_:_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:10Foundation12DataProtocolP6nfclibAA07MutablebC0RzSi5IndexRtzrlE1xoiyxx_xtFZ", + "mangledName": "$s10Foundation12DataProtocolP6nfclibAA07MutablebC0RzSi5IndexRtzrlE1xoiyxx_xtFZ", + "moduleName": "nfclib", + "genericSig": "<τ_0_0 where τ_0_0 : Foundation.MutableDataProtocol, τ_0_0.Index == Swift.Int>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Protocol", + "usr": "s:10Foundation12DataProtocolP", + "mangledName": "$s10Foundation12DataProtocolP", + "moduleName": "Foundation", + "genericSig": "<τ_0_0 : Swift.RandomAccessCollection, τ_0_0.Element == Swift.UInt8, τ_0_0.Regions : Swift.BidirectionalCollection, τ_0_0.SubSequence : Foundation.DataProtocol, τ_0_0.Regions.Element : Foundation.ContiguousBytes, τ_0_0.Regions.Element : Foundation.DataProtocol, τ_0_0.Regions.Element.SubSequence : Foundation.ContiguousBytes>", + "sugared_genericSig": "", + "intro_Macosx": "10.10", + "intro_iOS": "8.0", + "intro_tvOS": "9.0", + "intro_watchOS": "2.0", + "declAttributes": [ + "Available", + "Available", + "Available", + "Available" + ], + "isExternal": true, + "conformances": [ + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "RandomAccessCollection", + "printedName": "RandomAccessCollection", + "usr": "s:Sk", + "mangledName": "$sSk" + }, + { + "kind": "Conformance", + "name": "BidirectionalCollection", + "printedName": "BidirectionalCollection", + "usr": "s:SK", + "mangledName": "$sSK" + }, + { + "kind": "Conformance", + "name": "Collection", + "printedName": "Collection", + "usr": "s:Sl", + "mangledName": "$sSl" + }, + { + "kind": "Conformance", + "name": "Sequence", + "printedName": "Sequence", + "usr": "s:ST", + "mangledName": "$sST" + } + ] } ], "json_format_version": 8 }, "ConstValues": [ { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", "kind": "StringLiteral", - "offset": 1066, + "offset": 276, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", "kind": "Array", - "offset": 1114, + "offset": 324, "length": 6, "value": "[0x00]" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", "kind": "StringLiteral", - "offset": 1193, + "offset": 403, "length": 52, "value": "\"Please place your ID card against the smart device\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/Utilities.swift", - "kind": "StringLiteral", - "offset": 927, - "length": 5, - "value": "\"RSA\"" - }, - { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/Utilities.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/WebEID\/WebEidSignatureAlgorithm.swift", "kind": "StringLiteral", - "offset": 962, - "length": 4, - "value": "\"EC\"" + "offset": 221, + "length": 7, + "value": "\"ES256\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/Utilities.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/WebEID\/WebEidSignatureAlgorithm.swift", "kind": "StringLiteral", - "offset": 1001, - "length": 9, - "value": "\"Unknown\"" + "offset": 246, + "length": 7, + "value": "\"ES384\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "StringLiteral", - "offset": 1019, + "offset": 326, "length": 20, "value": "\"ee.ria.nfc-iOS-lib\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "StringLiteral", - "offset": 1051, + "offset": 358, "length": 15, "value": "\"CardReaderNFC\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 1175, + "offset": 482, "length": 1, "value": "1" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 1238, + "offset": 545, "length": 1, "value": "2" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "StringLiteral", - "offset": 1555, + "offset": 862, "length": 22, "value": "\"04007f00070202040204\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "StringLiteral", - "offset": 1653, + "offset": 960, "length": 22, "value": "\"04007f00070202040404\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 1935, + "offset": 1242, "length": 2, "value": "12" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 1961, + "offset": 1268, "length": 2, "value": "13" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 1987, + "offset": 1294, "length": 2, "value": "15" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 2013, + "offset": 1320, "length": 2, "value": "16" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 2039, + "offset": 1346, "length": 2, "value": "17" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 2065, + "offset": 1372, "length": 2, "value": "18" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "StringLiteral", - "offset": 852, + "offset": 160, "length": 67, "value": "\"3B DB 96 00 80 B1 FE 45 1F 83 00 12 23 3F 53 65 49 44 0F 90 00 F1\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "StringLiteral", - "offset": 952, + "offset": 260, "length": 70, "value": "\"3B DC 96 00 80 B1 FE 45 1F 83 00 12 23 3F 54 65 49 44 32 0F 90 00 C3\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "StringLiteral", - "offset": 1054, + "offset": 362, "length": 49, "value": "\"A0 00 00 00 77 01 08 00 07 00 00 FE 00 00 01 00\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "StringLiteral", - "offset": 1139, + "offset": 447, "length": 49, "value": "\"51 53 43 44 20 41 70 70 6C 69 63 61 74 69 6F 6E\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "StringLiteral", - "offset": 1228, + "offset": 536, "length": 40, "value": "\"E8 28 BD 08 0F F2 50 4F 54 20 41 57 50\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "IntegerLiteral", - "offset": 1299, + "offset": 607, "length": 4, "value": "0x81" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "IntegerLiteral", - "offset": 1333, + "offset": 641, "length": 4, "value": "0x9F" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "BooleanLiteral", - "offset": 1774, + "offset": 1082, "length": 4, "value": "true" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "IntegerLiteral", - "offset": 1832, + "offset": 1140, "length": 4, "value": "0xFF" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommandsInternal.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommandsInternal.swift", "kind": "IntegerLiteral", - "offset": 1216, + "offset": 524, "length": 4, "value": "0x04" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommandsInternal.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommandsInternal.swift", "kind": "IntegerLiteral", - "offset": 1238, + "offset": 546, "length": 4, "value": "0x0C" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadCertificate.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadCertificate.swift", "kind": "StringLiteral", - "offset": 1489, + "offset": 717, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadCertificate.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadCertificate.swift", "kind": "StringLiteral", - "offset": 1574, + "offset": 802, "length": 52, "value": "\"Please place your ID card against the smart device\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "StringLiteral", - "offset": 1103, + "offset": 407, "length": 76, "value": "\"3B FF 96 00 00 80 31 FE 43 80 31 B8 53 65 49 44 64 B0 85 05 10 12 23 3F 1D\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "StringLiteral", - "offset": 1222, + "offset": 526, "length": 37, "value": "\"A0 00 00 00 63 50 4B 43 53 2D 31 35\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "StringLiteral", - "offset": 1308, + "offset": 612, "length": 49, "value": "\"A0 00 00 00 18 10 02 03 00 00 00 00 00 00 00 01\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "IntegerLiteral", - "offset": 1399, + "offset": 703, "length": 4, "value": "0x01" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "IntegerLiteral", - "offset": 1444, + "offset": 748, "length": 4, "value": "0x05" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "BooleanLiteral", - "offset": 1479, + "offset": 783, "length": 5, "value": "false" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "IntegerLiteral", - "offset": 1538, + "offset": 842, "length": 4, "value": "0x00" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/NFCISO7816Tag+Extensions.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/NFCISO7816Tag+Extensions.swift", "kind": "IntegerLiteral", - "offset": 1169, + "offset": 439, "length": 2, "value": "-1" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/NFCISO7816Tag+Extensions.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/NFCISO7816Tag+Extensions.swift", "kind": "IntegerLiteral", - "offset": 2281, + "offset": 1902, "length": 2, "value": "-1" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationUnblockPin.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationUnblockPin.swift", "kind": "StringLiteral", - "offset": 1174, + "offset": 369, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationUnblockPin.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationUnblockPin.swift", "kind": "StringLiteral", - "offset": 1319, + "offset": 514, "length": 52, "value": "\"Please place your ID card against the smart device\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/ProgressBar.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/ProgressBar.swift", "kind": "IntegerLiteral", - "offset": 936, + "offset": 244, "length": 1, "value": "4" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", "kind": "IntegerLiteral", - "offset": 1026, + "offset": 309, "length": 4, "value": "0x00" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", "kind": "Array", - "offset": 2744, + "offset": 2027, "length": 298, "value": "[0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x87]" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", "kind": "IntegerLiteral", - "offset": 3562, + "offset": 2845, "length": 1, "value": "8" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/WebEID\/WebEIDHash.swift", - "kind": "IntegerLiteral", - "offset": 885, - "length": 3, - "value": "256" - }, - { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/WebEID\/WebEIDHash.swift", - "kind": "IntegerLiteral", - "offset": 908, - "length": 3, - "value": "384" - }, - { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/WebEID\/WebEIDHash.swift", - "kind": "IntegerLiteral", - "offset": 931, - "length": 3, - "value": "512" - }, - { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/Logger+Extensions.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/Logger+Extensions.swift", "kind": "BooleanLiteral", "offset": 912, "length": 5, "value": "false" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "kind": "StringLiteral", + "offset": 474, + "length": 2, + "value": "\"\"" + }, + { + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1104, + "offset": 504, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1134, + "offset": 539, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1169, + "offset": 573, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1203, + "offset": 610, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1240, + "offset": 645, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1275, + "offset": 687, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1858, + "offset": 2609, "length": 1, "value": "1" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1870, + "offset": 2621, "length": 9, "value": "2" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1890, + "offset": 2641, "length": 3, "value": "3" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1904, + "offset": 2655, "length": 11, "value": "4" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1926, + "offset": 2677, "length": 19, "value": "5" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1956, + "offset": 2707, "length": 12, "value": "6" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1979, + "offset": 2730, "length": 10, "value": "7" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 2000, + "offset": 2751, "length": 12, "value": "8" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadPublicData.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadPublicData.swift", "kind": "StringLiteral", - "offset": 1061, + "offset": 288, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadPublicData.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadPublicData.swift", "kind": "StringLiteral", - "offset": 1101, + "offset": 328, "length": 52, "value": "\"Please place your ID card against the smart device\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", "kind": "IntegerLiteral", - "offset": 2950, + "offset": 2258, "length": 4, "value": "0x00" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", "kind": "IntegerLiteral", - "offset": 2984, + "offset": 2292, "length": 4, "value": "0x00" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", "kind": "IntegerLiteral", - "offset": 3006, + "offset": 2314, "length": 4, "value": "0x00" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", "kind": "IntegerLiteral", - "offset": 877, + "offset": 185, "length": 1, "value": "0" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", "kind": "IntegerLiteral", - "offset": 895, + "offset": 203, "length": 1, "value": "1" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", "kind": "IntegerLiteral", - "offset": 913, + "offset": 221, "length": 1, "value": "2" } diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface index ec2991221..383360d96 100644 --- a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +++ b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface @@ -1,236 +1,258 @@ // swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101) -// swift-module-flags: -target arm64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name nfclib -// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3 -import BigInt +// swift-compiler-version: Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1) +// swift-module-flags: -target arm64-apple-ios18.0-simulator -enable-objc-interop -enable-library-evolution -language-mode 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name nfclib +// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.4 import CommonCrypto @preconcurrency import CoreNFC -import CryptoKit import CryptoTokenKit import Darwin import Foundation import OSLog import Security import Swift +import Synchronization import _Concurrency import _StringProcessing import _SwiftConcurrencyShims @_exported import nfclib import os -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationSignHash : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startSigning(CAN: Swift.String, PIN2: nfclib.SecureData, hash: Foundation.Data) async throws -> Foundation.Data - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationSignHash : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startSigning(CAN: Swift::String, PIN2: nfclib::SecureData, hash: Foundation::Data) async throws -> Foundation::Data + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationSignHash : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationSignHash : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -@_hasMissingDesignatedInitializers final public class WebEidData : Swift.Sendable { - final public let unverifiedCertificate: Swift.String - final public let signingCertificate: Swift.String - final public let algorithm: Swift.String - final public let signature: Swift.String - final public var formattedDescription: Swift.String { +@_hasMissingDesignatedInitializers final public class WebEidData : Swift::Sendable { + final public let unverifiedCertificate: Swift::String + final public let signingCertificate: Swift::String + final public let algorithm: nfclib::WebEidSignatureAlgorithm + final public let signature: Swift::String + final public var formattedDescription: Swift::String { get } @objc deinit } -final public class SecureData : Swift.Sendable { - public init(_ bytes: [Swift.UInt8]) - public init(_ data: Foundation.Data) +public enum WebEidSignatureAlgorithm : Swift::String, Swift::Sendable { + case es256 + case es384 + public init?(rawValue: Swift::String) + public typealias RawValue = Swift::String + public var rawValue: Swift::String { + get + } +} +final public class SecureData : Swift::Sendable { + public init(_ bytes: [Swift::UInt8]) + public init(_ data: Foundation::Data) @objc deinit - final public var count: Swift.Int { + final public var count: Swift::Int { get } final public func secureZero() } -public let rsaAlgorithmName: Swift.String -public let ecAlgorithmName: Swift.String -public let unknownAlgorithmName: Swift.String -public enum AuthenticateWithWebEidError : Swift.Error { +public enum AuthenticateWithWebEidError : Swift::Error { case failedToReadPublicKey case failedToDetermineAlgorithm - case failedToHashData case failedToMapAlgorithm case failedCertificateExpired case failedCertificateNotYetValid - public static func == (a: nfclib.AuthenticateWithWebEidError, b: nfclib.AuthenticateWithWebEidError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::AuthenticateWithWebEidError, b: nfclib::AuthenticateWithWebEidError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -@objc @_Concurrency.MainActor public class OperationAuthenticateWithWebEID : ObjectiveC.NSObject { - @_Concurrency.MainActor public init(CAN: Swift.String, pin1: nfclib.SecureData, challenge: Swift.String, origin: Swift.String) - @_Concurrency.MainActor public func startReading() async throws -> nfclib.WebEidData +@objc @_Concurrency::MainActor public class OperationAuthenticateWithWebEID : ObjectiveC::NSObject { + @_Concurrency::MainActor public init(CAN: Swift::String, pin1: nfclib::SecureData, challenge: Swift::String, origin: Swift::String) + @_Concurrency::MainActor public func startReading() async throws -> nfclib::WebEidData @objc deinit } -extension nfclib.OperationAuthenticateWithWebEID : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func getAlgorithmNameTypeAndLength(from key: Security.SecKey) -> (algorithm: Swift.String, keyLength: Swift.Int)? - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) - @_Concurrency.MainActor public func mapToAlgorithm(algorithm: Swift.String, bitLength: Swift.Int) -> Swift.String? -} -public struct SignatureAlgorithmInfo { +extension nfclib::OperationAuthenticateWithWebEID : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum ReadCertificateError : Swift.Error { +public enum ReadCertificateError : Swift::Error { case certificateUsageNotSpecified case failedToReadCertificate case general - public static func == (a: nfclib.ReadCertificateError, b: nfclib.ReadCertificateError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::ReadCertificateError, b: nfclib::ReadCertificateError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } public enum CertificateUsage { case auth case sign - public static func == (a: nfclib.CertificateUsage, b: nfclib.CertificateUsage) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::CertificateUsage, b: nfclib::CertificateUsage) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -extension CoreNFC.NFCTagReaderSession : @unchecked @retroactive Swift.Sendable { +extension CoreNFC::NFCTagReaderSession : @unchecked @retroactive Swift::Sendable { } -extension CoreNFC.NFCTag : @unchecked @retroactive Swift.Sendable { +extension CoreNFC::NFCTag : @unchecked @retroactive Swift::Sendable { } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationReadCertificate : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startReading(CAN: Swift.String, certUsage: nfclib.CertificateUsage) async throws -> Security.SecCertificate - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationReadCertificate : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startReading(CAN: Swift::String, certUsage: nfclib::CertificateUsage) async throws -> Security::SecCertificate + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationReadCertificate : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationReadCertificate : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum UnblockPINError : Swift.Error { +public enum UnblockPINError : Swift::Error { case missingRequiredParameter - case failed case general - public static func == (a: nfclib.UnblockPINError, b: nfclib.UnblockPINError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::UnblockPINError, b: nfclib::UnblockPINError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationUnblockPin : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startReading(CAN: Swift.String, codeType: nfclib.CodeType, puk: nfclib.SecureData, newPin: nfclib.SecureData) async throws - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationUnblockPin : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startReading(CAN: Swift::String, codeType: nfclib::CodeType, puk: nfclib::SecureData, newPin: nfclib::SecureData) async throws + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationUnblockPin : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationUnblockPin : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -@_Concurrency.MainActor public class NFCConnection { - @_Concurrency.MainActor public init() - @_Concurrency.MainActor public func setup(_ session: CoreNFC.NFCTagReaderSession, tags: [CoreNFC.NFCTag]) async throws -> any CoreNFC.NFCISO7816Tag - @_Concurrency.MainActor public func getCardCommands(_: CoreNFC.NFCTagReaderSession, tag: any CoreNFC.NFCISO7816Tag, CAN: Swift.String) async throws -> any nfclib.CardCommands +@_Concurrency::MainActor public class NFCConnection { + @_Concurrency::MainActor public init() + @_Concurrency::MainActor public func setup(_ session: CoreNFC::NFCTagReaderSession, tags: [CoreNFC::NFCTag]) async throws -> any CoreNFC::NFCISO7816Tag + @_Concurrency::MainActor public func getCardCommands(_: CoreNFC::NFCTagReaderSession, tag: any CoreNFC::NFCISO7816Tag, CAN: Swift::String) async throws -> any nfclib::CardCommands @objc deinit } -public enum IdCardError : Swift.Error { - case wrongCAN, wrongPIN(triesLeft: Swift.Int), invalidNewPIN, sessionError +public enum IdCardError : Swift::Error { + case wrongCAN, wrongPIN(codeType: nfclib::CodeType, triesLeft: Swift::Int), invalidNewPIN, sessionError, notActivated } -public enum IdCardInternalError : Swift.Error { - case missingRESTag, missingMACTag, invalidMACValue, failedReadingField(nfclib.CardField), hexConversionFailed, AESCBCError, sendCommandFailed(message: Swift.String), invalidResponse(message: Swift.String), swError(Swift.UInt16), pinVerificationFailed, remainingPinRetryCount(Swift.Int), invalidNewPin, notSupportedCodeType, dataPaddingError, invalidAPDU, authenticationFailed, canAuthenticationFailed, invalidTag, cardNotSupported, nfcNotSupported, connectionFailed, multipleTagsDetected, couldNotVerifyChipsMAC, cancelledByUser, sessionInvalidated, readerProcessFailed, failedToRemovePadding, notSupportedAlgorithm - public func getIdCardError() -> nfclib.IdCardError -} -public struct PinError : Swift.Error { +public enum IdCardInternalError : Swift::Error { + case missingRESTag, missingMACTag, invalidMACValue, failedReadingField(nfclib::CardField), hexConversionFailed, AESCBCError, sendCommandFailed(message: Swift::String), invalidResponse(message: Swift::String), swError(Swift::UInt16), pinVerificationFailed(codeType: nfclib::CodeType), remainingPinRetryCount(codeType: nfclib::CodeType, count: Swift::Int), invalidNewPin, notSupportedCodeType, dataPaddingError, invalidAPDU, authenticationFailed, canAuthenticationFailed, invalidTag, cardNotSupported, nfcNotSupported, connectionFailed, multipleTagsDetected, couldNotVerifyChipsMAC, cancelledByUser, sessionInvalidated, readerProcessFailed, failedToRemovePadding, notSupportedAlgorithm, operationInProgress, notActivated + public func getIdCardError() -> nfclib::IdCardError } public enum NFCLibLogging { - public static var isEnabled: Swift.Bool { + public static var isEnabled: Swift::Bool { get set } } -public struct CardInfo : Swift.Sendable, Swift.Hashable { - public var givenName: Swift.String - public var surname: Swift.String - public var personalCode: Swift.String - public var citizenship: Swift.String - public var documentNumber: Swift.String - public var dateOfExpiry: Swift.String - public init(givenName: Swift.String = "", surname: Swift.String = "", personalCode: Swift.String = "", citizenship: Swift.String = "", documentNumber: Swift.String = "", dateOfExpiry: Swift.String = "") - public var formattedDescription: Swift.String { +public struct CardInfo : Swift::Sendable, Swift::Hashable { + public var givenName: Swift::String + public var surname: Swift::String + public var personalCode: Swift::String + public var citizenship: Swift::String + public var documentNumber: Swift::String + public var dateOfExpiry: Swift::String + public var dateAndPlaceOfBirth: Swift::String + public init(givenName: Swift::String = "", surname: Swift::String = "", personalCode: Swift::String = "", citizenship: Swift::String = "", documentNumber: Swift::String = "", dateOfExpiry: Swift::String = "", dateAndPlaceOfBirth: Swift::String = "") + public var dateOfBirth: Foundation::Date? { + get + } + public static func dateOfBirth(fromPersonalCode personalCode: Swift::String) -> Foundation::Date? + public var formattedDescription: Swift::String { get } - public static func == (a: nfclib.CardInfo, b: nfclib.CardInfo) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::CardInfo, b: nfclib::CardInfo) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -public enum CardField : Swift.Int, Swift.Sendable { +public enum CardField : Swift::Int, Swift::Sendable { case surname, firstName, sex, citizenship, dateAndPlaceOfBirth, personalCode, documentNr, dateOfExpiry - public init?(rawValue: Swift.Int) - public typealias RawValue = Swift.Int - public var rawValue: Swift.Int { + public init?(rawValue: Swift::Int) + public typealias RawValue = Swift::Int + public var rawValue: Swift::Int { get } } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor final public class OperationReadPublicData : ObjectiveC.NSObject { - @_Concurrency.MainActor final public func startReading(CAN: Swift.String) async throws -> nfclib.CardInfo - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor final public class OperationReadPublicData : ObjectiveC::NSObject { + @_Concurrency::MainActor final public func startReading(CAN: Swift::String) async throws -> nfclib::CardInfo + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationReadPublicData : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor final public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor final public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor final public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationReadPublicData : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor final public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor final public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor final public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum CodeType : Swift.UInt, Swift.Sendable { +public enum CodeType : Swift::UInt, Swift::Sendable { case puk case pin1 case pin2 - public var name: Swift.String { + public var name: Swift::String { + get + } + public init?(rawValue: Swift::UInt) + public typealias RawValue = Swift::UInt + public var rawValue: Swift::UInt { + get + } +} +public enum CodeValidationFailure : Swift::Error, Swift::Sendable, Swift::Equatable { + case wrongLength(minimum: Swift::Int, maximum: Swift::Int) + case notNumeric + public static func == (a: nfclib::CodeValidationFailure, b: nfclib::CodeValidationFailure) -> Swift::Bool +} +extension nfclib::CodeType { + public var minimumLength: Swift::Int { + get + } + public var maximumLength: Swift::Int { get } - public init?(rawValue: Swift.UInt) - public typealias RawValue = Swift.UInt - public var rawValue: Swift.UInt { + public var validLength: Swift::ClosedRange { get } + public func validateFormat(_ code: [Swift::UInt8]) -> nfclib::CodeValidationFailure? } -public protocol CardCommands : Swift.Sendable { - var canChangePUK: Swift.Bool { get } - func readPublicData() async throws -> nfclib.CardInfo - func readAuthenticationCertificate() async throws -> Foundation.Data - func readSignatureCertificate() async throws -> Foundation.Data - func readCodeTryCounterRecord(_ type: nfclib.CodeType) async throws -> (retryCount: Swift.UInt8, pinActive: Swift.Bool) - func changeCode(_ type: nfclib.CodeType, to code: nfclib.SecureData, verifyCode: nfclib.SecureData) async throws - func verifyCode(_ type: nfclib.CodeType, code: nfclib.SecureData) async throws - func unblockCode(_ type: nfclib.CodeType, puk: nfclib.SecureData, newCode: nfclib.SecureData) async throws - func authenticate(for hash: Foundation.Data, withPin1 pin1: nfclib.SecureData) async throws -> Foundation.Data - func calculateSignature(for hash: Foundation.Data, withPin2 pin2: nfclib.SecureData) async throws -> Foundation.Data - func decryptData(_ hash: Foundation.Data, withPin1 pin1: nfclib.SecureData) async throws -> Foundation.Data +public protocol CardCommands : Swift::Sendable { + var canChangePUK: Swift::Bool { get } + func readPublicData() async throws -> nfclib::CardInfo + func readAuthenticationCertificate() async throws -> Foundation::Data + func readSignatureCertificate() async throws -> Foundation::Data + func readCodeTryCounterRecord(_ type: nfclib::CodeType) async throws -> (retryCount: Swift::UInt8, pinActive: Swift::Bool) + func changeCode(_ type: nfclib::CodeType, to code: nfclib::SecureData, verifyCode: nfclib::SecureData) async throws + func verifyCode(_ type: nfclib::CodeType, code: nfclib::SecureData) async throws + func unblockCode(_ type: nfclib::CodeType, puk: nfclib::SecureData, newCode: nfclib::SecureData) async throws + func authenticate(for hash: Foundation::Data, withPin1 pin1: nfclib::SecureData) async throws -> Foundation::Data + func calculateSignature(for hash: Foundation::Data, withPin2 pin2: nfclib::SecureData) async throws -> Foundation::Data + func decryptData(_ hash: Foundation::Data, withPin1 pin1: nfclib::SecureData) async throws -> Foundation::Data } -extension Foundation.DataProtocol where Self : Foundation.MutableDataProtocol, Self.Index == Swift.Int { +extension Foundation::DataProtocol where Self : Foundation::MutableDataProtocol, Self.Index == Swift::Int { public static func ^ (xVal: Self, yVal: Self) -> Self } -extension nfclib.OperationSignHash : Swift.Sendable {} -extension nfclib.AuthenticateWithWebEidError : Swift.Equatable {} -extension nfclib.AuthenticateWithWebEidError : Swift.Hashable {} -extension nfclib.OperationAuthenticateWithWebEID : Swift.Sendable {} -extension nfclib.CodeType : Swift.Equatable {} -extension nfclib.CodeType : Swift.Hashable {} -extension nfclib.CodeType : Swift.RawRepresentable {} -extension nfclib.ReadCertificateError : Swift.Equatable {} -extension nfclib.ReadCertificateError : Swift.Hashable {} -extension nfclib.CertificateUsage : Swift.Equatable {} -extension nfclib.CertificateUsage : Swift.Hashable {} -extension nfclib.OperationReadCertificate : Swift.Sendable {} -extension nfclib.UnblockPINError : Swift.Equatable {} -extension nfclib.UnblockPINError : Swift.Hashable {} -extension nfclib.OperationUnblockPin : Swift.Sendable {} -extension nfclib.NFCConnection : Swift.Sendable {} -extension nfclib.CardField : Swift.Equatable {} -extension nfclib.CardField : Swift.Hashable {} -extension nfclib.CardField : Swift.RawRepresentable {} -extension nfclib.OperationReadPublicData : Swift.Sendable {} +extension nfclib::OperationSignHash : Swift::Sendable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::Equatable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::Hashable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::RawRepresentable {} +extension nfclib::AuthenticateWithWebEidError : Swift::Equatable {} +extension nfclib::AuthenticateWithWebEidError : Swift::Hashable {} +extension nfclib::OperationAuthenticateWithWebEID : Swift::Sendable {} +extension nfclib::CodeType : Swift::Equatable {} +extension nfclib::CodeType : Swift::Hashable {} +extension nfclib::CodeType : Swift::RawRepresentable {} +extension nfclib::ReadCertificateError : Swift::Equatable {} +extension nfclib::ReadCertificateError : Swift::Hashable {} +extension nfclib::CertificateUsage : Swift::Equatable {} +extension nfclib::CertificateUsage : Swift::Hashable {} +extension nfclib::OperationReadCertificate : Swift::Sendable {} +extension nfclib::UnblockPINError : Swift::Equatable {} +extension nfclib::UnblockPINError : Swift::Hashable {} +extension nfclib::OperationUnblockPin : Swift::Sendable {} +extension nfclib::NFCConnection : Swift::Sendable {} +extension nfclib::CardField : Swift::Equatable {} +extension nfclib::CardField : Swift::Hashable {} +extension nfclib::CardField : Swift::RawRepresentable {} +extension nfclib::OperationReadPublicData : Swift::Sendable {} diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.swiftdoc index df54c5ed3..1062b6556 100644 Binary files a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.swiftdoc and b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.swiftinterface index ec2991221..383360d96 100644 --- a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.swiftinterface +++ b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -1,236 +1,258 @@ // swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101) -// swift-module-flags: -target arm64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name nfclib -// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3 -import BigInt +// swift-compiler-version: Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1) +// swift-module-flags: -target arm64-apple-ios18.0-simulator -enable-objc-interop -enable-library-evolution -language-mode 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name nfclib +// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.4 import CommonCrypto @preconcurrency import CoreNFC -import CryptoKit import CryptoTokenKit import Darwin import Foundation import OSLog import Security import Swift +import Synchronization import _Concurrency import _StringProcessing import _SwiftConcurrencyShims @_exported import nfclib import os -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationSignHash : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startSigning(CAN: Swift.String, PIN2: nfclib.SecureData, hash: Foundation.Data) async throws -> Foundation.Data - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationSignHash : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startSigning(CAN: Swift::String, PIN2: nfclib::SecureData, hash: Foundation::Data) async throws -> Foundation::Data + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationSignHash : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationSignHash : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -@_hasMissingDesignatedInitializers final public class WebEidData : Swift.Sendable { - final public let unverifiedCertificate: Swift.String - final public let signingCertificate: Swift.String - final public let algorithm: Swift.String - final public let signature: Swift.String - final public var formattedDescription: Swift.String { +@_hasMissingDesignatedInitializers final public class WebEidData : Swift::Sendable { + final public let unverifiedCertificate: Swift::String + final public let signingCertificate: Swift::String + final public let algorithm: nfclib::WebEidSignatureAlgorithm + final public let signature: Swift::String + final public var formattedDescription: Swift::String { get } @objc deinit } -final public class SecureData : Swift.Sendable { - public init(_ bytes: [Swift.UInt8]) - public init(_ data: Foundation.Data) +public enum WebEidSignatureAlgorithm : Swift::String, Swift::Sendable { + case es256 + case es384 + public init?(rawValue: Swift::String) + public typealias RawValue = Swift::String + public var rawValue: Swift::String { + get + } +} +final public class SecureData : Swift::Sendable { + public init(_ bytes: [Swift::UInt8]) + public init(_ data: Foundation::Data) @objc deinit - final public var count: Swift.Int { + final public var count: Swift::Int { get } final public func secureZero() } -public let rsaAlgorithmName: Swift.String -public let ecAlgorithmName: Swift.String -public let unknownAlgorithmName: Swift.String -public enum AuthenticateWithWebEidError : Swift.Error { +public enum AuthenticateWithWebEidError : Swift::Error { case failedToReadPublicKey case failedToDetermineAlgorithm - case failedToHashData case failedToMapAlgorithm case failedCertificateExpired case failedCertificateNotYetValid - public static func == (a: nfclib.AuthenticateWithWebEidError, b: nfclib.AuthenticateWithWebEidError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::AuthenticateWithWebEidError, b: nfclib::AuthenticateWithWebEidError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -@objc @_Concurrency.MainActor public class OperationAuthenticateWithWebEID : ObjectiveC.NSObject { - @_Concurrency.MainActor public init(CAN: Swift.String, pin1: nfclib.SecureData, challenge: Swift.String, origin: Swift.String) - @_Concurrency.MainActor public func startReading() async throws -> nfclib.WebEidData +@objc @_Concurrency::MainActor public class OperationAuthenticateWithWebEID : ObjectiveC::NSObject { + @_Concurrency::MainActor public init(CAN: Swift::String, pin1: nfclib::SecureData, challenge: Swift::String, origin: Swift::String) + @_Concurrency::MainActor public func startReading() async throws -> nfclib::WebEidData @objc deinit } -extension nfclib.OperationAuthenticateWithWebEID : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func getAlgorithmNameTypeAndLength(from key: Security.SecKey) -> (algorithm: Swift.String, keyLength: Swift.Int)? - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) - @_Concurrency.MainActor public func mapToAlgorithm(algorithm: Swift.String, bitLength: Swift.Int) -> Swift.String? -} -public struct SignatureAlgorithmInfo { +extension nfclib::OperationAuthenticateWithWebEID : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum ReadCertificateError : Swift.Error { +public enum ReadCertificateError : Swift::Error { case certificateUsageNotSpecified case failedToReadCertificate case general - public static func == (a: nfclib.ReadCertificateError, b: nfclib.ReadCertificateError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::ReadCertificateError, b: nfclib::ReadCertificateError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } public enum CertificateUsage { case auth case sign - public static func == (a: nfclib.CertificateUsage, b: nfclib.CertificateUsage) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::CertificateUsage, b: nfclib::CertificateUsage) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -extension CoreNFC.NFCTagReaderSession : @unchecked @retroactive Swift.Sendable { +extension CoreNFC::NFCTagReaderSession : @unchecked @retroactive Swift::Sendable { } -extension CoreNFC.NFCTag : @unchecked @retroactive Swift.Sendable { +extension CoreNFC::NFCTag : @unchecked @retroactive Swift::Sendable { } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationReadCertificate : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startReading(CAN: Swift.String, certUsage: nfclib.CertificateUsage) async throws -> Security.SecCertificate - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationReadCertificate : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startReading(CAN: Swift::String, certUsage: nfclib::CertificateUsage) async throws -> Security::SecCertificate + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationReadCertificate : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationReadCertificate : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum UnblockPINError : Swift.Error { +public enum UnblockPINError : Swift::Error { case missingRequiredParameter - case failed case general - public static func == (a: nfclib.UnblockPINError, b: nfclib.UnblockPINError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::UnblockPINError, b: nfclib::UnblockPINError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationUnblockPin : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startReading(CAN: Swift.String, codeType: nfclib.CodeType, puk: nfclib.SecureData, newPin: nfclib.SecureData) async throws - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationUnblockPin : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startReading(CAN: Swift::String, codeType: nfclib::CodeType, puk: nfclib::SecureData, newPin: nfclib::SecureData) async throws + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationUnblockPin : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationUnblockPin : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -@_Concurrency.MainActor public class NFCConnection { - @_Concurrency.MainActor public init() - @_Concurrency.MainActor public func setup(_ session: CoreNFC.NFCTagReaderSession, tags: [CoreNFC.NFCTag]) async throws -> any CoreNFC.NFCISO7816Tag - @_Concurrency.MainActor public func getCardCommands(_: CoreNFC.NFCTagReaderSession, tag: any CoreNFC.NFCISO7816Tag, CAN: Swift.String) async throws -> any nfclib.CardCommands +@_Concurrency::MainActor public class NFCConnection { + @_Concurrency::MainActor public init() + @_Concurrency::MainActor public func setup(_ session: CoreNFC::NFCTagReaderSession, tags: [CoreNFC::NFCTag]) async throws -> any CoreNFC::NFCISO7816Tag + @_Concurrency::MainActor public func getCardCommands(_: CoreNFC::NFCTagReaderSession, tag: any CoreNFC::NFCISO7816Tag, CAN: Swift::String) async throws -> any nfclib::CardCommands @objc deinit } -public enum IdCardError : Swift.Error { - case wrongCAN, wrongPIN(triesLeft: Swift.Int), invalidNewPIN, sessionError +public enum IdCardError : Swift::Error { + case wrongCAN, wrongPIN(codeType: nfclib::CodeType, triesLeft: Swift::Int), invalidNewPIN, sessionError, notActivated } -public enum IdCardInternalError : Swift.Error { - case missingRESTag, missingMACTag, invalidMACValue, failedReadingField(nfclib.CardField), hexConversionFailed, AESCBCError, sendCommandFailed(message: Swift.String), invalidResponse(message: Swift.String), swError(Swift.UInt16), pinVerificationFailed, remainingPinRetryCount(Swift.Int), invalidNewPin, notSupportedCodeType, dataPaddingError, invalidAPDU, authenticationFailed, canAuthenticationFailed, invalidTag, cardNotSupported, nfcNotSupported, connectionFailed, multipleTagsDetected, couldNotVerifyChipsMAC, cancelledByUser, sessionInvalidated, readerProcessFailed, failedToRemovePadding, notSupportedAlgorithm - public func getIdCardError() -> nfclib.IdCardError -} -public struct PinError : Swift.Error { +public enum IdCardInternalError : Swift::Error { + case missingRESTag, missingMACTag, invalidMACValue, failedReadingField(nfclib::CardField), hexConversionFailed, AESCBCError, sendCommandFailed(message: Swift::String), invalidResponse(message: Swift::String), swError(Swift::UInt16), pinVerificationFailed(codeType: nfclib::CodeType), remainingPinRetryCount(codeType: nfclib::CodeType, count: Swift::Int), invalidNewPin, notSupportedCodeType, dataPaddingError, invalidAPDU, authenticationFailed, canAuthenticationFailed, invalidTag, cardNotSupported, nfcNotSupported, connectionFailed, multipleTagsDetected, couldNotVerifyChipsMAC, cancelledByUser, sessionInvalidated, readerProcessFailed, failedToRemovePadding, notSupportedAlgorithm, operationInProgress, notActivated + public func getIdCardError() -> nfclib::IdCardError } public enum NFCLibLogging { - public static var isEnabled: Swift.Bool { + public static var isEnabled: Swift::Bool { get set } } -public struct CardInfo : Swift.Sendable, Swift.Hashable { - public var givenName: Swift.String - public var surname: Swift.String - public var personalCode: Swift.String - public var citizenship: Swift.String - public var documentNumber: Swift.String - public var dateOfExpiry: Swift.String - public init(givenName: Swift.String = "", surname: Swift.String = "", personalCode: Swift.String = "", citizenship: Swift.String = "", documentNumber: Swift.String = "", dateOfExpiry: Swift.String = "") - public var formattedDescription: Swift.String { +public struct CardInfo : Swift::Sendable, Swift::Hashable { + public var givenName: Swift::String + public var surname: Swift::String + public var personalCode: Swift::String + public var citizenship: Swift::String + public var documentNumber: Swift::String + public var dateOfExpiry: Swift::String + public var dateAndPlaceOfBirth: Swift::String + public init(givenName: Swift::String = "", surname: Swift::String = "", personalCode: Swift::String = "", citizenship: Swift::String = "", documentNumber: Swift::String = "", dateOfExpiry: Swift::String = "", dateAndPlaceOfBirth: Swift::String = "") + public var dateOfBirth: Foundation::Date? { + get + } + public static func dateOfBirth(fromPersonalCode personalCode: Swift::String) -> Foundation::Date? + public var formattedDescription: Swift::String { get } - public static func == (a: nfclib.CardInfo, b: nfclib.CardInfo) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::CardInfo, b: nfclib::CardInfo) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -public enum CardField : Swift.Int, Swift.Sendable { +public enum CardField : Swift::Int, Swift::Sendable { case surname, firstName, sex, citizenship, dateAndPlaceOfBirth, personalCode, documentNr, dateOfExpiry - public init?(rawValue: Swift.Int) - public typealias RawValue = Swift.Int - public var rawValue: Swift.Int { + public init?(rawValue: Swift::Int) + public typealias RawValue = Swift::Int + public var rawValue: Swift::Int { get } } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor final public class OperationReadPublicData : ObjectiveC.NSObject { - @_Concurrency.MainActor final public func startReading(CAN: Swift.String) async throws -> nfclib.CardInfo - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor final public class OperationReadPublicData : ObjectiveC::NSObject { + @_Concurrency::MainActor final public func startReading(CAN: Swift::String) async throws -> nfclib::CardInfo + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationReadPublicData : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor final public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor final public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor final public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationReadPublicData : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor final public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor final public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor final public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum CodeType : Swift.UInt, Swift.Sendable { +public enum CodeType : Swift::UInt, Swift::Sendable { case puk case pin1 case pin2 - public var name: Swift.String { + public var name: Swift::String { + get + } + public init?(rawValue: Swift::UInt) + public typealias RawValue = Swift::UInt + public var rawValue: Swift::UInt { + get + } +} +public enum CodeValidationFailure : Swift::Error, Swift::Sendable, Swift::Equatable { + case wrongLength(minimum: Swift::Int, maximum: Swift::Int) + case notNumeric + public static func == (a: nfclib::CodeValidationFailure, b: nfclib::CodeValidationFailure) -> Swift::Bool +} +extension nfclib::CodeType { + public var minimumLength: Swift::Int { + get + } + public var maximumLength: Swift::Int { get } - public init?(rawValue: Swift.UInt) - public typealias RawValue = Swift.UInt - public var rawValue: Swift.UInt { + public var validLength: Swift::ClosedRange { get } + public func validateFormat(_ code: [Swift::UInt8]) -> nfclib::CodeValidationFailure? } -public protocol CardCommands : Swift.Sendable { - var canChangePUK: Swift.Bool { get } - func readPublicData() async throws -> nfclib.CardInfo - func readAuthenticationCertificate() async throws -> Foundation.Data - func readSignatureCertificate() async throws -> Foundation.Data - func readCodeTryCounterRecord(_ type: nfclib.CodeType) async throws -> (retryCount: Swift.UInt8, pinActive: Swift.Bool) - func changeCode(_ type: nfclib.CodeType, to code: nfclib.SecureData, verifyCode: nfclib.SecureData) async throws - func verifyCode(_ type: nfclib.CodeType, code: nfclib.SecureData) async throws - func unblockCode(_ type: nfclib.CodeType, puk: nfclib.SecureData, newCode: nfclib.SecureData) async throws - func authenticate(for hash: Foundation.Data, withPin1 pin1: nfclib.SecureData) async throws -> Foundation.Data - func calculateSignature(for hash: Foundation.Data, withPin2 pin2: nfclib.SecureData) async throws -> Foundation.Data - func decryptData(_ hash: Foundation.Data, withPin1 pin1: nfclib.SecureData) async throws -> Foundation.Data +public protocol CardCommands : Swift::Sendable { + var canChangePUK: Swift::Bool { get } + func readPublicData() async throws -> nfclib::CardInfo + func readAuthenticationCertificate() async throws -> Foundation::Data + func readSignatureCertificate() async throws -> Foundation::Data + func readCodeTryCounterRecord(_ type: nfclib::CodeType) async throws -> (retryCount: Swift::UInt8, pinActive: Swift::Bool) + func changeCode(_ type: nfclib::CodeType, to code: nfclib::SecureData, verifyCode: nfclib::SecureData) async throws + func verifyCode(_ type: nfclib::CodeType, code: nfclib::SecureData) async throws + func unblockCode(_ type: nfclib::CodeType, puk: nfclib::SecureData, newCode: nfclib::SecureData) async throws + func authenticate(for hash: Foundation::Data, withPin1 pin1: nfclib::SecureData) async throws -> Foundation::Data + func calculateSignature(for hash: Foundation::Data, withPin2 pin2: nfclib::SecureData) async throws -> Foundation::Data + func decryptData(_ hash: Foundation::Data, withPin1 pin1: nfclib::SecureData) async throws -> Foundation::Data } -extension Foundation.DataProtocol where Self : Foundation.MutableDataProtocol, Self.Index == Swift.Int { +extension Foundation::DataProtocol where Self : Foundation::MutableDataProtocol, Self.Index == Swift::Int { public static func ^ (xVal: Self, yVal: Self) -> Self } -extension nfclib.OperationSignHash : Swift.Sendable {} -extension nfclib.AuthenticateWithWebEidError : Swift.Equatable {} -extension nfclib.AuthenticateWithWebEidError : Swift.Hashable {} -extension nfclib.OperationAuthenticateWithWebEID : Swift.Sendable {} -extension nfclib.CodeType : Swift.Equatable {} -extension nfclib.CodeType : Swift.Hashable {} -extension nfclib.CodeType : Swift.RawRepresentable {} -extension nfclib.ReadCertificateError : Swift.Equatable {} -extension nfclib.ReadCertificateError : Swift.Hashable {} -extension nfclib.CertificateUsage : Swift.Equatable {} -extension nfclib.CertificateUsage : Swift.Hashable {} -extension nfclib.OperationReadCertificate : Swift.Sendable {} -extension nfclib.UnblockPINError : Swift.Equatable {} -extension nfclib.UnblockPINError : Swift.Hashable {} -extension nfclib.OperationUnblockPin : Swift.Sendable {} -extension nfclib.NFCConnection : Swift.Sendable {} -extension nfclib.CardField : Swift.Equatable {} -extension nfclib.CardField : Swift.Hashable {} -extension nfclib.CardField : Swift.RawRepresentable {} -extension nfclib.OperationReadPublicData : Swift.Sendable {} +extension nfclib::OperationSignHash : Swift::Sendable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::Equatable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::Hashable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::RawRepresentable {} +extension nfclib::AuthenticateWithWebEidError : Swift::Equatable {} +extension nfclib::AuthenticateWithWebEidError : Swift::Hashable {} +extension nfclib::OperationAuthenticateWithWebEID : Swift::Sendable {} +extension nfclib::CodeType : Swift::Equatable {} +extension nfclib::CodeType : Swift::Hashable {} +extension nfclib::CodeType : Swift::RawRepresentable {} +extension nfclib::ReadCertificateError : Swift::Equatable {} +extension nfclib::ReadCertificateError : Swift::Hashable {} +extension nfclib::CertificateUsage : Swift::Equatable {} +extension nfclib::CertificateUsage : Swift::Hashable {} +extension nfclib::OperationReadCertificate : Swift::Sendable {} +extension nfclib::UnblockPINError : Swift::Equatable {} +extension nfclib::UnblockPINError : Swift::Hashable {} +extension nfclib::OperationUnblockPin : Swift::Sendable {} +extension nfclib::NFCConnection : Swift::Sendable {} +extension nfclib::CardField : Swift::Equatable {} +extension nfclib::CardField : Swift::Hashable {} +extension nfclib::CardField : Swift::RawRepresentable {} +extension nfclib::OperationReadPublicData : Swift::Sendable {} diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.abi.json b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.abi.json index 5f2505d33..c0e130b00 100644 --- a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.abi.json +++ b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.abi.json @@ -21,44 +21,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoKit", - "printedName": "CryptoKit", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "TypeDecl", "name": "OperationSignHash", @@ -449,14 +411,14 @@ "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" } ], "declKind": "Var", - "usr": "s:6nfclib10WebEidDataC9algorithmSSvp", - "mangledName": "$s6nfclib10WebEidDataC9algorithmSSvp", + "usr": "s:6nfclib10WebEidDataC9algorithmAA0bC18SignatureAlgorithmOvp", + "mangledName": "$s6nfclib10WebEidDataC9algorithmAA0bC18SignatureAlgorithmOvp", "moduleName": "nfclib", "declAttributes": [ "Final", @@ -473,14 +435,14 @@ "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" } ], "declKind": "Accessor", - "usr": "s:6nfclib10WebEidDataC9algorithmSSvg", - "mangledName": "$s6nfclib10WebEidDataC9algorithmSSvg", + "usr": "s:6nfclib10WebEidDataC9algorithmAA0bC18SignatureAlgorithmOvg", + "mangledName": "$s6nfclib10WebEidDataC9algorithmAA0bC18SignatureAlgorithmOvg", "moduleName": "nfclib", "implicit": true, "declAttributes": [ @@ -633,6 +595,257 @@ "RawDocComment" ] }, + { + "kind": "Import", + "name": "Security", + "printedName": "Security", + "declKind": "Import", + "moduleName": "nfclib" + }, + { + "kind": "TypeDecl", + "name": "WebEidSignatureAlgorithm", + "printedName": "WebEidSignatureAlgorithm", + "children": [ + { + "kind": "Var", + "name": "es256", + "printedName": "es256", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.WebEidSignatureAlgorithm.Type) -> nfclib.WebEidSignatureAlgorithm", + "children": [ + { + "kind": "TypeNominal", + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.WebEidSignatureAlgorithm.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO5es256yA2CmF", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO5es256yA2CmF", + "moduleName": "nfclib" + }, + { + "kind": "Var", + "name": "es384", + "printedName": "es384", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.WebEidSignatureAlgorithm.Type) -> nfclib.WebEidSignatureAlgorithm", + "children": [ + { + "kind": "TypeNominal", + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.WebEidSignatureAlgorithm.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO5es384yA2CmF", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO5es384yA2CmF", + "moduleName": "nfclib" + }, + { + "kind": "Constructor", + "name": "init", + "printedName": "init(rawValue:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "nfclib.WebEidSignatureAlgorithm?", + "children": [ + { + "kind": "TypeNominal", + "name": "WebEidSignatureAlgorithm", + "printedName": "nfclib.WebEidSignatureAlgorithm", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Constructor", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO8rawValueACSgSS_tcfc", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO8rawValueACSgSS_tcfc", + "moduleName": "nfclib", + "implicit": true, + "init_kind": "Designated" + }, + { + "kind": "Var", + "name": "rawValue", + "printedName": "rawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO8rawValueSSvp", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO8rawValueSSvp", + "moduleName": "nfclib", + "implicit": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO8rawValueSSvg", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO8rawValueSSvg", + "moduleName": "nfclib", + "implicit": true, + "accessorKind": "get" + } + ] + } + ], + "declKind": "Enum", + "usr": "s:6nfclib24WebEidSignatureAlgorithmO", + "mangledName": "$s6nfclib24WebEidSignatureAlgorithmO", + "moduleName": "nfclib", + "declAttributes": [ + "AccessControl" + ], + "enumRawTypeName": "String", + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Hashable", + "printedName": "Hashable", + "usr": "s:SH", + "mangledName": "$sSH" + }, + { + "kind": "Conformance", + "name": "RawRepresentable", + "printedName": "RawRepresentable", + "children": [ + { + "kind": "TypeWitness", + "name": "RawValue", + "printedName": "RawValue", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ] + } + ], + "usr": "s:SY", + "mangledName": "$sSY" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + }, + { + "kind": "Conformance", + "name": "SendableMetatype", + "printedName": "SendableMetatype", + "usr": "s:s16SendableMetatypeP", + "mangledName": "$ss16SendableMetatypeP" + } + ] + }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "nfclib", + "declAttributes": [ + "RawDocComment" + ] + }, + { + "kind": "Import", + "name": "Synchronization", + "printedName": "Synchronization", + "declKind": "Import", + "moduleName": "nfclib" + }, { "kind": "Import", "name": "Darwin", @@ -826,170 +1039,11 @@ }, { "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CoreNFC", - "printedName": "CoreNFC", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", + "name": "Security", + "printedName": "Security", "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Var", - "name": "rsaAlgorithmName", - "printedName": "rsaAlgorithmName", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:6nfclib16rsaAlgorithmNameSSvp", - "mangledName": "$s6nfclib16rsaAlgorithmNameSSvp", - "moduleName": "nfclib", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:6nfclib16rsaAlgorithmNameSSvg", - "mangledName": "$s6nfclib16rsaAlgorithmNameSSvg", - "moduleName": "nfclib", - "implicit": true, - "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "ecAlgorithmName", - "printedName": "ecAlgorithmName", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:6nfclib15ecAlgorithmNameSSvp", - "mangledName": "$s6nfclib15ecAlgorithmNameSSvp", - "moduleName": "nfclib", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:6nfclib15ecAlgorithmNameSSvg", - "mangledName": "$s6nfclib15ecAlgorithmNameSSvg", - "moduleName": "nfclib", - "implicit": true, - "accessorKind": "get" - } - ] - }, - { - "kind": "Var", - "name": "unknownAlgorithmName", - "printedName": "unknownAlgorithmName", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Var", - "usr": "s:6nfclib20unknownAlgorithmNameSSvp", - "mangledName": "$s6nfclib20unknownAlgorithmNameSSvp", - "moduleName": "nfclib", - "declAttributes": [ - "HasInitialValue", - "HasStorage", - "AccessControl" - ], - "isLet": true, - "hasStorage": true, - "accessors": [ - { - "kind": "Accessor", - "name": "Get", - "printedName": "Get()", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "declKind": "Accessor", - "usr": "s:6nfclib20unknownAlgorithmNameSSvg", - "mangledName": "$s6nfclib20unknownAlgorithmNameSSvg", - "moduleName": "nfclib", - "implicit": true, - "accessorKind": "get" - } - ] - }, { "kind": "Import", "name": "Foundation", @@ -1007,37 +1061,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "Import", "name": "Security", @@ -1045,16 +1068,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "X509", - "printedName": "X509", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, { "kind": "TypeDecl", "name": "AuthenticateWithWebEidError", @@ -1134,43 +1147,6 @@ "mangledName": "$s6nfclib27AuthenticateWithWebEidErrorO26failedToDetermineAlgorithmyA2CmF", "moduleName": "nfclib" }, - { - "kind": "Var", - "name": "failedToHashData", - "printedName": "failedToHashData", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(nfclib.AuthenticateWithWebEidError.Type) -> nfclib.AuthenticateWithWebEidError", - "children": [ - { - "kind": "TypeNominal", - "name": "AuthenticateWithWebEidError", - "printedName": "nfclib.AuthenticateWithWebEidError", - "usr": "s:6nfclib27AuthenticateWithWebEidErrorO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "nfclib.AuthenticateWithWebEidError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "AuthenticateWithWebEidError", - "printedName": "nfclib.AuthenticateWithWebEidError", - "usr": "s:6nfclib27AuthenticateWithWebEidErrorO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:6nfclib27AuthenticateWithWebEidErrorO16failedToHashDatayA2CmF", - "mangledName": "$s6nfclib27AuthenticateWithWebEidErrorO16failedToHashDatayA2CmF", - "moduleName": "nfclib" - }, { "kind": "Var", "name": "failedToMapAlgorithm", @@ -1581,56 +1557,6 @@ "isFromExtension": true, "funcSelfKind": "NonMutating" }, - { - "kind": "Function", - "name": "getAlgorithmNameTypeAndLength", - "printedName": "getAlgorithmNameTypeAndLength(from:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "(algorithm: Swift.String, keyLength: Swift.Int)?", - "children": [ - { - "kind": "TypeNominal", - "name": "Tuple", - "printedName": "(algorithm: Swift.String, keyLength: Swift.Int)", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ] - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "SecKey", - "printedName": "Security.SecKey", - "usr": "c:@T@SecKeyRef" - } - ], - "declKind": "Func", - "usr": "s:6nfclib31OperationAuthenticateWithWebEIDC29getAlgorithmNameTypeAndLength4fromSS9algorithm_Si03keyL0tSgSo9SecKeyRefa_tF", - "mangledName": "$s6nfclib31OperationAuthenticateWithWebEIDC29getAlgorithmNameTypeAndLength4fromSS9algorithm_Si03keyL0tSgSo9SecKeyRefa_tF", - "moduleName": "nfclib", - "declAttributes": [ - "Custom", - "AccessControl" - ], - "isFromExtension": true, - "funcSelfKind": "NonMutating" - }, { "kind": "Function", "name": "tagReaderSessionDidBecomeActive", @@ -1692,49 +1618,6 @@ ], "isFromExtension": true, "funcSelfKind": "NonMutating" - }, - { - "kind": "Function", - "name": "mapToAlgorithm", - "printedName": "mapToAlgorithm(algorithm:bitLength:)", - "children": [ - { - "kind": "TypeNominal", - "name": "Optional", - "printedName": "Swift.String?", - "children": [ - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - } - ], - "usr": "s:Sq" - }, - { - "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" - }, - { - "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Func", - "usr": "s:6nfclib31OperationAuthenticateWithWebEIDC14mapToAlgorithm9algorithm9bitLengthSSSgSS_SitF", - "mangledName": "$s6nfclib31OperationAuthenticateWithWebEIDC14mapToAlgorithm9algorithm9bitLengthSSSgSS_SitF", - "moduleName": "nfclib", - "declAttributes": [ - "Custom", - "AccessControl" - ], - "isFromExtension": true, - "funcSelfKind": "NonMutating" } ], "declKind": "Class", @@ -1831,48 +1714,20 @@ ] }, { - "kind": "TypeDecl", - "name": "SignatureAlgorithmInfo", - "printedName": "SignatureAlgorithmInfo", - "declKind": "Struct", - "usr": "s:6nfclib22SignatureAlgorithmInfoV", - "mangledName": "$s6nfclib22SignatureAlgorithmInfoV", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - } - ] - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "RawDocComment" - ] - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", + "kind": "Import", + "name": "CryptoTokenKit", + "printedName": "CryptoTokenKit", + "declKind": "Import", + "moduleName": "nfclib", + "declAttributes": [ + "RawDocComment" + ] + }, + { + "kind": "Import", + "name": "SwiftECC", + "printedName": "SwiftECC", + "declKind": "Import", "moduleName": "nfclib", "declAttributes": [ "AccessControl" @@ -1924,7 +1779,10 @@ "name": "BigInt", "printedName": "BigInt", "declKind": "Import", - "moduleName": "nfclib" + "moduleName": "nfclib", + "declAttributes": [ + "AccessControl" + ] }, { "kind": "Import", @@ -1963,37 +1821,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "Import", "name": "Security", @@ -2756,21 +2583,14 @@ }, { "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", + "name": "Foundation", + "printedName": "Foundation", "declKind": "Import", "moduleName": "nfclib", "declAttributes": [ "RawDocComment" ] }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "Import", "name": "SwiftECC", @@ -2783,8 +2603,8 @@ }, { "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", + "name": "Foundation", + "printedName": "Foundation", "declKind": "Import", "moduleName": "nfclib", "declAttributes": [ @@ -2835,44 +2655,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "Security", - "printedName": "Security", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "TypeDecl", "name": "UnblockPINError", @@ -2915,43 +2697,6 @@ "mangledName": "$s6nfclib15UnblockPINErrorO24missingRequiredParameteryA2CmF", "moduleName": "nfclib" }, - { - "kind": "Var", - "name": "failed", - "printedName": "failed", - "children": [ - { - "kind": "TypeFunc", - "name": "Function", - "printedName": "(nfclib.UnblockPINError.Type) -> nfclib.UnblockPINError", - "children": [ - { - "kind": "TypeNominal", - "name": "UnblockPINError", - "printedName": "nfclib.UnblockPINError", - "usr": "s:6nfclib15UnblockPINErrorO" - }, - { - "kind": "TypeNominal", - "name": "Metatype", - "printedName": "nfclib.UnblockPINError.Type", - "children": [ - { - "kind": "TypeNominal", - "name": "UnblockPINError", - "printedName": "nfclib.UnblockPINError", - "usr": "s:6nfclib15UnblockPINErrorO" - } - ] - } - ] - } - ], - "declKind": "EnumElement", - "usr": "s:6nfclib15UnblockPINErrorO6failedyA2CmF", - "mangledName": "$s6nfclib15UnblockPINErrorO6failedyA2CmF", - "moduleName": "nfclib" - }, { "kind": "Var", "name": "general", @@ -3442,20 +3187,6 @@ "Preconcurrency" ] }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "TypeDecl", "name": "NFCConnection", @@ -3617,16 +3348,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, { "kind": "Import", "name": "Foundation", @@ -3644,6 +3365,16 @@ "declKind": "Import", "moduleName": "nfclib" }, + { + "kind": "Import", + "name": "CoreNFC", + "printedName": "CoreNFC", + "declKind": "Import", + "moduleName": "nfclib", + "declAttributes": [ + "RawDocComment" + ] + }, { "kind": "TypeDecl", "name": "IdCardError", @@ -3694,12 +3425,12 @@ { "kind": "TypeFunc", "name": "Function", - "printedName": "(nfclib.IdCardError.Type) -> (Swift.Int) -> nfclib.IdCardError", + "printedName": "(nfclib.IdCardError.Type) -> (nfclib.CodeType, Swift.Int) -> nfclib.IdCardError", "children": [ { "kind": "TypeFunc", "name": "Function", - "printedName": "(Swift.Int) -> nfclib.IdCardError", + "printedName": "(nfclib.CodeType, Swift.Int) -> nfclib.IdCardError", "children": [ { "kind": "TypeNominal", @@ -3710,8 +3441,14 @@ { "kind": "TypeNominal", "name": "Tuple", - "printedName": "(triesLeft: Swift.Int)", + "printedName": "(codeType: nfclib.CodeType, triesLeft: Swift.Int)", "children": [ + { + "kind": "TypeNominal", + "name": "CodeType", + "printedName": "nfclib.CodeType", + "usr": "s:6nfclib8CodeTypeO" + }, { "kind": "TypeNominal", "name": "Int", @@ -3739,8 +3476,8 @@ } ], "declKind": "EnumElement", - "usr": "s:6nfclib11IdCardErrorO8wrongPINyACSi_tcACmF", - "mangledName": "$s6nfclib11IdCardErrorO8wrongPINyACSi_tcACmF", + "usr": "s:6nfclib11IdCardErrorO8wrongPINyAcA8CodeTypeO_SitcACmF", + "mangledName": "$s6nfclib11IdCardErrorO8wrongPINyAcA8CodeTypeO_SitcACmF", "moduleName": "nfclib" }, { @@ -3816,6 +3553,43 @@ "usr": "s:6nfclib11IdCardErrorO07sessionD0yA2CmF", "mangledName": "$s6nfclib11IdCardErrorO07sessionD0yA2CmF", "moduleName": "nfclib" + }, + { + "kind": "Var", + "name": "notActivated", + "printedName": "notActivated", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.IdCardError.Type) -> nfclib.IdCardError", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardError", + "printedName": "nfclib.IdCardError", + "usr": "s:6nfclib11IdCardErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.IdCardError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardError", + "printedName": "nfclib.IdCardError", + "usr": "s:6nfclib11IdCardErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib11IdCardErrorO12notActivatedyA2CmF", + "mangledName": "$s6nfclib11IdCardErrorO12notActivatedyA2CmF", + "moduleName": "nfclib" } ], "declKind": "Enum", @@ -3823,8 +3597,7 @@ "mangledName": "$s6nfclib11IdCardErrorO", "moduleName": "nfclib", "declAttributes": [ - "AccessControl", - "RawDocComment" + "AccessControl" ], "conformances": [ { @@ -4276,13 +4049,33 @@ { "kind": "TypeFunc", "name": "Function", - "printedName": "(nfclib.IdCardInternalError.Type) -> nfclib.IdCardInternalError", + "printedName": "(nfclib.IdCardInternalError.Type) -> (nfclib.CodeType) -> nfclib.IdCardInternalError", "children": [ { - "kind": "TypeNominal", - "name": "IdCardInternalError", - "printedName": "nfclib.IdCardInternalError", - "usr": "s:6nfclib19IdCardInternalErrorO" + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.CodeType) -> nfclib.IdCardInternalError", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardInternalError", + "printedName": "nfclib.IdCardInternalError", + "usr": "s:6nfclib19IdCardInternalErrorO" + }, + { + "kind": "TypeNominal", + "name": "Tuple", + "printedName": "(codeType: nfclib.CodeType)", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeType", + "printedName": "nfclib.CodeType", + "usr": "s:6nfclib8CodeTypeO" + } + ] + } + ] }, { "kind": "TypeNominal", @@ -4301,8 +4094,8 @@ } ], "declKind": "EnumElement", - "usr": "s:6nfclib19IdCardInternalErrorO21pinVerificationFailedyA2CmF", - "mangledName": "$s6nfclib19IdCardInternalErrorO21pinVerificationFailedyA2CmF", + "usr": "s:6nfclib19IdCardInternalErrorO21pinVerificationFailedyAcA8CodeTypeO_tcACmF", + "mangledName": "$s6nfclib19IdCardInternalErrorO21pinVerificationFailedyAcA8CodeTypeO_tcACmF", "moduleName": "nfclib" }, { @@ -4313,12 +4106,12 @@ { "kind": "TypeFunc", "name": "Function", - "printedName": "(nfclib.IdCardInternalError.Type) -> (Swift.Int) -> nfclib.IdCardInternalError", + "printedName": "(nfclib.IdCardInternalError.Type) -> (nfclib.CodeType, Swift.Int) -> nfclib.IdCardInternalError", "children": [ { "kind": "TypeFunc", "name": "Function", - "printedName": "(Swift.Int) -> nfclib.IdCardInternalError", + "printedName": "(nfclib.CodeType, Swift.Int) -> nfclib.IdCardInternalError", "children": [ { "kind": "TypeNominal", @@ -4328,9 +4121,22 @@ }, { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" + "name": "Tuple", + "printedName": "(codeType: nfclib.CodeType, count: Swift.Int)", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeType", + "printedName": "nfclib.CodeType", + "usr": "s:6nfclib8CodeTypeO" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ] } ] }, @@ -4351,8 +4157,8 @@ } ], "declKind": "EnumElement", - "usr": "s:6nfclib19IdCardInternalErrorO22remainingPinRetryCountyACSicACmF", - "mangledName": "$s6nfclib19IdCardInternalErrorO22remainingPinRetryCountyACSicACmF", + "usr": "s:6nfclib19IdCardInternalErrorO22remainingPinRetryCountyAcA8CodeTypeO_SitcACmF", + "mangledName": "$s6nfclib19IdCardInternalErrorO22remainingPinRetryCountyAcA8CodeTypeO_SitcACmF", "moduleName": "nfclib" }, { @@ -4984,6 +4790,80 @@ "mangledName": "$s6nfclib19IdCardInternalErrorO21notSupportedAlgorithmyA2CmF", "moduleName": "nfclib" }, + { + "kind": "Var", + "name": "operationInProgress", + "printedName": "operationInProgress", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.IdCardInternalError.Type) -> nfclib.IdCardInternalError", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardInternalError", + "printedName": "nfclib.IdCardInternalError", + "usr": "s:6nfclib19IdCardInternalErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.IdCardInternalError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardInternalError", + "printedName": "nfclib.IdCardInternalError", + "usr": "s:6nfclib19IdCardInternalErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib19IdCardInternalErrorO19operationInProgressyA2CmF", + "mangledName": "$s6nfclib19IdCardInternalErrorO19operationInProgressyA2CmF", + "moduleName": "nfclib" + }, + { + "kind": "Var", + "name": "notActivated", + "printedName": "notActivated", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.IdCardInternalError.Type) -> nfclib.IdCardInternalError", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardInternalError", + "printedName": "nfclib.IdCardInternalError", + "usr": "s:6nfclib19IdCardInternalErrorO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.IdCardInternalError.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "IdCardInternalError", + "printedName": "nfclib.IdCardInternalError", + "usr": "s:6nfclib19IdCardInternalErrorO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib19IdCardInternalErrorO12notActivatedyA2CmF", + "mangledName": "$s6nfclib19IdCardInternalErrorO12notActivatedyA2CmF", + "moduleName": "nfclib" + }, { "kind": "Function", "name": "getIdCardError", @@ -5051,55 +4931,6 @@ } ] }, - { - "kind": "TypeDecl", - "name": "PinError", - "printedName": "PinError", - "declKind": "Struct", - "usr": "s:6nfclib8PinErrorV", - "mangledName": "$s6nfclib8PinErrorV", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ], - "conformances": [ - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "Error", - "printedName": "Error", - "usr": "s:s5ErrorP", - "mangledName": "$ss5ErrorP" - }, - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "Sendable", - "printedName": "Sendable", - "usr": "s:s8SendableP", - "mangledName": "$ss8SendableP" - }, - { - "kind": "Conformance", - "name": "SendableMetatype", - "printedName": "SendableMetatype", - "usr": "s:s16SendableMetatypeP", - "mangledName": "$ss16SendableMetatypeP" - } - ] - }, { "kind": "Import", "name": "os", @@ -5225,6 +5056,16 @@ } ] }, + { + "kind": "Import", + "name": "Foundation", + "printedName": "Foundation", + "declKind": "Import", + "moduleName": "nfclib", + "declAttributes": [ + "RawDocComment" + ] + }, { "kind": "TypeDecl", "name": "CardInfo", @@ -5740,10 +5581,95 @@ } ] }, + { + "kind": "Var", + "name": "dateAndPlaceOfBirth", + "printedName": "dateAndPlaceOfBirth", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CardInfoV19dateAndPlaceOfBirthSSvp", + "mangledName": "$s6nfclib8CardInfoV19dateAndPlaceOfBirthSSvp", + "moduleName": "nfclib", + "declAttributes": [ + "HasStorage", + "AccessControl" + ], + "hasStorage": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CardInfoV19dateAndPlaceOfBirthSSvg", + "mangledName": "$s6nfclib8CardInfoV19dateAndPlaceOfBirthSSvg", + "moduleName": "nfclib", + "implicit": true, + "accessorKind": "get" + }, + { + "kind": "Accessor", + "name": "Set", + "printedName": "Set()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CardInfoV19dateAndPlaceOfBirthSSvs", + "mangledName": "$s6nfclib8CardInfoV19dateAndPlaceOfBirthSSvs", + "moduleName": "nfclib", + "implicit": true, + "accessorKind": "set" + }, + { + "kind": "Accessor", + "name": "Modify", + "printedName": "Modify()", + "children": [ + { + "kind": "TypeNominal", + "name": "Void", + "printedName": "()" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CardInfoV19dateAndPlaceOfBirthSSvM", + "mangledName": "$s6nfclib8CardInfoV19dateAndPlaceOfBirthSSvM", + "moduleName": "nfclib", + "implicit": true, + "accessorKind": "_modify" + } + ] + }, { "kind": "Constructor", "name": "init", - "printedName": "init(givenName:surname:personalCode:citizenship:documentNumber:dateOfExpiry:)", + "printedName": "init(givenName:surname:personalCode:citizenship:documentNumber:dateOfExpiry:dateAndPlaceOfBirth:)", "children": [ { "kind": "TypeNominal", @@ -5786,6 +5712,13 @@ "hasDefaultArg": true, "usr": "s:SS" }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "hasDefaultArg": true, + "usr": "s:SS" + }, { "kind": "TypeNominal", "name": "String", @@ -5795,8 +5728,8 @@ } ], "declKind": "Constructor", - "usr": "s:6nfclib8CardInfoV9givenName7surname12personalCode11citizenship14documentNumber12dateOfExpiryACSS_S5Stcfc", - "mangledName": "$s6nfclib8CardInfoV9givenName7surname12personalCode11citizenship14documentNumber12dateOfExpiryACSS_S5Stcfc", + "usr": "s:6nfclib8CardInfoV9givenName7surname12personalCode11citizenship14documentNumber12dateOfExpiry0l8AndPlaceM5BirthACSS_S6Stcfc", + "mangledName": "$s6nfclib8CardInfoV9givenName7surname12personalCode11citizenship14documentNumber12dateOfExpiry0l8AndPlaceM5BirthACSS_S6Stcfc", "moduleName": "nfclib", "declAttributes": [ "AccessControl" @@ -5805,19 +5738,27 @@ }, { "kind": "Var", - "name": "formattedDescription", - "printedName": "formattedDescription", + "name": "dateOfBirth", + "printedName": "dateOfBirth", "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Foundation.Date?", + "children": [ + { + "kind": "TypeNominal", + "name": "Date", + "printedName": "Foundation.Date", + "usr": "s:10Foundation4DateV" + } + ], + "usr": "s:Sq" } ], "declKind": "Var", - "usr": "s:6nfclib8CardInfoV20formattedDescriptionSSvp", - "mangledName": "$s6nfclib8CardInfoV20formattedDescriptionSSvp", + "usr": "s:6nfclib8CardInfoV11dateOfBirth10Foundation4DateVSgvp", + "mangledName": "$s6nfclib8CardInfoV11dateOfBirth10Foundation4DateVSgvp", "moduleName": "nfclib", "declAttributes": [ "AccessControl" @@ -5830,38 +5771,122 @@ "children": [ { "kind": "TypeNominal", - "name": "String", - "printedName": "Swift.String", - "usr": "s:SS" + "name": "Optional", + "printedName": "Foundation.Date?", + "children": [ + { + "kind": "TypeNominal", + "name": "Date", + "printedName": "Foundation.Date", + "usr": "s:10Foundation4DateV" + } + ], + "usr": "s:Sq" } ], "declKind": "Accessor", - "usr": "s:6nfclib8CardInfoV20formattedDescriptionSSvg", - "mangledName": "$s6nfclib8CardInfoV20formattedDescriptionSSvg", + "usr": "s:6nfclib8CardInfoV11dateOfBirth10Foundation4DateVSgvg", + "mangledName": "$s6nfclib8CardInfoV11dateOfBirth10Foundation4DateVSgvg", "moduleName": "nfclib", "accessorKind": "get" } ] }, { - "kind": "Var", - "name": "hashValue", - "printedName": "hashValue", + "kind": "Function", + "name": "dateOfBirth", + "printedName": "dateOfBirth(fromPersonalCode:)", "children": [ { "kind": "TypeNominal", - "name": "Int", - "printedName": "Swift.Int", - "usr": "s:Si" - } - ], - "declKind": "Var", - "usr": "s:6nfclib8CardInfoV9hashValueSivp", - "mangledName": "$s6nfclib8CardInfoV9hashValueSivp", - "moduleName": "nfclib", - "implicit": true, - "accessors": [ - { + "name": "Optional", + "printedName": "Foundation.Date?", + "children": [ + { + "kind": "TypeNominal", + "name": "Date", + "printedName": "Foundation.Date", + "usr": "s:10Foundation4DateV" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Func", + "usr": "s:6nfclib8CardInfoV11dateOfBirth16fromPersonalCode10Foundation4DateVSgSS_tFZ", + "mangledName": "$s6nfclib8CardInfoV11dateOfBirth16fromPersonalCode10Foundation4DateVSgSS_tFZ", + "moduleName": "nfclib", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "funcSelfKind": "NonMutating" + }, + { + "kind": "Var", + "name": "formattedDescription", + "printedName": "formattedDescription", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CardInfoV20formattedDescriptionSSvp", + "mangledName": "$s6nfclib8CardInfoV20formattedDescriptionSSvp", + "moduleName": "nfclib", + "declAttributes": [ + "AccessControl" + ], + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "String", + "printedName": "Swift.String", + "usr": "s:SS" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CardInfoV20formattedDescriptionSSvg", + "mangledName": "$s6nfclib8CardInfoV20formattedDescriptionSSvg", + "moduleName": "nfclib", + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "hashValue", + "printedName": "hashValue", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CardInfoV9hashValueSivp", + "mangledName": "$s6nfclib8CardInfoV9hashValueSivp", + "moduleName": "nfclib", + "implicit": true, + "accessors": [ + { "kind": "Accessor", "name": "Get", "printedName": "Get()", @@ -5945,8 +5970,7 @@ "mangledName": "$s6nfclib8CardInfoV", "moduleName": "nfclib", "declAttributes": [ - "AccessControl", - "RawDocComment" + "AccessControl" ], "conformances": [ { @@ -6459,37 +6483,6 @@ "declKind": "Import", "moduleName": "nfclib" }, - { - "kind": "Import", - "name": "CommonCrypto", - "printedName": "CommonCrypto", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "CryptoTokenKit", - "printedName": "CryptoTokenKit", - "declKind": "Import", - "moduleName": "nfclib" - }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "Import", - "name": "BigInt", - "printedName": "BigInt", - "declKind": "Import", - "moduleName": "nfclib" - }, { "kind": "TypeDecl", "name": "OperationReadPublicData", @@ -7002,6 +6995,180 @@ "accessorKind": "get" } ] + }, + { + "kind": "Var", + "name": "minimumLength", + "printedName": "minimumLength", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CodeTypeO13minimumLengthSivp", + "mangledName": "$s6nfclib8CodeTypeO13minimumLengthSivp", + "moduleName": "nfclib", + "isFromExtension": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CodeTypeO13minimumLengthSivg", + "mangledName": "$s6nfclib8CodeTypeO13minimumLengthSivg", + "moduleName": "nfclib", + "isFromExtension": true, + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "maximumLength", + "printedName": "maximumLength", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CodeTypeO13maximumLengthSivp", + "mangledName": "$s6nfclib8CodeTypeO13maximumLengthSivp", + "moduleName": "nfclib", + "isFromExtension": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CodeTypeO13maximumLengthSivg", + "mangledName": "$s6nfclib8CodeTypeO13maximumLengthSivg", + "moduleName": "nfclib", + "isFromExtension": true, + "accessorKind": "get" + } + ] + }, + { + "kind": "Var", + "name": "validLength", + "printedName": "validLength", + "children": [ + { + "kind": "TypeNominal", + "name": "ClosedRange", + "printedName": "Swift.ClosedRange", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "usr": "s:SN" + } + ], + "declKind": "Var", + "usr": "s:6nfclib8CodeTypeO11validLengthSNySiGvp", + "mangledName": "$s6nfclib8CodeTypeO11validLengthSNySiGvp", + "moduleName": "nfclib", + "isFromExtension": true, + "accessors": [ + { + "kind": "Accessor", + "name": "Get", + "printedName": "Get()", + "children": [ + { + "kind": "TypeNominal", + "name": "ClosedRange", + "printedName": "Swift.ClosedRange", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ], + "usr": "s:SN" + } + ], + "declKind": "Accessor", + "usr": "s:6nfclib8CodeTypeO11validLengthSNySiGvg", + "mangledName": "$s6nfclib8CodeTypeO11validLengthSNySiGvg", + "moduleName": "nfclib", + "isFromExtension": true, + "accessorKind": "get" + } + ] + }, + { + "kind": "Function", + "name": "validateFormat", + "printedName": "validateFormat(_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Optional", + "printedName": "nfclib.CodeValidationFailure?", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + } + ], + "usr": "s:Sq" + }, + { + "kind": "TypeNominal", + "name": "Array", + "printedName": "[Swift.UInt8]", + "children": [ + { + "kind": "TypeNominal", + "name": "UInt8", + "printedName": "Swift.UInt8", + "usr": "s:s5UInt8V" + } + ], + "usr": "s:Sa" + } + ], + "declKind": "Func", + "usr": "s:6nfclib8CodeTypeO14validateFormatyAA0B17ValidationFailureOSgSays5UInt8VGF", + "mangledName": "$s6nfclib8CodeTypeO14validateFormatyAA0B17ValidationFailureOSgSays5UInt8VGF", + "moduleName": "nfclib", + "isFromExtension": true, + "funcSelfKind": "NonMutating" } ], "declKind": "Enum", @@ -7079,6 +7246,196 @@ } ] }, + { + "kind": "TypeDecl", + "name": "CodeValidationFailure", + "printedName": "CodeValidationFailure", + "children": [ + { + "kind": "Var", + "name": "wrongLength", + "printedName": "wrongLength", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.CodeValidationFailure.Type) -> (Swift.Int, Swift.Int) -> nfclib.CodeValidationFailure", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(Swift.Int, Swift.Int) -> nfclib.CodeValidationFailure", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + }, + { + "kind": "TypeNominal", + "name": "Tuple", + "printedName": "(minimum: Swift.Int, maximum: Swift.Int)", + "children": [ + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + }, + { + "kind": "TypeNominal", + "name": "Int", + "printedName": "Swift.Int", + "usr": "s:Si" + } + ] + } + ] + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.CodeValidationFailure.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib21CodeValidationFailureO11wrongLengthyACSi_SitcACmF", + "mangledName": "$s6nfclib21CodeValidationFailureO11wrongLengthyACSi_SitcACmF", + "moduleName": "nfclib" + }, + { + "kind": "Var", + "name": "notNumeric", + "printedName": "notNumeric", + "children": [ + { + "kind": "TypeFunc", + "name": "Function", + "printedName": "(nfclib.CodeValidationFailure.Type) -> nfclib.CodeValidationFailure", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + }, + { + "kind": "TypeNominal", + "name": "Metatype", + "printedName": "nfclib.CodeValidationFailure.Type", + "children": [ + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + } + ] + } + ] + } + ], + "declKind": "EnumElement", + "usr": "s:6nfclib21CodeValidationFailureO10notNumericyA2CmF", + "mangledName": "$s6nfclib21CodeValidationFailureO10notNumericyA2CmF", + "moduleName": "nfclib" + }, + { + "kind": "Function", + "name": "==", + "printedName": "==(_:_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "Bool", + "printedName": "Swift.Bool", + "usr": "s:Sb" + }, + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + }, + { + "kind": "TypeNominal", + "name": "CodeValidationFailure", + "printedName": "nfclib.CodeValidationFailure", + "usr": "s:6nfclib21CodeValidationFailureO" + } + ], + "declKind": "Func", + "usr": "s:6nfclib21CodeValidationFailureO2eeoiySbAC_ACtFZ", + "mangledName": "$s6nfclib21CodeValidationFailureO2eeoiySbAC_ACtFZ", + "moduleName": "nfclib", + "static": true, + "implicit": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Enum", + "usr": "s:6nfclib21CodeValidationFailureO", + "mangledName": "$s6nfclib21CodeValidationFailureO", + "moduleName": "nfclib", + "declAttributes": [ + "AccessControl" + ], + "conformances": [ + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "Error", + "printedName": "Error", + "usr": "s:s5ErrorP", + "mangledName": "$ss5ErrorP" + }, + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Sendable", + "printedName": "Sendable", + "usr": "s:s8SendableP", + "mangledName": "$ss8SendableP" + }, + { + "kind": "Conformance", + "name": "Equatable", + "printedName": "Equatable", + "usr": "s:SQ", + "mangledName": "$sSQ" + }, + { + "kind": "Conformance", + "name": "SendableMetatype", + "printedName": "SendableMetatype", + "usr": "s:s16SendableMetatypeP", + "mangledName": "$ss16SendableMetatypeP" + } + ] + }, { "kind": "TypeDecl", "name": "CardCommands", @@ -7538,118 +7895,6 @@ "RawDocComment" ] }, - { - "kind": "Import", - "name": "SwiftECC", - "printedName": "SwiftECC", - "declKind": "Import", - "moduleName": "nfclib", - "declAttributes": [ - "AccessControl" - ] - }, - { - "kind": "TypeDecl", - "name": "DataProtocol", - "printedName": "DataProtocol", - "children": [ - { - "kind": "Function", - "name": "^", - "printedName": "^(_:_:)", - "children": [ - { - "kind": "TypeNominal", - "name": "GenericTypeParam", - "printedName": "τ_0_0" - }, - { - "kind": "TypeNominal", - "name": "GenericTypeParam", - "printedName": "τ_0_0" - }, - { - "kind": "TypeNominal", - "name": "GenericTypeParam", - "printedName": "τ_0_0" - } - ], - "declKind": "Func", - "usr": "s:10Foundation12DataProtocolP6nfclibAA07MutablebC0RzSi5IndexRtzrlE1xoiyxx_xtFZ", - "mangledName": "$s10Foundation12DataProtocolP6nfclibAA07MutablebC0RzSi5IndexRtzrlE1xoiyxx_xtFZ", - "moduleName": "nfclib", - "genericSig": "<τ_0_0 where τ_0_0 : Foundation.MutableDataProtocol, τ_0_0.Index == Swift.Int>", - "sugared_genericSig": "", - "static": true, - "declAttributes": [ - "AccessControl" - ], - "isFromExtension": true, - "funcSelfKind": "NonMutating" - } - ], - "declKind": "Protocol", - "usr": "s:10Foundation12DataProtocolP", - "mangledName": "$s10Foundation12DataProtocolP", - "moduleName": "Foundation", - "genericSig": "<τ_0_0 : Swift.RandomAccessCollection, τ_0_0.Element == Swift.UInt8, τ_0_0.Regions : Swift.BidirectionalCollection, τ_0_0.SubSequence : Foundation.DataProtocol, τ_0_0.Regions.Element : Foundation.ContiguousBytes, τ_0_0.Regions.Element : Foundation.DataProtocol, τ_0_0.Regions.Element.SubSequence : Foundation.ContiguousBytes>", - "sugared_genericSig": "", - "intro_Macosx": "10.10", - "intro_iOS": "8.0", - "intro_tvOS": "9.0", - "intro_watchOS": "2.0", - "declAttributes": [ - "Available", - "Available", - "Available", - "Available" - ], - "isExternal": true, - "conformances": [ - { - "kind": "Conformance", - "name": "Escapable", - "printedName": "Escapable", - "usr": "s:s9EscapableP", - "mangledName": "$ss9EscapableP" - }, - { - "kind": "Conformance", - "name": "Copyable", - "printedName": "Copyable", - "usr": "s:s8CopyableP", - "mangledName": "$ss8CopyableP" - }, - { - "kind": "Conformance", - "name": "RandomAccessCollection", - "printedName": "RandomAccessCollection", - "usr": "s:Sk", - "mangledName": "$sSk" - }, - { - "kind": "Conformance", - "name": "BidirectionalCollection", - "printedName": "BidirectionalCollection", - "usr": "s:SK", - "mangledName": "$sSK" - }, - { - "kind": "Conformance", - "name": "Collection", - "printedName": "Collection", - "usr": "s:Sl", - "mangledName": "$sSl" - }, - { - "kind": "Conformance", - "name": "Sequence", - "printedName": "Sequence", - "usr": "s:ST", - "mangledName": "$sST" - } - ] - }, { "kind": "TypeDecl", "name": "NFCTagReaderSession", @@ -7796,512 +8041,593 @@ "mangledName": "$ss16SendableMetatypeP" } ] + }, + { + "kind": "TypeDecl", + "name": "DataProtocol", + "printedName": "DataProtocol", + "children": [ + { + "kind": "Function", + "name": "^", + "printedName": "^(_:_:)", + "children": [ + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + }, + { + "kind": "TypeNominal", + "name": "GenericTypeParam", + "printedName": "τ_0_0" + } + ], + "declKind": "Func", + "usr": "s:10Foundation12DataProtocolP6nfclibAA07MutablebC0RzSi5IndexRtzrlE1xoiyxx_xtFZ", + "mangledName": "$s10Foundation12DataProtocolP6nfclibAA07MutablebC0RzSi5IndexRtzrlE1xoiyxx_xtFZ", + "moduleName": "nfclib", + "genericSig": "<τ_0_0 where τ_0_0 : Foundation.MutableDataProtocol, τ_0_0.Index == Swift.Int>", + "sugared_genericSig": "", + "static": true, + "declAttributes": [ + "AccessControl" + ], + "isFromExtension": true, + "funcSelfKind": "NonMutating" + } + ], + "declKind": "Protocol", + "usr": "s:10Foundation12DataProtocolP", + "mangledName": "$s10Foundation12DataProtocolP", + "moduleName": "Foundation", + "genericSig": "<τ_0_0 : Swift.RandomAccessCollection, τ_0_0.Element == Swift.UInt8, τ_0_0.Regions : Swift.BidirectionalCollection, τ_0_0.SubSequence : Foundation.DataProtocol, τ_0_0.Regions.Element : Foundation.ContiguousBytes, τ_0_0.Regions.Element : Foundation.DataProtocol, τ_0_0.Regions.Element.SubSequence : Foundation.ContiguousBytes>", + "sugared_genericSig": "", + "intro_Macosx": "10.10", + "intro_iOS": "8.0", + "intro_tvOS": "9.0", + "intro_watchOS": "2.0", + "declAttributes": [ + "Available", + "Available", + "Available", + "Available" + ], + "isExternal": true, + "conformances": [ + { + "kind": "Conformance", + "name": "Escapable", + "printedName": "Escapable", + "usr": "s:s9EscapableP", + "mangledName": "$ss9EscapableP" + }, + { + "kind": "Conformance", + "name": "Copyable", + "printedName": "Copyable", + "usr": "s:s8CopyableP", + "mangledName": "$ss8CopyableP" + }, + { + "kind": "Conformance", + "name": "RandomAccessCollection", + "printedName": "RandomAccessCollection", + "usr": "s:Sk", + "mangledName": "$sSk" + }, + { + "kind": "Conformance", + "name": "BidirectionalCollection", + "printedName": "BidirectionalCollection", + "usr": "s:SK", + "mangledName": "$sSK" + }, + { + "kind": "Conformance", + "name": "Collection", + "printedName": "Collection", + "usr": "s:Sl", + "mangledName": "$sSl" + }, + { + "kind": "Conformance", + "name": "Sequence", + "printedName": "Sequence", + "usr": "s:ST", + "mangledName": "$sST" + } + ] } ], "json_format_version": 8 }, "ConstValues": [ { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", "kind": "StringLiteral", - "offset": 1066, + "offset": 276, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", "kind": "Array", - "offset": 1114, + "offset": 324, "length": 6, "value": "[0x00]" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationSignHash.swift", "kind": "StringLiteral", - "offset": 1193, + "offset": 403, "length": 52, "value": "\"Please place your ID card against the smart device\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/Utilities.swift", - "kind": "StringLiteral", - "offset": 927, - "length": 5, - "value": "\"RSA\"" - }, - { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/Utilities.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/WebEID\/WebEidSignatureAlgorithm.swift", "kind": "StringLiteral", - "offset": 962, - "length": 4, - "value": "\"EC\"" + "offset": 221, + "length": 7, + "value": "\"ES256\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/Utilities.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/WebEID\/WebEidSignatureAlgorithm.swift", "kind": "StringLiteral", - "offset": 1001, - "length": 9, - "value": "\"Unknown\"" + "offset": 246, + "length": 7, + "value": "\"ES384\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "StringLiteral", - "offset": 1019, + "offset": 326, "length": 20, "value": "\"ee.ria.nfc-iOS-lib\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "StringLiteral", - "offset": 1051, + "offset": 358, "length": 15, "value": "\"CardReaderNFC\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 1175, + "offset": 482, "length": 1, "value": "1" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 1238, + "offset": 545, "length": 1, "value": "2" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "StringLiteral", - "offset": 1555, + "offset": 862, "length": 22, "value": "\"04007f00070202040204\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "StringLiteral", - "offset": 1653, + "offset": 960, "length": 22, "value": "\"04007f00070202040404\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 1935, + "offset": 1242, "length": 2, "value": "12" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 1961, + "offset": 1268, "length": 2, "value": "13" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 1987, + "offset": 1294, "length": 2, "value": "15" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 2013, + "offset": 1320, "length": 2, "value": "16" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 2039, + "offset": 1346, "length": 2, "value": "17" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReaderNFC.swift", "kind": "IntegerLiteral", - "offset": 2065, + "offset": 1372, "length": 2, "value": "18" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "StringLiteral", - "offset": 852, + "offset": 160, "length": 67, "value": "\"3B DB 96 00 80 B1 FE 45 1F 83 00 12 23 3F 53 65 49 44 0F 90 00 F1\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "StringLiteral", - "offset": 952, + "offset": 260, "length": 70, "value": "\"3B DC 96 00 80 B1 FE 45 1F 83 00 12 23 3F 54 65 49 44 32 0F 90 00 C3\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "StringLiteral", - "offset": 1054, + "offset": 362, "length": 49, "value": "\"A0 00 00 00 77 01 08 00 07 00 00 FE 00 00 01 00\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "StringLiteral", - "offset": 1139, + "offset": 447, "length": 49, "value": "\"51 53 43 44 20 41 70 70 6C 69 63 61 74 69 6F 6E\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "StringLiteral", - "offset": 1228, + "offset": 536, "length": 40, "value": "\"E8 28 BD 08 0F F2 50 4F 54 20 41 57 50\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "IntegerLiteral", - "offset": 1299, + "offset": 607, "length": 4, "value": "0x81" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "IntegerLiteral", - "offset": 1333, + "offset": 641, "length": 4, "value": "0x9F" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "BooleanLiteral", - "offset": 1774, + "offset": 1082, "length": 4, "value": "true" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Idemia.swift", "kind": "IntegerLiteral", - "offset": 1832, + "offset": 1140, "length": 4, "value": "0xFF" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommandsInternal.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommandsInternal.swift", "kind": "IntegerLiteral", - "offset": 1216, + "offset": 524, "length": 4, "value": "0x04" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommandsInternal.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommandsInternal.swift", "kind": "IntegerLiteral", - "offset": 1238, + "offset": 546, "length": 4, "value": "0x0C" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadCertificate.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadCertificate.swift", "kind": "StringLiteral", - "offset": 1489, + "offset": 717, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadCertificate.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadCertificate.swift", "kind": "StringLiteral", - "offset": 1574, + "offset": 802, "length": 52, "value": "\"Please place your ID card against the smart device\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "StringLiteral", - "offset": 1103, + "offset": 407, "length": 76, "value": "\"3B FF 96 00 00 80 31 FE 43 80 31 B8 53 65 49 44 64 B0 85 05 10 12 23 3F 1D\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "StringLiteral", - "offset": 1222, + "offset": 526, "length": 37, "value": "\"A0 00 00 00 63 50 4B 43 53 2D 31 35\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "StringLiteral", - "offset": 1308, + "offset": 612, "length": 49, "value": "\"A0 00 00 00 18 10 02 03 00 00 00 00 00 00 00 01\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "IntegerLiteral", - "offset": 1399, + "offset": 703, "length": 4, "value": "0x01" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "IntegerLiteral", - "offset": 1444, + "offset": 748, "length": 4, "value": "0x05" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "BooleanLiteral", - "offset": 1479, + "offset": 783, "length": 5, "value": "false" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/Thales.swift", "kind": "IntegerLiteral", - "offset": 1538, + "offset": 842, "length": 4, "value": "0x00" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/NFCISO7816Tag+Extensions.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/NFCISO7816Tag+Extensions.swift", "kind": "IntegerLiteral", - "offset": 1169, + "offset": 439, "length": 2, "value": "-1" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/NFCISO7816Tag+Extensions.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/NFCISO7816Tag+Extensions.swift", "kind": "IntegerLiteral", - "offset": 2281, + "offset": 1902, "length": 2, "value": "-1" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationUnblockPin.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationUnblockPin.swift", "kind": "StringLiteral", - "offset": 1174, + "offset": 369, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationUnblockPin.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationUnblockPin.swift", "kind": "StringLiteral", - "offset": 1319, + "offset": 514, "length": 52, "value": "\"Please place your ID card against the smart device\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/ProgressBar.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/ProgressBar.swift", "kind": "IntegerLiteral", - "offset": 936, + "offset": 244, "length": 1, "value": "4" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", "kind": "IntegerLiteral", - "offset": 1026, + "offset": 309, "length": 4, "value": "0x00" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", "kind": "Array", - "offset": 2744, + "offset": 2027, "length": 298, "value": "[0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x87]" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Utilities\/AES.swift", "kind": "IntegerLiteral", - "offset": 3562, + "offset": 2845, "length": 1, "value": "8" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/WebEID\/WebEIDHash.swift", - "kind": "IntegerLiteral", - "offset": 885, - "length": 3, - "value": "256" - }, - { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/WebEID\/WebEIDHash.swift", - "kind": "IntegerLiteral", - "offset": 908, - "length": 3, - "value": "384" - }, - { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/WebEID\/WebEIDHash.swift", - "kind": "IntegerLiteral", - "offset": 931, - "length": 3, - "value": "512" - }, - { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/Logger+Extensions.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Extensions\/Logger+Extensions.swift", "kind": "BooleanLiteral", "offset": 912, "length": 5, "value": "false" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "kind": "StringLiteral", + "offset": 474, + "length": 2, + "value": "\"\"" + }, + { + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1104, + "offset": 504, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1134, + "offset": 539, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1169, + "offset": 573, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1203, + "offset": 610, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1240, + "offset": 645, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "StringLiteral", - "offset": 1275, + "offset": 687, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1858, + "offset": 2609, "length": 1, "value": "1" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1870, + "offset": 2621, "length": 9, "value": "2" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1890, + "offset": 2641, "length": 3, "value": "3" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1904, + "offset": 2655, "length": 11, "value": "4" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1926, + "offset": 2677, "length": 19, "value": "5" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1956, + "offset": 2707, "length": 12, "value": "6" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 1979, + "offset": 2730, "length": 10, "value": "7" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardInfo.swift", "kind": "IntegerLiteral", - "offset": 2000, + "offset": 2751, "length": 12, "value": "8" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadPublicData.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadPublicData.swift", "kind": "StringLiteral", - "offset": 1061, + "offset": 288, "length": 2, "value": "\"\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadPublicData.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/Operations\/OperationReadPublicData.swift", "kind": "StringLiteral", - "offset": 1101, + "offset": 328, "length": 52, "value": "\"Please place your ID card against the smart device\"" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", "kind": "IntegerLiteral", - "offset": 2950, + "offset": 2258, "length": 4, "value": "0x00" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", "kind": "IntegerLiteral", - "offset": 2984, + "offset": 2292, "length": 4, "value": "0x00" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardReader.swift", "kind": "IntegerLiteral", - "offset": 3006, + "offset": 2314, "length": 4, "value": "0x00" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", "kind": "IntegerLiteral", - "offset": 877, + "offset": 185, "length": 1, "value": "0" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", "kind": "IntegerLiteral", - "offset": 895, + "offset": 203, "length": 1, "value": "1" }, { - "filePath": "\/Users\/martenr\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", + "filePath": "\/Users\/mac\/Documents\/Github\/MOPP\/Official\/nfc-iOS-lib\/nfc-lib\/nfc-lib\/nfclib\/CardActions\/CardCommands.swift", "kind": "IntegerLiteral", - "offset": 913, + "offset": 221, "length": 1, "value": "2" } diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface index 7052f892e..875e52ec3 100644 --- a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +++ b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface @@ -1,236 +1,258 @@ // swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101) -// swift-module-flags: -target x86_64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name nfclib -// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3 -import BigInt +// swift-compiler-version: Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1) +// swift-module-flags: -target x86_64-apple-ios18.0-simulator -enable-objc-interop -enable-library-evolution -language-mode 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name nfclib +// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.4 import CommonCrypto @preconcurrency import CoreNFC -import CryptoKit import CryptoTokenKit import Darwin import Foundation import OSLog import Security import Swift +import Synchronization import _Concurrency import _StringProcessing import _SwiftConcurrencyShims @_exported import nfclib import os -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationSignHash : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startSigning(CAN: Swift.String, PIN2: nfclib.SecureData, hash: Foundation.Data) async throws -> Foundation.Data - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationSignHash : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startSigning(CAN: Swift::String, PIN2: nfclib::SecureData, hash: Foundation::Data) async throws -> Foundation::Data + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationSignHash : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationSignHash : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -@_hasMissingDesignatedInitializers final public class WebEidData : Swift.Sendable { - final public let unverifiedCertificate: Swift.String - final public let signingCertificate: Swift.String - final public let algorithm: Swift.String - final public let signature: Swift.String - final public var formattedDescription: Swift.String { +@_hasMissingDesignatedInitializers final public class WebEidData : Swift::Sendable { + final public let unverifiedCertificate: Swift::String + final public let signingCertificate: Swift::String + final public let algorithm: nfclib::WebEidSignatureAlgorithm + final public let signature: Swift::String + final public var formattedDescription: Swift::String { get } @objc deinit } -final public class SecureData : Swift.Sendable { - public init(_ bytes: [Swift.UInt8]) - public init(_ data: Foundation.Data) +public enum WebEidSignatureAlgorithm : Swift::String, Swift::Sendable { + case es256 + case es384 + public init?(rawValue: Swift::String) + public typealias RawValue = Swift::String + public var rawValue: Swift::String { + get + } +} +final public class SecureData : Swift::Sendable { + public init(_ bytes: [Swift::UInt8]) + public init(_ data: Foundation::Data) @objc deinit - final public var count: Swift.Int { + final public var count: Swift::Int { get } final public func secureZero() } -public let rsaAlgorithmName: Swift.String -public let ecAlgorithmName: Swift.String -public let unknownAlgorithmName: Swift.String -public enum AuthenticateWithWebEidError : Swift.Error { +public enum AuthenticateWithWebEidError : Swift::Error { case failedToReadPublicKey case failedToDetermineAlgorithm - case failedToHashData case failedToMapAlgorithm case failedCertificateExpired case failedCertificateNotYetValid - public static func == (a: nfclib.AuthenticateWithWebEidError, b: nfclib.AuthenticateWithWebEidError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::AuthenticateWithWebEidError, b: nfclib::AuthenticateWithWebEidError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -@objc @_Concurrency.MainActor public class OperationAuthenticateWithWebEID : ObjectiveC.NSObject { - @_Concurrency.MainActor public init(CAN: Swift.String, pin1: nfclib.SecureData, challenge: Swift.String, origin: Swift.String) - @_Concurrency.MainActor public func startReading() async throws -> nfclib.WebEidData +@objc @_Concurrency::MainActor public class OperationAuthenticateWithWebEID : ObjectiveC::NSObject { + @_Concurrency::MainActor public init(CAN: Swift::String, pin1: nfclib::SecureData, challenge: Swift::String, origin: Swift::String) + @_Concurrency::MainActor public func startReading() async throws -> nfclib::WebEidData @objc deinit } -extension nfclib.OperationAuthenticateWithWebEID : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func getAlgorithmNameTypeAndLength(from key: Security.SecKey) -> (algorithm: Swift.String, keyLength: Swift.Int)? - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) - @_Concurrency.MainActor public func mapToAlgorithm(algorithm: Swift.String, bitLength: Swift.Int) -> Swift.String? -} -public struct SignatureAlgorithmInfo { +extension nfclib::OperationAuthenticateWithWebEID : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum ReadCertificateError : Swift.Error { +public enum ReadCertificateError : Swift::Error { case certificateUsageNotSpecified case failedToReadCertificate case general - public static func == (a: nfclib.ReadCertificateError, b: nfclib.ReadCertificateError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::ReadCertificateError, b: nfclib::ReadCertificateError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } public enum CertificateUsage { case auth case sign - public static func == (a: nfclib.CertificateUsage, b: nfclib.CertificateUsage) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::CertificateUsage, b: nfclib::CertificateUsage) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -extension CoreNFC.NFCTagReaderSession : @unchecked @retroactive Swift.Sendable { +extension CoreNFC::NFCTagReaderSession : @unchecked @retroactive Swift::Sendable { } -extension CoreNFC.NFCTag : @unchecked @retroactive Swift.Sendable { +extension CoreNFC::NFCTag : @unchecked @retroactive Swift::Sendable { } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationReadCertificate : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startReading(CAN: Swift.String, certUsage: nfclib.CertificateUsage) async throws -> Security.SecCertificate - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationReadCertificate : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startReading(CAN: Swift::String, certUsage: nfclib::CertificateUsage) async throws -> Security::SecCertificate + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationReadCertificate : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationReadCertificate : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum UnblockPINError : Swift.Error { +public enum UnblockPINError : Swift::Error { case missingRequiredParameter - case failed case general - public static func == (a: nfclib.UnblockPINError, b: nfclib.UnblockPINError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::UnblockPINError, b: nfclib::UnblockPINError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationUnblockPin : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startReading(CAN: Swift.String, codeType: nfclib.CodeType, puk: nfclib.SecureData, newPin: nfclib.SecureData) async throws - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationUnblockPin : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startReading(CAN: Swift::String, codeType: nfclib::CodeType, puk: nfclib::SecureData, newPin: nfclib::SecureData) async throws + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationUnblockPin : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationUnblockPin : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -@_Concurrency.MainActor public class NFCConnection { - @_Concurrency.MainActor public init() - @_Concurrency.MainActor public func setup(_ session: CoreNFC.NFCTagReaderSession, tags: [CoreNFC.NFCTag]) async throws -> any CoreNFC.NFCISO7816Tag - @_Concurrency.MainActor public func getCardCommands(_: CoreNFC.NFCTagReaderSession, tag: any CoreNFC.NFCISO7816Tag, CAN: Swift.String) async throws -> any nfclib.CardCommands +@_Concurrency::MainActor public class NFCConnection { + @_Concurrency::MainActor public init() + @_Concurrency::MainActor public func setup(_ session: CoreNFC::NFCTagReaderSession, tags: [CoreNFC::NFCTag]) async throws -> any CoreNFC::NFCISO7816Tag + @_Concurrency::MainActor public func getCardCommands(_: CoreNFC::NFCTagReaderSession, tag: any CoreNFC::NFCISO7816Tag, CAN: Swift::String) async throws -> any nfclib::CardCommands @objc deinit } -public enum IdCardError : Swift.Error { - case wrongCAN, wrongPIN(triesLeft: Swift.Int), invalidNewPIN, sessionError +public enum IdCardError : Swift::Error { + case wrongCAN, wrongPIN(codeType: nfclib::CodeType, triesLeft: Swift::Int), invalidNewPIN, sessionError, notActivated } -public enum IdCardInternalError : Swift.Error { - case missingRESTag, missingMACTag, invalidMACValue, failedReadingField(nfclib.CardField), hexConversionFailed, AESCBCError, sendCommandFailed(message: Swift.String), invalidResponse(message: Swift.String), swError(Swift.UInt16), pinVerificationFailed, remainingPinRetryCount(Swift.Int), invalidNewPin, notSupportedCodeType, dataPaddingError, invalidAPDU, authenticationFailed, canAuthenticationFailed, invalidTag, cardNotSupported, nfcNotSupported, connectionFailed, multipleTagsDetected, couldNotVerifyChipsMAC, cancelledByUser, sessionInvalidated, readerProcessFailed, failedToRemovePadding, notSupportedAlgorithm - public func getIdCardError() -> nfclib.IdCardError -} -public struct PinError : Swift.Error { +public enum IdCardInternalError : Swift::Error { + case missingRESTag, missingMACTag, invalidMACValue, failedReadingField(nfclib::CardField), hexConversionFailed, AESCBCError, sendCommandFailed(message: Swift::String), invalidResponse(message: Swift::String), swError(Swift::UInt16), pinVerificationFailed(codeType: nfclib::CodeType), remainingPinRetryCount(codeType: nfclib::CodeType, count: Swift::Int), invalidNewPin, notSupportedCodeType, dataPaddingError, invalidAPDU, authenticationFailed, canAuthenticationFailed, invalidTag, cardNotSupported, nfcNotSupported, connectionFailed, multipleTagsDetected, couldNotVerifyChipsMAC, cancelledByUser, sessionInvalidated, readerProcessFailed, failedToRemovePadding, notSupportedAlgorithm, operationInProgress, notActivated + public func getIdCardError() -> nfclib::IdCardError } public enum NFCLibLogging { - public static var isEnabled: Swift.Bool { + public static var isEnabled: Swift::Bool { get set } } -public struct CardInfo : Swift.Sendable, Swift.Hashable { - public var givenName: Swift.String - public var surname: Swift.String - public var personalCode: Swift.String - public var citizenship: Swift.String - public var documentNumber: Swift.String - public var dateOfExpiry: Swift.String - public init(givenName: Swift.String = "", surname: Swift.String = "", personalCode: Swift.String = "", citizenship: Swift.String = "", documentNumber: Swift.String = "", dateOfExpiry: Swift.String = "") - public var formattedDescription: Swift.String { +public struct CardInfo : Swift::Sendable, Swift::Hashable { + public var givenName: Swift::String + public var surname: Swift::String + public var personalCode: Swift::String + public var citizenship: Swift::String + public var documentNumber: Swift::String + public var dateOfExpiry: Swift::String + public var dateAndPlaceOfBirth: Swift::String + public init(givenName: Swift::String = "", surname: Swift::String = "", personalCode: Swift::String = "", citizenship: Swift::String = "", documentNumber: Swift::String = "", dateOfExpiry: Swift::String = "", dateAndPlaceOfBirth: Swift::String = "") + public var dateOfBirth: Foundation::Date? { + get + } + public static func dateOfBirth(fromPersonalCode personalCode: Swift::String) -> Foundation::Date? + public var formattedDescription: Swift::String { get } - public static func == (a: nfclib.CardInfo, b: nfclib.CardInfo) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::CardInfo, b: nfclib::CardInfo) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -public enum CardField : Swift.Int, Swift.Sendable { +public enum CardField : Swift::Int, Swift::Sendable { case surname, firstName, sex, citizenship, dateAndPlaceOfBirth, personalCode, documentNr, dateOfExpiry - public init?(rawValue: Swift.Int) - public typealias RawValue = Swift.Int - public var rawValue: Swift.Int { + public init?(rawValue: Swift::Int) + public typealias RawValue = Swift::Int + public var rawValue: Swift::Int { get } } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor final public class OperationReadPublicData : ObjectiveC.NSObject { - @_Concurrency.MainActor final public func startReading(CAN: Swift.String) async throws -> nfclib.CardInfo - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor final public class OperationReadPublicData : ObjectiveC::NSObject { + @_Concurrency::MainActor final public func startReading(CAN: Swift::String) async throws -> nfclib::CardInfo + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationReadPublicData : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor final public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor final public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor final public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationReadPublicData : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor final public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor final public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor final public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum CodeType : Swift.UInt, Swift.Sendable { +public enum CodeType : Swift::UInt, Swift::Sendable { case puk case pin1 case pin2 - public var name: Swift.String { + public var name: Swift::String { + get + } + public init?(rawValue: Swift::UInt) + public typealias RawValue = Swift::UInt + public var rawValue: Swift::UInt { + get + } +} +public enum CodeValidationFailure : Swift::Error, Swift::Sendable, Swift::Equatable { + case wrongLength(minimum: Swift::Int, maximum: Swift::Int) + case notNumeric + public static func == (a: nfclib::CodeValidationFailure, b: nfclib::CodeValidationFailure) -> Swift::Bool +} +extension nfclib::CodeType { + public var minimumLength: Swift::Int { + get + } + public var maximumLength: Swift::Int { get } - public init?(rawValue: Swift.UInt) - public typealias RawValue = Swift.UInt - public var rawValue: Swift.UInt { + public var validLength: Swift::ClosedRange { get } + public func validateFormat(_ code: [Swift::UInt8]) -> nfclib::CodeValidationFailure? } -public protocol CardCommands : Swift.Sendable { - var canChangePUK: Swift.Bool { get } - func readPublicData() async throws -> nfclib.CardInfo - func readAuthenticationCertificate() async throws -> Foundation.Data - func readSignatureCertificate() async throws -> Foundation.Data - func readCodeTryCounterRecord(_ type: nfclib.CodeType) async throws -> (retryCount: Swift.UInt8, pinActive: Swift.Bool) - func changeCode(_ type: nfclib.CodeType, to code: nfclib.SecureData, verifyCode: nfclib.SecureData) async throws - func verifyCode(_ type: nfclib.CodeType, code: nfclib.SecureData) async throws - func unblockCode(_ type: nfclib.CodeType, puk: nfclib.SecureData, newCode: nfclib.SecureData) async throws - func authenticate(for hash: Foundation.Data, withPin1 pin1: nfclib.SecureData) async throws -> Foundation.Data - func calculateSignature(for hash: Foundation.Data, withPin2 pin2: nfclib.SecureData) async throws -> Foundation.Data - func decryptData(_ hash: Foundation.Data, withPin1 pin1: nfclib.SecureData) async throws -> Foundation.Data +public protocol CardCommands : Swift::Sendable { + var canChangePUK: Swift::Bool { get } + func readPublicData() async throws -> nfclib::CardInfo + func readAuthenticationCertificate() async throws -> Foundation::Data + func readSignatureCertificate() async throws -> Foundation::Data + func readCodeTryCounterRecord(_ type: nfclib::CodeType) async throws -> (retryCount: Swift::UInt8, pinActive: Swift::Bool) + func changeCode(_ type: nfclib::CodeType, to code: nfclib::SecureData, verifyCode: nfclib::SecureData) async throws + func verifyCode(_ type: nfclib::CodeType, code: nfclib::SecureData) async throws + func unblockCode(_ type: nfclib::CodeType, puk: nfclib::SecureData, newCode: nfclib::SecureData) async throws + func authenticate(for hash: Foundation::Data, withPin1 pin1: nfclib::SecureData) async throws -> Foundation::Data + func calculateSignature(for hash: Foundation::Data, withPin2 pin2: nfclib::SecureData) async throws -> Foundation::Data + func decryptData(_ hash: Foundation::Data, withPin1 pin1: nfclib::SecureData) async throws -> Foundation::Data } -extension Foundation.DataProtocol where Self : Foundation.MutableDataProtocol, Self.Index == Swift.Int { +extension Foundation::DataProtocol where Self : Foundation::MutableDataProtocol, Self.Index == Swift::Int { public static func ^ (xVal: Self, yVal: Self) -> Self } -extension nfclib.OperationSignHash : Swift.Sendable {} -extension nfclib.AuthenticateWithWebEidError : Swift.Equatable {} -extension nfclib.AuthenticateWithWebEidError : Swift.Hashable {} -extension nfclib.OperationAuthenticateWithWebEID : Swift.Sendable {} -extension nfclib.CodeType : Swift.Equatable {} -extension nfclib.CodeType : Swift.Hashable {} -extension nfclib.CodeType : Swift.RawRepresentable {} -extension nfclib.ReadCertificateError : Swift.Equatable {} -extension nfclib.ReadCertificateError : Swift.Hashable {} -extension nfclib.CertificateUsage : Swift.Equatable {} -extension nfclib.CertificateUsage : Swift.Hashable {} -extension nfclib.OperationReadCertificate : Swift.Sendable {} -extension nfclib.UnblockPINError : Swift.Equatable {} -extension nfclib.UnblockPINError : Swift.Hashable {} -extension nfclib.OperationUnblockPin : Swift.Sendable {} -extension nfclib.NFCConnection : Swift.Sendable {} -extension nfclib.CardField : Swift.Equatable {} -extension nfclib.CardField : Swift.Hashable {} -extension nfclib.CardField : Swift.RawRepresentable {} -extension nfclib.OperationReadPublicData : Swift.Sendable {} +extension nfclib::OperationSignHash : Swift::Sendable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::Equatable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::Hashable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::RawRepresentable {} +extension nfclib::AuthenticateWithWebEidError : Swift::Equatable {} +extension nfclib::AuthenticateWithWebEidError : Swift::Hashable {} +extension nfclib::OperationAuthenticateWithWebEID : Swift::Sendable {} +extension nfclib::CodeType : Swift::Equatable {} +extension nfclib::CodeType : Swift::Hashable {} +extension nfclib::CodeType : Swift::RawRepresentable {} +extension nfclib::ReadCertificateError : Swift::Equatable {} +extension nfclib::ReadCertificateError : Swift::Hashable {} +extension nfclib::CertificateUsage : Swift::Equatable {} +extension nfclib::CertificateUsage : Swift::Hashable {} +extension nfclib::OperationReadCertificate : Swift::Sendable {} +extension nfclib::UnblockPINError : Swift::Equatable {} +extension nfclib::UnblockPINError : Swift::Hashable {} +extension nfclib::OperationUnblockPin : Swift::Sendable {} +extension nfclib::NFCConnection : Swift::Sendable {} +extension nfclib::CardField : Swift::Equatable {} +extension nfclib::CardField : Swift::Hashable {} +extension nfclib::CardField : Swift::RawRepresentable {} +extension nfclib::OperationReadPublicData : Swift::Sendable {} diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.swiftdoc index d29f1cd75..55a4e5f7e 100644 Binary files a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.swiftdoc and b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.swiftinterface index 7052f892e..875e52ec3 100644 --- a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -1,236 +1,258 @@ // swift-interface-format-version: 1.0 -// swift-compiler-version: Apple Swift version 6.3.3 effective-5.10 (swiftlang-6.3.3.1.3 clang-2100.1.1.101) -// swift-module-flags: -target x86_64-apple-ios16.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -O -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -module-name nfclib -// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.3.3 -import BigInt +// swift-compiler-version: Apple Swift version 6.4 (swiftlang-6.4.0.34.1 clang-2100.3.34.1) +// swift-module-flags: -target x86_64-apple-ios18.0-simulator -enable-objc-interop -enable-library-evolution -language-mode 6 -O -enable-experimental-feature DebugDescriptionMacro -module-name nfclib +// swift-module-flags-ignorable: -no-verify-emitted-module-interface -formal-cxx-interoperability-mode=off -interface-compiler-version 6.4 import CommonCrypto @preconcurrency import CoreNFC -import CryptoKit import CryptoTokenKit import Darwin import Foundation import OSLog import Security import Swift +import Synchronization import _Concurrency import _StringProcessing import _SwiftConcurrencyShims @_exported import nfclib import os -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationSignHash : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startSigning(CAN: Swift.String, PIN2: nfclib.SecureData, hash: Foundation.Data) async throws -> Foundation.Data - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationSignHash : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startSigning(CAN: Swift::String, PIN2: nfclib::SecureData, hash: Foundation::Data) async throws -> Foundation::Data + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationSignHash : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationSignHash : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -@_hasMissingDesignatedInitializers final public class WebEidData : Swift.Sendable { - final public let unverifiedCertificate: Swift.String - final public let signingCertificate: Swift.String - final public let algorithm: Swift.String - final public let signature: Swift.String - final public var formattedDescription: Swift.String { +@_hasMissingDesignatedInitializers final public class WebEidData : Swift::Sendable { + final public let unverifiedCertificate: Swift::String + final public let signingCertificate: Swift::String + final public let algorithm: nfclib::WebEidSignatureAlgorithm + final public let signature: Swift::String + final public var formattedDescription: Swift::String { get } @objc deinit } -final public class SecureData : Swift.Sendable { - public init(_ bytes: [Swift.UInt8]) - public init(_ data: Foundation.Data) +public enum WebEidSignatureAlgorithm : Swift::String, Swift::Sendable { + case es256 + case es384 + public init?(rawValue: Swift::String) + public typealias RawValue = Swift::String + public var rawValue: Swift::String { + get + } +} +final public class SecureData : Swift::Sendable { + public init(_ bytes: [Swift::UInt8]) + public init(_ data: Foundation::Data) @objc deinit - final public var count: Swift.Int { + final public var count: Swift::Int { get } final public func secureZero() } -public let rsaAlgorithmName: Swift.String -public let ecAlgorithmName: Swift.String -public let unknownAlgorithmName: Swift.String -public enum AuthenticateWithWebEidError : Swift.Error { +public enum AuthenticateWithWebEidError : Swift::Error { case failedToReadPublicKey case failedToDetermineAlgorithm - case failedToHashData case failedToMapAlgorithm case failedCertificateExpired case failedCertificateNotYetValid - public static func == (a: nfclib.AuthenticateWithWebEidError, b: nfclib.AuthenticateWithWebEidError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::AuthenticateWithWebEidError, b: nfclib::AuthenticateWithWebEidError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -@objc @_Concurrency.MainActor public class OperationAuthenticateWithWebEID : ObjectiveC.NSObject { - @_Concurrency.MainActor public init(CAN: Swift.String, pin1: nfclib.SecureData, challenge: Swift.String, origin: Swift.String) - @_Concurrency.MainActor public func startReading() async throws -> nfclib.WebEidData +@objc @_Concurrency::MainActor public class OperationAuthenticateWithWebEID : ObjectiveC::NSObject { + @_Concurrency::MainActor public init(CAN: Swift::String, pin1: nfclib::SecureData, challenge: Swift::String, origin: Swift::String) + @_Concurrency::MainActor public func startReading() async throws -> nfclib::WebEidData @objc deinit } -extension nfclib.OperationAuthenticateWithWebEID : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func getAlgorithmNameTypeAndLength(from key: Security.SecKey) -> (algorithm: Swift.String, keyLength: Swift.Int)? - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) - @_Concurrency.MainActor public func mapToAlgorithm(algorithm: Swift.String, bitLength: Swift.Int) -> Swift.String? -} -public struct SignatureAlgorithmInfo { +extension nfclib::OperationAuthenticateWithWebEID : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum ReadCertificateError : Swift.Error { +public enum ReadCertificateError : Swift::Error { case certificateUsageNotSpecified case failedToReadCertificate case general - public static func == (a: nfclib.ReadCertificateError, b: nfclib.ReadCertificateError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::ReadCertificateError, b: nfclib::ReadCertificateError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } public enum CertificateUsage { case auth case sign - public static func == (a: nfclib.CertificateUsage, b: nfclib.CertificateUsage) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::CertificateUsage, b: nfclib::CertificateUsage) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -extension CoreNFC.NFCTagReaderSession : @unchecked @retroactive Swift.Sendable { +extension CoreNFC::NFCTagReaderSession : @unchecked @retroactive Swift::Sendable { } -extension CoreNFC.NFCTag : @unchecked @retroactive Swift.Sendable { +extension CoreNFC::NFCTag : @unchecked @retroactive Swift::Sendable { } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationReadCertificate : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startReading(CAN: Swift.String, certUsage: nfclib.CertificateUsage) async throws -> Security.SecCertificate - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationReadCertificate : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startReading(CAN: Swift::String, certUsage: nfclib::CertificateUsage) async throws -> Security::SecCertificate + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationReadCertificate : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationReadCertificate : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum UnblockPINError : Swift.Error { +public enum UnblockPINError : Swift::Error { case missingRequiredParameter - case failed case general - public static func == (a: nfclib.UnblockPINError, b: nfclib.UnblockPINError) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::UnblockPINError, b: nfclib::UnblockPINError) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor public class OperationUnblockPin : ObjectiveC.NSObject { - @_Concurrency.MainActor public func startReading(CAN: Swift.String, codeType: nfclib.CodeType, puk: nfclib.SecureData, newPin: nfclib.SecureData) async throws - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor public class OperationUnblockPin : ObjectiveC::NSObject { + @_Concurrency::MainActor public func startReading(CAN: Swift::String, codeType: nfclib::CodeType, puk: nfclib::SecureData, newPin: nfclib::SecureData) async throws + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationUnblockPin : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationUnblockPin : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -@_Concurrency.MainActor public class NFCConnection { - @_Concurrency.MainActor public init() - @_Concurrency.MainActor public func setup(_ session: CoreNFC.NFCTagReaderSession, tags: [CoreNFC.NFCTag]) async throws -> any CoreNFC.NFCISO7816Tag - @_Concurrency.MainActor public func getCardCommands(_: CoreNFC.NFCTagReaderSession, tag: any CoreNFC.NFCISO7816Tag, CAN: Swift.String) async throws -> any nfclib.CardCommands +@_Concurrency::MainActor public class NFCConnection { + @_Concurrency::MainActor public init() + @_Concurrency::MainActor public func setup(_ session: CoreNFC::NFCTagReaderSession, tags: [CoreNFC::NFCTag]) async throws -> any CoreNFC::NFCISO7816Tag + @_Concurrency::MainActor public func getCardCommands(_: CoreNFC::NFCTagReaderSession, tag: any CoreNFC::NFCISO7816Tag, CAN: Swift::String) async throws -> any nfclib::CardCommands @objc deinit } -public enum IdCardError : Swift.Error { - case wrongCAN, wrongPIN(triesLeft: Swift.Int), invalidNewPIN, sessionError +public enum IdCardError : Swift::Error { + case wrongCAN, wrongPIN(codeType: nfclib::CodeType, triesLeft: Swift::Int), invalidNewPIN, sessionError, notActivated } -public enum IdCardInternalError : Swift.Error { - case missingRESTag, missingMACTag, invalidMACValue, failedReadingField(nfclib.CardField), hexConversionFailed, AESCBCError, sendCommandFailed(message: Swift.String), invalidResponse(message: Swift.String), swError(Swift.UInt16), pinVerificationFailed, remainingPinRetryCount(Swift.Int), invalidNewPin, notSupportedCodeType, dataPaddingError, invalidAPDU, authenticationFailed, canAuthenticationFailed, invalidTag, cardNotSupported, nfcNotSupported, connectionFailed, multipleTagsDetected, couldNotVerifyChipsMAC, cancelledByUser, sessionInvalidated, readerProcessFailed, failedToRemovePadding, notSupportedAlgorithm - public func getIdCardError() -> nfclib.IdCardError -} -public struct PinError : Swift.Error { +public enum IdCardInternalError : Swift::Error { + case missingRESTag, missingMACTag, invalidMACValue, failedReadingField(nfclib::CardField), hexConversionFailed, AESCBCError, sendCommandFailed(message: Swift::String), invalidResponse(message: Swift::String), swError(Swift::UInt16), pinVerificationFailed(codeType: nfclib::CodeType), remainingPinRetryCount(codeType: nfclib::CodeType, count: Swift::Int), invalidNewPin, notSupportedCodeType, dataPaddingError, invalidAPDU, authenticationFailed, canAuthenticationFailed, invalidTag, cardNotSupported, nfcNotSupported, connectionFailed, multipleTagsDetected, couldNotVerifyChipsMAC, cancelledByUser, sessionInvalidated, readerProcessFailed, failedToRemovePadding, notSupportedAlgorithm, operationInProgress, notActivated + public func getIdCardError() -> nfclib::IdCardError } public enum NFCLibLogging { - public static var isEnabled: Swift.Bool { + public static var isEnabled: Swift::Bool { get set } } -public struct CardInfo : Swift.Sendable, Swift.Hashable { - public var givenName: Swift.String - public var surname: Swift.String - public var personalCode: Swift.String - public var citizenship: Swift.String - public var documentNumber: Swift.String - public var dateOfExpiry: Swift.String - public init(givenName: Swift.String = "", surname: Swift.String = "", personalCode: Swift.String = "", citizenship: Swift.String = "", documentNumber: Swift.String = "", dateOfExpiry: Swift.String = "") - public var formattedDescription: Swift.String { +public struct CardInfo : Swift::Sendable, Swift::Hashable { + public var givenName: Swift::String + public var surname: Swift::String + public var personalCode: Swift::String + public var citizenship: Swift::String + public var documentNumber: Swift::String + public var dateOfExpiry: Swift::String + public var dateAndPlaceOfBirth: Swift::String + public init(givenName: Swift::String = "", surname: Swift::String = "", personalCode: Swift::String = "", citizenship: Swift::String = "", documentNumber: Swift::String = "", dateOfExpiry: Swift::String = "", dateAndPlaceOfBirth: Swift::String = "") + public var dateOfBirth: Foundation::Date? { + get + } + public static func dateOfBirth(fromPersonalCode personalCode: Swift::String) -> Foundation::Date? + public var formattedDescription: Swift::String { get } - public static func == (a: nfclib.CardInfo, b: nfclib.CardInfo) -> Swift.Bool - public func hash(into hasher: inout Swift.Hasher) - public var hashValue: Swift.Int { + public static func == (a: nfclib::CardInfo, b: nfclib::CardInfo) -> Swift::Bool + public func hash(into hasher: inout Swift::Hasher) + public var hashValue: Swift::Int { get } } -public enum CardField : Swift.Int, Swift.Sendable { +public enum CardField : Swift::Int, Swift::Sendable { case surname, firstName, sex, citizenship, dateAndPlaceOfBirth, personalCode, documentNr, dateOfExpiry - public init?(rawValue: Swift.Int) - public typealias RawValue = Swift.Int - public var rawValue: Swift.Int { + public init?(rawValue: Swift::Int) + public typealias RawValue = Swift::Int + public var rawValue: Swift::Int { get } } -@objc @_inheritsConvenienceInitializers @_Concurrency.MainActor final public class OperationReadPublicData : ObjectiveC.NSObject { - @_Concurrency.MainActor final public func startReading(CAN: Swift.String) async throws -> nfclib.CardInfo - @_Concurrency.MainActor @objc override dynamic public init() +@objc @_inheritsConvenienceInitializers @_Concurrency::MainActor final public class OperationReadPublicData : ObjectiveC::NSObject { + @_Concurrency::MainActor final public func startReading(CAN: Swift::String) async throws -> nfclib::CardInfo + @_Concurrency::MainActor @objc override dynamic public init() @objc deinit } -extension nfclib.OperationReadPublicData : @_Concurrency.MainActor CoreNFC.NFCTagReaderSessionDelegate { - @_Concurrency.MainActor final public func tagReaderSession(_ session: CoreNFC.NFCTagReaderSession, didDetect tags: [CoreNFC.NFCTag]) - @_Concurrency.MainActor final public func tagReaderSessionDidBecomeActive(_: CoreNFC.NFCTagReaderSession) - @_Concurrency.MainActor final public func tagReaderSession(_: CoreNFC.NFCTagReaderSession, didInvalidateWithError _: any Swift.Error) +extension nfclib::OperationReadPublicData : @_Concurrency::MainActor CoreNFC::NFCTagReaderSessionDelegate { + @_Concurrency::MainActor final public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didDetect tags: [CoreNFC::NFCTag]) + @_Concurrency::MainActor final public func tagReaderSessionDidBecomeActive(_: CoreNFC::NFCTagReaderSession) + @_Concurrency::MainActor final public func tagReaderSession(_ session: CoreNFC::NFCTagReaderSession, didInvalidateWithError error: any Swift::Error) } -public enum CodeType : Swift.UInt, Swift.Sendable { +public enum CodeType : Swift::UInt, Swift::Sendable { case puk case pin1 case pin2 - public var name: Swift.String { + public var name: Swift::String { + get + } + public init?(rawValue: Swift::UInt) + public typealias RawValue = Swift::UInt + public var rawValue: Swift::UInt { + get + } +} +public enum CodeValidationFailure : Swift::Error, Swift::Sendable, Swift::Equatable { + case wrongLength(minimum: Swift::Int, maximum: Swift::Int) + case notNumeric + public static func == (a: nfclib::CodeValidationFailure, b: nfclib::CodeValidationFailure) -> Swift::Bool +} +extension nfclib::CodeType { + public var minimumLength: Swift::Int { + get + } + public var maximumLength: Swift::Int { get } - public init?(rawValue: Swift.UInt) - public typealias RawValue = Swift.UInt - public var rawValue: Swift.UInt { + public var validLength: Swift::ClosedRange { get } + public func validateFormat(_ code: [Swift::UInt8]) -> nfclib::CodeValidationFailure? } -public protocol CardCommands : Swift.Sendable { - var canChangePUK: Swift.Bool { get } - func readPublicData() async throws -> nfclib.CardInfo - func readAuthenticationCertificate() async throws -> Foundation.Data - func readSignatureCertificate() async throws -> Foundation.Data - func readCodeTryCounterRecord(_ type: nfclib.CodeType) async throws -> (retryCount: Swift.UInt8, pinActive: Swift.Bool) - func changeCode(_ type: nfclib.CodeType, to code: nfclib.SecureData, verifyCode: nfclib.SecureData) async throws - func verifyCode(_ type: nfclib.CodeType, code: nfclib.SecureData) async throws - func unblockCode(_ type: nfclib.CodeType, puk: nfclib.SecureData, newCode: nfclib.SecureData) async throws - func authenticate(for hash: Foundation.Data, withPin1 pin1: nfclib.SecureData) async throws -> Foundation.Data - func calculateSignature(for hash: Foundation.Data, withPin2 pin2: nfclib.SecureData) async throws -> Foundation.Data - func decryptData(_ hash: Foundation.Data, withPin1 pin1: nfclib.SecureData) async throws -> Foundation.Data +public protocol CardCommands : Swift::Sendable { + var canChangePUK: Swift::Bool { get } + func readPublicData() async throws -> nfclib::CardInfo + func readAuthenticationCertificate() async throws -> Foundation::Data + func readSignatureCertificate() async throws -> Foundation::Data + func readCodeTryCounterRecord(_ type: nfclib::CodeType) async throws -> (retryCount: Swift::UInt8, pinActive: Swift::Bool) + func changeCode(_ type: nfclib::CodeType, to code: nfclib::SecureData, verifyCode: nfclib::SecureData) async throws + func verifyCode(_ type: nfclib::CodeType, code: nfclib::SecureData) async throws + func unblockCode(_ type: nfclib::CodeType, puk: nfclib::SecureData, newCode: nfclib::SecureData) async throws + func authenticate(for hash: Foundation::Data, withPin1 pin1: nfclib::SecureData) async throws -> Foundation::Data + func calculateSignature(for hash: Foundation::Data, withPin2 pin2: nfclib::SecureData) async throws -> Foundation::Data + func decryptData(_ hash: Foundation::Data, withPin1 pin1: nfclib::SecureData) async throws -> Foundation::Data } -extension Foundation.DataProtocol where Self : Foundation.MutableDataProtocol, Self.Index == Swift.Int { +extension Foundation::DataProtocol where Self : Foundation::MutableDataProtocol, Self.Index == Swift::Int { public static func ^ (xVal: Self, yVal: Self) -> Self } -extension nfclib.OperationSignHash : Swift.Sendable {} -extension nfclib.AuthenticateWithWebEidError : Swift.Equatable {} -extension nfclib.AuthenticateWithWebEidError : Swift.Hashable {} -extension nfclib.OperationAuthenticateWithWebEID : Swift.Sendable {} -extension nfclib.CodeType : Swift.Equatable {} -extension nfclib.CodeType : Swift.Hashable {} -extension nfclib.CodeType : Swift.RawRepresentable {} -extension nfclib.ReadCertificateError : Swift.Equatable {} -extension nfclib.ReadCertificateError : Swift.Hashable {} -extension nfclib.CertificateUsage : Swift.Equatable {} -extension nfclib.CertificateUsage : Swift.Hashable {} -extension nfclib.OperationReadCertificate : Swift.Sendable {} -extension nfclib.UnblockPINError : Swift.Equatable {} -extension nfclib.UnblockPINError : Swift.Hashable {} -extension nfclib.OperationUnblockPin : Swift.Sendable {} -extension nfclib.NFCConnection : Swift.Sendable {} -extension nfclib.CardField : Swift.Equatable {} -extension nfclib.CardField : Swift.Hashable {} -extension nfclib.CardField : Swift.RawRepresentable {} -extension nfclib.OperationReadPublicData : Swift.Sendable {} +extension nfclib::OperationSignHash : Swift::Sendable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::Equatable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::Hashable {} +extension nfclib::WebEidSignatureAlgorithm : Swift::RawRepresentable {} +extension nfclib::AuthenticateWithWebEidError : Swift::Equatable {} +extension nfclib::AuthenticateWithWebEidError : Swift::Hashable {} +extension nfclib::OperationAuthenticateWithWebEID : Swift::Sendable {} +extension nfclib::CodeType : Swift::Equatable {} +extension nfclib::CodeType : Swift::Hashable {} +extension nfclib::CodeType : Swift::RawRepresentable {} +extension nfclib::ReadCertificateError : Swift::Equatable {} +extension nfclib::ReadCertificateError : Swift::Hashable {} +extension nfclib::CertificateUsage : Swift::Equatable {} +extension nfclib::CertificateUsage : Swift::Hashable {} +extension nfclib::OperationReadCertificate : Swift::Sendable {} +extension nfclib::UnblockPINError : Swift::Equatable {} +extension nfclib::UnblockPINError : Swift::Hashable {} +extension nfclib::OperationUnblockPin : Swift::Sendable {} +extension nfclib::NFCConnection : Swift::Sendable {} +extension nfclib::CardField : Swift::Equatable {} +extension nfclib::CardField : Swift::Hashable {} +extension nfclib::CardField : Swift::RawRepresentable {} +extension nfclib::OperationReadPublicData : Swift::Sendable {} diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/_CodeSignature/CodeResources b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/_CodeSignature/CodeResources index f3596a0dd..9ddc74e2d 100644 --- a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/_CodeSignature/CodeResources +++ b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/_CodeSignature/CodeResources @@ -6,15 +6,15 @@ Headers/nfclib-Swift.h - IXV9srChFCWo/vCKtpssQusvC6Q= + HJl/BZ+N7SvggGZlv2TS9aa4uxg= Headers/nfclib.h - HLGVdH88PfmZ+nKIubGCbwnRq4w= + rzGiUUMvTkXQ0mhOJ4SsDgmWFbk= Info.plist - MI0MrcZCZJ7eA2u7m0daIrXHxcA= + xjOiELSnhX1gi07QsVix8RK8tF4= Modules/module.modulemap @@ -22,51 +22,51 @@ Modules/nfclib.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo - RmAlJkz37VwUpClcy7wsiwWiFXg= + ptNeW1+GhPceV+vtMZ59gcL3FFE= Modules/nfclib.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo - MIYf/OJBnKY+1sukG4BtTV/YfuY= + wKOc3LxhwgBr6WCvhipgd5hT7d0= Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.abi.json - 4OiBWpz5UxEzdl57JsICEQ4F9NA= + vzEqUSED2e1bqDLkFAijVcVZ2r4= Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface - 73Idnm7vMpJ9njlA0xdTMNYJn84= + +lRs3tJJU/d5zSPR6IAb/W0IXh4= Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.swiftdoc - XJgNsAxxH/tCuwrMuy/RtNycMQM= + ISp8DA+11yFrtgr3QbBiAC/IP7o= Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.swiftinterface - 73Idnm7vMpJ9njlA0xdTMNYJn84= + +lRs3tJJU/d5zSPR6IAb/W0IXh4= Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.swiftmodule - UjQ3UoY0VjWMRnXDDFVj7jFijW4= + LZC8nsaGNlHFY9UaqePFCsulu90= Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.abi.json - 4OiBWpz5UxEzdl57JsICEQ4F9NA= + vzEqUSED2e1bqDLkFAijVcVZ2r4= Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface - xRjOCysMJsSPY+9eTrqRtdFe3KE= + keAZvq1ivz/hnU4N7JFoRSs07Gw= Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.swiftdoc - 4P/4cIlB/Nh8WZzPDTIGyhAPGlo= + mTQCr/RenfiWKAGyM+c17FiXCtU= Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.swiftinterface - xRjOCysMJsSPY+9eTrqRtdFe3KE= + keAZvq1ivz/hnU4N7JFoRSs07Gw= Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.swiftmodule - 5HQFgj7fC7m06eXo5Ytu21+oIY0= + echmqNzv/wPj43i3UE1O8muTRRE= files2 @@ -75,14 +75,14 @@ hash2 - LSoEIkNY27EfDHwcW7wdwbYH8ONhZ/fSxNT9uVfagVw= + qvoS2gLGZ2ZCmKoEieHC6UQ3g9r2oihtTJQffNDum+4= Headers/nfclib.h hash2 - ymPa2WAUR0jF5FEoU0+axZmV4642rRG23TO1gDvNuV8= + ato8oM1EYZWKPix+JCGNbaTiimO2/DI7iqU3Fr+vaq4= Modules/module.modulemap @@ -96,84 +96,84 @@ hash2 - P/nC9yTAlkhdiWxnQQENi7tKCcPyLgvutCzIYjGlRQ0= + 83Vvvp7cCMwJOA7jZLXSF0XzUnRoqPPjEsbBmXQT3cc= Modules/nfclib.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo hash2 - jiYnn+OEOc3oBzTnm5T1orTALg+93cpYy0hZIxDnZMI= + Vu03oxkB6c6q5a5GPbxuC+MAeYcD/IdircfiGLe7Bpc= Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.abi.json hash2 - pjR8TuN+Hj+jWNyWbOm0qGMtirjnK1E1SPaHOrA5s48= + Fopt30thXyiwuQIzjrQWDTR0Hj2xdtcvWgyEbicAqOM= Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface hash2 - NX3+172lBD/L5Zi2zJlKYi3U9mfH3WWAxM9yyN4+uL4= + 1Z7xI8cS679+svRVXotD1zl6pNErjOKLCLBA5wHu+Sg= Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.swiftdoc hash2 - Fj+VBLpM9fD70s/q06gXlboKB6NMB1R9Rfmdt4/be28= + eyJx1I1IL5ZElpjQ8pkaVdOYBQJNVFiiBteeoav7Qi8= Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.swiftinterface hash2 - NX3+172lBD/L5Zi2zJlKYi3U9mfH3WWAxM9yyN4+uL4= + 1Z7xI8cS679+svRVXotD1zl6pNErjOKLCLBA5wHu+Sg= Modules/nfclib.swiftmodule/arm64-apple-ios-simulator.swiftmodule hash2 - jtLvbe9Pry6hKxL5ThAaY9hQ5Y3Ym7d72x+r/gCih0U= + iqwAuw+nL+yWn1KJPAivg+HgxiYkg56UyZlHliBSdu8= Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.abi.json hash2 - pjR8TuN+Hj+jWNyWbOm0qGMtirjnK1E1SPaHOrA5s48= + Fopt30thXyiwuQIzjrQWDTR0Hj2xdtcvWgyEbicAqOM= Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface hash2 - enXs0QlOxyTXA/ehBE8/xDMwZsRQUiYXIHR6u5vxSwg= + d0Y5M5LJ6OeVglQLAvSHomIBibVCRt7jifHlAu/uVhw= Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.swiftdoc hash2 - GtizmZtdTOysZFMGAj536JSdklStYq1VsvEjdTO4jF8= + I4jC4jfLwbDMj3aoRDfsFNTreSF6tr1o4LtS32qPt5E= Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.swiftinterface hash2 - enXs0QlOxyTXA/ehBE8/xDMwZsRQUiYXIHR6u5vxSwg= + d0Y5M5LJ6OeVglQLAvSHomIBibVCRt7jifHlAu/uVhw= Modules/nfclib.swiftmodule/x86_64-apple-ios-simulator.swiftmodule hash2 - BsrnVKUvlDfE8KLipciyI6jfMIfCFMVm3Xj8haGs7Lg= + yMB5ecAD/4G0BgqKvTl8IVfymHZQMAg5OdQaVROw+i0= diff --git a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/nfclib b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/nfclib index 76ee734cf..81ca9efa2 100755 Binary files a/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/nfclib and b/Modules/IdCardLib/Frameworks/nfclib.xcframework/ios-arm64_x86_64-simulator/nfclib.framework/nfclib differ diff --git a/RIADigiDoc/Domain/NFC/IdCardError.swift b/RIADigiDoc/Domain/NFC/IdCardError.swift index 7958f3e73..e0758c633 100644 --- a/RIADigiDoc/Domain/NFC/IdCardError.swift +++ b/RIADigiDoc/Domain/NFC/IdCardError.swift @@ -17,9 +17,10 @@ extension IdCardError { public init(_ nfcError: nfclib.IdCardError) { switch nfcError { case .wrongCAN: self = .wrongCAN - case .wrongPIN(let tries): self = .wrongPIN(triesLeft: tries) + case .wrongPIN(_, let tries): self = .wrongPIN(triesLeft: tries) case .invalidNewPIN: self = .invalidNewPIN case .sessionError: self = .sessionError + case .notActivated: self = .notActivated @unknown default: self = .sessionError } } diff --git a/RIADigiDoc/UI/Component/MyEid/MyEidPinChangeView.swift b/RIADigiDoc/UI/Component/MyEid/MyEidPinChangeView.swift index b10541b16..ee1d2caee 100644 --- a/RIADigiDoc/UI/Component/MyEid/MyEidPinChangeView.swift +++ b/RIADigiDoc/UI/Component/MyEid/MyEidPinChangeView.swift @@ -80,7 +80,7 @@ struct MyEidPinChangeView: View { private var flowDescription: String { let pinLengthRequirement = languageSettings.localized( "PIN length requirement", - [codeType.name, String(codeType.minimumLength), String(Constants.Validation.PinMaximumLength)] + [codeType.name, String(codeType.minimumLength), String(codeType.maximumLength)] ) let newPinDifferenceRequirement = languageSettings.localized( @@ -89,8 +89,8 @@ struct MyEidPinChangeView: View { let pukLengthRequirement = languageSettings.localized( "PIN length requirement", - [CodeType.puk.name, String(Constants.Validation.PukMinimumLength), - String(Constants.Validation.PinMaximumLength)] + [CodeType.puk.name, String(CodeType.puk.minimumLength), + String(CodeType.puk.maximumLength)] ) let pukCodeInfo = languageSettings.localized("PUK code info", []) diff --git a/RIADigiDoc/ViewModel/MyEid/MyEidPinChangeViewModel.swift b/RIADigiDoc/ViewModel/MyEid/MyEidPinChangeViewModel.swift index 27d6c880f..7d895f67d 100644 --- a/RIADigiDoc/ViewModel/MyEid/MyEidPinChangeViewModel.swift +++ b/RIADigiDoc/ViewModel/MyEid/MyEidPinChangeViewModel.swift @@ -139,13 +139,7 @@ final class MyEidPinChangeViewModel: MyEidPinChangeViewModelProtocol, Loggable { } func isPINLengthValid(for codeType: CodeType, pin: [UInt8]) -> Bool { - guard codeType.validLength.contains(pin.count) else { - return false - } - - return pin.allSatisfy { - return Character(UnicodeScalar($0)).isNumber - } + return codeType.validateFormat(pin) == nil } func verifyNewCode() { @@ -308,6 +302,10 @@ final class MyEidPinChangeViewModel: MyEidPinChangeViewModelProtocol, Loggable { isBlocked: true ) } + case .invalidNewPIN: + errorMessage = "PIN too easy" + errorMessageExtraArguments = [pinType.name] + resetToCurrentPinEntryStep() case .sessionError: errorMessage = "General error" errorMessageExtraArguments = [] @@ -415,30 +413,6 @@ final class MyEidPinChangeViewModel: MyEidPinChangeViewModelProtocol, Loggable { } } -extension CodeType { - var minimumLength: Int { - switch self { - case .pin1: - return Constants.Validation.Pin1MinimumLength - case .pin2: - return Constants.Validation.Pin2MinimumLength - case .puk: - return Constants.Validation.PukMinimumLength - @unknown default: - return 0 - } - } - - var validLength: ClosedRange { - switch self { - case .pin1, .pin2, .puk: - return minimumLength...Constants.Validation.PinMaximumLength - @unknown default: - return 0...0 - } - } -} - extension Array where Element == UInt8 { mutating func resetAllBytes() { for indice in indices { self[indice] = 0 } diff --git a/RIADigiDoc/ViewModel/Signing/NFC/NFCViewModel.swift b/RIADigiDoc/ViewModel/Signing/NFC/NFCViewModel.swift index d24118a5c..cba059447 100644 --- a/RIADigiDoc/ViewModel/Signing/NFC/NFCViewModel.swift +++ b/RIADigiDoc/ViewModel/Signing/NFC/NFCViewModel.swift @@ -823,23 +823,15 @@ class NFCViewModel: NFCViewModelProtocol, Loggable { } private func checkPINNumberValidity(pinNumber: String, pinType: CodeType?) { - let minLen = if pinType == .pin1 { - Constants.Validation.Pin1MinimumLength - } else if pinType == .pin2 { - Constants.Validation.Pin2MinimumLength - } else { - Constants.Validation.PukMinimumLength - } + let codeType = pinType ?? .puk - let maxLen = Constants.Validation.PinMaximumLength - - guard pinNumber.isEmpty || ( - pinNumber.count >= minLen && - pinNumber.count <= maxLen && - pinNumber.allSatisfy { $0.isNumber } - ) else { + guard pinNumber.isEmpty || codeType.validateFormat(Array(pinNumber.utf8)) == nil else { pinNumberErrorKey = "PIN length requirement" - pinNumberErrorExtraArguments = [pinType?.name ?? "", String(minLen), String(maxLen)] + pinNumberErrorExtraArguments = [ + pinType?.name ?? "", + String(codeType.minimumLength), + String(codeType.maximumLength) + ] return } pinNumberErrorKey = "" diff --git a/RIADigiDocTests/ViewModel/MyEid/MyEidPinChangeViewModelTests.swift b/RIADigiDocTests/ViewModel/MyEid/MyEidPinChangeViewModelTests.swift index 9c1ddbc4f..624854fb7 100644 --- a/RIADigiDocTests/ViewModel/MyEid/MyEidPinChangeViewModelTests.swift +++ b/RIADigiDocTests/ViewModel/MyEid/MyEidPinChangeViewModelTests.swift @@ -441,4 +441,52 @@ final class MyEidPinChangeViewModelTests { #expect(mockOperationUnblockPin.startReadingCallCount == 1) } + + @Test + func isPINLengthValid_pin1TooLong() async throws { + let viewModel = MyEidPinChangeViewModel( + pinAction: .change, + codeType: .pin1, + personalCode: "39001010000", + actionMethod: .idCardViaNFC, + sharedMyEidSession: mockSharedMyEidSession, + operationChangePin: mockOperationChangePin, + operationUnblockPin: mockOperationUnblockPin + ) + + let result = viewModel.isPINLengthValid(for: .pin1, pin: Array("1234567890123".utf8)) + + #expect(result == false) + } + + @Test + func submit_cardRejectingNewPinReportsRejectionRatherThanGeneralError() async throws { + mockOperationChangePin.startChangingHandler = { _, _, _, _, _ in + throw IdCardInternalError.invalidNewPin + } + + let viewModel = MyEidPinChangeViewModel( + pinAction: .change, + codeType: .pin1, + personalCode: "39001010000", + actionMethod: .idCardViaNFC, + sharedMyEidSession: mockSharedMyEidSession, + operationChangePin: mockOperationChangePin, + operationUnblockPin: mockOperationUnblockPin + ) + + viewModel.input = "4862" + await viewModel.submit(nfcStringsUtil: makeNFCStringsUtil()) + + viewModel.input = "8261" + await viewModel.submit(nfcStringsUtil: makeNFCStringsUtil()) + + viewModel.input = "8261" + await viewModel.submit(nfcStringsUtil: makeNFCStringsUtil()) + + #expect(viewModel.errorMessage == "PIN too easy") + #expect(viewModel.errorMessageExtraArguments == [CodeType.pin1.name]) + #expect(viewModel.step == .current) + #expect(viewModel.isSuccess == false) + } } diff --git a/RIADigiDocTests/ViewModel/Signing/NFC/NFCViewModelTests.swift b/RIADigiDocTests/ViewModel/Signing/NFC/NFCViewModelTests.swift index 6d8edaa73..ddeb2854a 100644 --- a/RIADigiDocTests/ViewModel/Signing/NFC/NFCViewModelTests.swift +++ b/RIADigiDocTests/ViewModel/Signing/NFC/NFCViewModelTests.swift @@ -989,7 +989,7 @@ final class NFCViewModelTests { mockOperationWebEidAuth.startOperationHandler = { _, _, _, _, _, _ in - throw nfclib.IdCardInternalError.remainingPinRetryCount(2) + throw nfclib.IdCardInternalError.remainingPinRetryCount(codeType: .pin1, count: 2) } _ = await viewModel.auth( @@ -1066,7 +1066,7 @@ final class NFCViewModelTests { func certificate_showsPinRetryCountWhenNfclibReportsRemainingRetries() async { mockOperationReadCert.startReadingHandler = { _, _ in - throw nfclib.IdCardInternalError.remainingPinRetryCount(1) + throw nfclib.IdCardInternalError.remainingPinRetryCount(codeType: .pin2, count: 1) } _ = await viewModel.certificate( @@ -1167,7 +1167,7 @@ final class NFCViewModelTests { mockOperationWebEidSign.startOperationHandler = { _, _, _, _, _, _, _ in - throw nfclib.IdCardInternalError.pinVerificationFailed + throw nfclib.IdCardInternalError.pinVerificationFailed(codeType: .pin2) } _ = await viewModel.signWebEid( @@ -1455,4 +1455,76 @@ final class NFCViewModelTests { #expect(viewModel.nfcAlertMessageKey == "ID card courier must activate to decrypt") #expect(viewModel.nfcAlertMessageUrl == "ID card courier activate URL") } + + @Test + func sign_showsCourierAlertWhenNfclibReportsCardNotActivated() async { + let mockContainer = SignedContainerProtocolMock() + mockContainer.getRawContainerFileHandler = { + URL(fileURLWithPath: "/test/container.asice") + } + mockDataStore.getSelectedLanguageHandler = { "et" } + mockUserAgentUtil.appInfoHandler = { _, _ in "TestUserAgent" } + + mockOperationReadCertAndSign.startOperationHandler = + { _, _, _, _, _, _, _ in + throw nfclib.IdCardInternalError.notActivated + } + + let result = await viewModel.sign( + canNumber: "123456", + pin2: "12345", + roleData: RoleData(roles: [], city: "", state: "", country: "", zipCode: ""), + signedContainer: mockContainer, + strings: mockNFCSessionStrings + ) + + #expect(result == nil) + #expect(viewModel.showNfcAlertMessage) + #expect(viewModel.nfcAlertMessageKey == "ID card courier must activate to sign") + #expect(viewModel.nfcAlertMessageUrl == "ID card courier activate URL") + } + + @Test + func decrypt_keepsTriesLeftWhenNfclibReportsWrongPinCarryingCodeType() async { + mockOperationDecrypt.processDecryptHandler = { _, _, _, _, _ in + throw nfclib.IdCardInternalError.remainingPinRetryCount(codeType: .pin1, count: 2) + } + + let result = await viewModel.decrypt( + CAN: "123456", + pin1: "1234", + cryptoContainer: nil, + strings: mockNFCSessionStrings + ) + + #expect(result == nil) + #expect(viewModel.nfcErrorKey == "PIN verification error multiple") + #expect(viewModel.nfcErrorExtraArguments == [CodeType.pin1.name, "2"]) + } + + @Test + func isActionEnabled_rejectsPinLongerThanMaximum() { + let result = viewModel.isActionEnabled( + canNumber: "123456", + pinNumber: "1234567890123", + pinType: .pin1, + actionType: .decrypt + ) + + #expect(!result) + #expect(viewModel.pinNumberErrorKey == "PIN length requirement") + } + + @Test + func isActionEnabled_leavesErrorKeyEmptyForUntouchedPinField() { + let result = viewModel.isActionEnabled( + canNumber: "123456", + pinNumber: "", + pinType: .pin1, + actionType: .decrypt + ) + + #expect(!result) + #expect(viewModel.pinNumberErrorKey == "") + } }