Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Illegal Instruction (core dumped) createPublicKey(...) on Ubuntu #57

Open
geertberkers opened this issue Nov 12, 2019 · 2 comments
Open

Comments

@geertberkers
Copy link

BlueRSA failed to create data from base64 string on Ubuntu.
The illegal instruction is from the forced unwrap of the Data object, which is nil.
Running on MacOS this works without any problems.

Screenshot 2019-11-12 13 25 01

I added extra Log lines in CryptorRSAKey to find this bug.

Screenshot 2019-11-12 13 21 23

@geertberkers
Copy link
Author

Found this: https://stackoverflow.com/a/58819331/4713369

And the problem is solved for me when using: let data = Data(base64Encoded: base64, options: .ignoreUnknownCharacters)!

@geertberkers
Copy link
Author

I'm not sure, but this might also be a fix for #52 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant