I did the plugin and I'm not sure about all the Implementation
details, but on iOS the plugin calls this method
https://github.com/aerogear/aerogear-crypto-ios/blob/master/crypto-sdk/AG...
so no GCM it seems this is only done on android. On iOS we have
created a wrapper around NaCI and it seems that is able to do GCM, but
we don't use it there because it's not the most common algorithm.
On Wed, Jun 17, 2015 at 3:06 PM, Niko - Whitebox.one <niko(a)whitebox.one> wrote:
Hi,
I am interested in your crypto API specially on iOS and via the cordova
plugin.
The docs at
https://aerogear.org/docs/specs/aerogear-crypto/
clearly state that on iOS the GCM mode for symmetric AES encryption is not
supported (because iOS CommonCrypto itself does not provide it as a public
interface)
And reading the latest code in the corresponding cordova plugin tells me the
same.
Nevertheless, the docs of the cordova plugin at
https://aerogear.org/docs/specs/aerogear-cordova/AeroGear.Crypto.html
and
https://github.com/edewit/aerogear-crypto-cordova/blob/master/README.md
state the contrary: it seemslike GCM is supported both on iOS and android.
So my 2 questions are:
- Is GCM mode for AES encryption supported on iOS aerogear crypto module
(and the cordova plugin) ? (my bet is no)
- If not, how difficult would it be to use the private API in iOS
CommonCrypto ? I didnt try it myself, i have just been reading the code....
Thanks in advance :)
Niko
_______________________________________________
Aerogear-users mailing list
Aerogear-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/aerogear-users
--
Cheers,
Erik Jan