
These calls to bouncycastle were just used because the library was there. Now with the upcoming 'basic' build flavor, there will be no need for bouncycastle. It is required for ZipSigner signing of swap indexes, and TLS support in the swap NanoHTTPD webserver.