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
After attempting to upgrade from v1.x of this library to v2.x, there is a fatal exception thrown in the encrypt() method when calling the following method:
// In react native JS Code:awaitRSAKeychain.decrypt(encryptedBase64Data,KEY_TAG)
Which throws the following exception in the encrypt() method in RSAECNative.swift:
Unexpectedly found nil while unwrapping an Optional value
This only occurs if the key pair was initially created using v1.x of the library before it was re-written using Swift.
The text was updated successfully, but these errors were encountered:
@saeedkargosha maybe you can chime in since you did the swift rewrite -- is your rewrite for this method equivalent to the Objective C version?
If not -- maybe you can point me to some docs where I can find the equivalent methods and I'll be happy to add a PR to add methods in the swift version that are backwards-compatible for people trying to upgrade/
After attempting to upgrade from v1.x of this library to v2.x, there is a fatal exception thrown in the
encrypt()
method when calling the following method:Which throws the following exception in the
encrypt()
method inRSAECNative.swift
:This only occurs if the key pair was initially created using v1.x of the library before it was re-written using Swift.
The text was updated successfully, but these errors were encountered: