BlueRSA icon indicating copy to clipboard operation
BlueRSA copied to clipboard

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

Open geertberkers opened this issue 5 years ago • 2 comments

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 avatar Nov 12 '19 12:11 geertberkers

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 avatar Nov 12 '19 13:11 geertberkers

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

geertberkers avatar Nov 12 '19 13:11 geertberkers