Use crypto from Bouncycastle

(Unsure if all devices will have the correct providers. If not, we'll
need to revert this)