Is there a fast Big Integer implementation for iOS? (cryptography needs)

I need the following BigInt feature in iOS, specifically the ModPowMonty function:


https://github.com/bcgit/bc-csharp/blob/bb2b60811f0010ff0bff4a1acdd866087c179073/crypto/src/math/BigInteger.cs#L1930



It is the source of all of my application's slowness:

http://stackoverflow.com/q/37645098/328397

Replies

iOS does not have any big integer APIs (there are various big integer subsystems used by the OS, but none of them have a public API available to third-party developers). There are various third-party libraries available for this, but I’ve not used any of them enough to give you a specific recommendation.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Seems that Safari offers SimpleCrypto. It has a BigInteger (or should have) one according to W3C.

https://www.w3.org/TR/WebCryptoAPI/#big-integer


What are your thoughts about leveraging this from a Xamarin/iOS app? Or a Mac App?

Seems that Safari offers SimpleCrypto.

Ah, interesting. My previous response assumed that you were looking for a native API.

What are your thoughts about leveraging this …?

I don’t have any direct experience with Web Crypto API, so I can’t offer any input on that.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"