OF-2834: Bump BouncyCastle from 1.76 to 1.78.1
The OWASP dep-scan tool (https://github.com/owasp-dep-scan/dep-scan) has identified various CVEs related to the version of the BouncyCastle dependency that we're currently using. This commit updates the library to resolve that issue.
(cherry picked from commit eed8ba82e313e3589d7d0e18bfe18415b17a4ad8)