Skip to content

Commit ffa9fa8

Browse files
committed
Try decryption regardless of algorithm
1 parent 8464a16 commit ffa9fa8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

passKit/Extensions/YKFSmartCardInterfaceExtension.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ public extension YKFSmartCardInterface {
5959

6060
func decipher(ciphertext: Data) async throws -> Data {
6161
let applicationRelatedData = try await getApplicationRelatedData()
62-
guard applicationRelatedData.decryptionAlgorithm == .rsa else {
63-
throw AppError.yubiKey(.decipher(message: "Encryption key algorithm is not supported. Supported algorithm: RSA."))
64-
}
6562

6663
var error: NSError?
6764
let message = createPGPMessage(from: ciphertext)

0 commit comments

Comments
 (0)