[android-developers] Re: AES in Gingerbread
I have exactly the same problem. How did you handle this Steve?
On Dec 11, 5:30 am, Steve Hugg <hun...@fasterlight.com> wrote:
> More debugging on this issue...
>
> I am using this method to generate keys from a passphrase:
>
> KeyGenerator kgen = KeyGenerator.getInstance("AES", "BC");
> SecureRandom sr = SecureRandom.getInstance("SHA1PRNG", "Crypto");
> sr.setSeed(seed);
> kgen.init(128, sr);
> SecretKey skey = kgen.generateKey();
> byte[] raw = skey.getEncoded();
>
> This results in a different key for a given passphrase on 2.3 than it
> does on 1.5-2.2.
>
> Froyo returns this information for KeyGenerator and SecureRandom
> objects:
>
> AES BC version 1.34
> SHA1PRNG Crypto version 1.0
>
> Gingerbread returns:
>
> AES BC version 1.45
> SHA1PRNG Crypto version 1.0
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home