Skip to content

Commit

Permalink
Removed testing code
Browse files Browse the repository at this point in the history
  • Loading branch information
r00li committed Aug 17, 2022
1 parent c2b7dd2 commit d6d6fcf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ public class ChipAuthenticationInfo : SecurityInfo {
/// - Returns: the cipher algorithm type
/// - Throws: InvalidDataPassed error if invalid oid specified
public static func toCipherAlgorithm( oid : String ) throws -> String {
return "AES"
if ID_CA_DH_3DES_CBC_CBC_OID == oid
|| ID_CA_ECDH_3DES_CBC_CBC_OID == oid {
return "DESede";
Expand Down
3 changes: 1 addition & 2 deletions Sources/NFCPassportReader/DataGroups/PACEInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ public class PACEInfo : SecurityInfo {
}

public func getCipherAlgorithm() throws -> String {
//return try PACEInfo.toCipherAlgorithm(oid: oid); // Either DESede or AES.
return "AES"
return try PACEInfo.toCipherAlgorithm(oid: oid); // Either DESede or AES.
}

public func getDigestAlgorithm() throws -> String {
Expand Down

0 comments on commit d6d6fcf

Please sign in to comment.