You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the same exact code on MacOS and on Linux:
guard let decryptedData = try CryptorRSA.createEncrypted(with: data).decrypted(with: privateKey, algorithm: .sha1)?.data
I am attempting to decrypt data with a private key. It works properly on MacOS, but when running on Linux I get a crash with error:
Fatal error: Can't form Range with upperBound < lowerBound: file Swift/Range.swift, line 728
I noticed this is coming from line 697 in Sources/CryptorRSA.swift during the step with the comment "Extract encryptedKey, encryptedData, encryptedIV from data"
The text was updated successfully, but these errors were encountered:
ksinghal
changed the title
Crash on Linux
Linux. Crash when decrypting: "Fatal error: Can't form Range with upperBound < lowerBound"
Apr 22, 2021
OS: Linux
OpenSSL Version: 1.1.1
I am using the same exact code on MacOS and on Linux:
I am attempting to decrypt data with a private key. It works properly on MacOS, but when running on Linux I get a crash with error:
I noticed this is coming from line 697 in
Sources/CryptorRSA.swift
during the step with the comment "Extract encryptedKey, encryptedData, encryptedIV from data"The text was updated successfully, but these errors were encountered: