[aerogear-dev] Queries on "AeroGear-Crypto-iOS" Library
Corinne Krych
corinnekrych at gmail.com
Fri Feb 21 08:15:24 EST 2014
On 21 Feb 2014, at 13:35, Saravanan V <saru2020 at gmail.com> wrote:
>
>
>
> Thanks & Regards,.
> Saravanan V
>
>
> On Fri, Feb 21, 2014 at 4:53 PM, Corinne Krych <corinnekrych at gmail.com> wrote:
>
> On 21 Feb 2014, at 10:42, Saravanan V <saru2020 at gmail.com> wrote:
>
> > Hello Everyone,
> >
> > I just viewed the AeroGear-Crypto-iOS Library here :
> > https://github.com/aerogear/aerogear-crypto-ios
> >
> > Can someone answer few of my questions:
> > * What is the Algorithm being used for Encryption/Decryption?
>
> For symmetric we currently use common crypto and CBC mode (see http://aerogear.org/docs/guides/iOSCookbook/#crypto)
> but we plan for the next release to go with NaCi lib (for a broader range of algorithms - GCM )
>
> --> The GitHub sample does provide Asymmetric example.
> So, what is the Algorithm used for Asymmetric ??
>
> > * What is the Key Length used? (Can we use 1024?)
>
> not yet
> --> "AGRandomGenerator" does provide an API to get random bytes.
> [AGRandomGenerator randomBytes:<length>];
>
> So, does it mean that we could have the key in any size??
>
Nope the fact that AGRandomGenerator take length as parameter is because it is a generic random generator (defaulted to 16bytes)
but for for Asymm we check the length of key:
https://github.com/aerogear/aerogear-crypto-ios/blob/master/crypto-sdk/AGVerifyKey.m#L28
32bytes.
For asymmetric cryptography, we use ed25519.
> > * What is the algorithm used for Digital Signature ?
>
> coming soon
> I leave that one for our security @abstractj ;)
>
> >
> >
> > Thanks & Regards,.
> > Saravanan V
> > _______________________________________________
> > aerogear-dev mailing list
> > aerogear-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
>
> _______________________________________________
> aerogear-dev mailing list
> aerogear-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/aerogear-dev
More information about the aerogear-dev
mailing list