It throws the following exception in both android and in java: java.security.NoSuchProviderException: no such provider: BC
How to correct this?
I had not added the provider in the policy file. After doing that I am getting the following exception.
java.security.NoSuchAlgorithmException: no such algorithm: SHA1PRNG for provider BC
Does it mean that bouncy castle does not provide an implementation of "SHA1PRNG" algorithm? But the whole reason I imported bouncy castle was to have a common provider in both android and in java, so that the sequence of random numbers generated with the same seed are the same in both android and java.
What is target sdk version in your android application?
以上就是Bouncy castle no such provider exception的详细内容，更多请关注web前端其它相关文章！