regarding the example here 
https://android.googlesource.com/platform/development/+/master/samples/ApiDemos/src/com/example/android/apis/security/KeyStoreUsage.java
 - 
this is pretty much identical to my code. 

It seems that the cause for this not working in my app is because I has 
replace the default security provider with SC - with the following 

static {
    Security.insertProviderAt(new 
org.spongycastle.jce.provider.BouncyCastleProvider(), 1);
}

Which causes the key generation to fail on hardware backed devices - this 
can be replication using the android sample project referenced above.

Thanks for the help :)


On Saturday, 15 March 2014 06:04:28 UTC, Nikolay Elenkov wrote:
>
>
>
> On Saturday, March 15, 2014, Kenny Root <[email protected] <javascript:>> 
> wrote:
>
>> It might be more instructive to look at the Android SDK's example usage. 
>> I believe it's included in one of the SDK Examples downloads, but you can 
>> see the source code here:
>>
>>
>> https://android.googlesource.com/platform/development/+/master/samples/ApiDemos/src/com/example/android/apis/security/KeyStoreUsage.java
>>
>>
>> I think the key generation part is the same, it shouldn't fail unless the 
> implementation on the device is broken. What device is this > OP
>
>
> Also the Vault samples shows how to wrap AES keys, should be helpful.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Security Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/android-security-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to