• Home
Name Date Size #Lines LOC

..--

patches/03-May-2024-10,92510,611

src/main/java/org/bouncycastle/03-May-2024-83,59356,363

Android.mkD03-May-20243.9 KiB8361

CleanSpec.mkD03-May-20242.2 KiB500

MODULE_LICENSE_BSD_LIKED03-May-20240

NOTICED03-May-20241.1 KiB1713

README.androidD03-May-20241.5 KiB5332

ThirdPartyProject.propD03-May-2024319 1110

bouncycastle.configD03-May-202420.5 KiB425421

bouncycastle.versionD03-May-202445 32

import_bouncycastle.shD03-May-20246.8 KiB243138

jarjar-rules.txtD03-May-202440 21

README.android

1Bouncy Castle on the Android platform.
2---
3
4The code in this directory is based on $BOUNCYCASTLE_VERSION in the
5file bouncycastle.version. See patches/README for more information on
6how the code differs from $BOUNCYCASTLE_VERSION.
7
8Porting New Versions of Bouncy Castle.
9--
10
11The following steps are recommended for porting new Bouncy Castle versions.
12
131) Retrieve the appropriate version of the Bouncy Castle source from
14   www.bouncycastle.org/latest_releases.html (in bcprov-jdk*-*.tar.gz
15   file). Check the checksum (found at http://bouncycastle.org/checksums.html) with:
16
17     md5sum bcprov-jdk*-*.tar.gz
18     sha1sum bcprov-jdk*-*.tar.gz
19
202) Update the variables in bouncycastle.config and bouncycastle.version as appropriate.
21   At the very least you will need to update the bouncycastle.version.
22   Similarly update ThirdPartyProject.prop.
23
243) Run:
25
26     ./import_bouncycastle.sh import bcprov-jdk*-*.tar.gz
27
284) If there are any errors, then modify bouncycastle.config, bouncycastle.version
29   and patches in patches/ as appropriate.  You might want to use:
30
31     ./import_bouncycastle.sh regenerate patches/*.patch
32
33   Repeat step 3.
34
355) Cleanup before building with:
36
37     m -j16 clean-bouncycastle
38
396) Build the bouncycastle target from the external/bouncycastle directory with:
40
41     mm -j16 snod && adb sync system
42
43   If there are build errors, then patches/*.mk or bouncycastle.config
44   may need updating.
45
467) Run tests to make sure things are working:
47
48     See external/openssl/README.android for test instructions
49
508) Do a full build before checking in:
51
52     m -j16
53