On Tue, Mar 18, 2014 at 12:20 AM, dori <[email protected]> wrote:

>
> 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.
>

If you absolutely have to do this for some reason, you need to explicitly
specify the AndroidOpenSSL provider when generating or using keys.

Still better not to insert SC, but just add it to the provider registry and
have your code use it explicitly, rather than depend on the current
provider order.

-- 
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