Closed sjacs5537 closed 7 years ago
I tried to use a new tagPrefix, it seems it will work after init setting with keysize = 1024 and change back to 512
localHeimdall = Heimdall(tagPrefix: "com.test", keySize: 1024)
If keysize = 512 during first init, the result must return nil no matter I set back to 1024 and reinstall the app
Is there a specific reason for such a small key?
We use bluetooth 4.0 to transmit data and RSA cryptography for data transmission. Considered with security issues and performance, the key size is arranged as 512 bits.
The problem is simple, with the updated encryption logic, the smallest usable size for the key is 1024. You can read about it in #37 and #36. If you absolutely must use a size 512 key, then my immediate recommendation would be to not use 1.0.0 and instead use the previous version (which is less secure, but works with a smaller key).
Thanks for getting back to me so soon.
I have already switched back to V0.3.0, and hope it will support a smaller key if possible in future
Hi,
I use V0.3.0 which can encrypt the text by following code successfully
but the result become nil after I upgrade to V1.0.0
I tried to set a breakpoint in
public func encrypt(data: NSData) -> NSData?
in"Heimdall.swift", I notice that the status is -50 and will return nil inCould you please help?