Home | History | Annotate | only in /external/bouncycastle
Up to higher level directory
NameDateSize
Android.mk19-Dec-20103.8K
bouncycastle.config19-Dec-201021.2K
bouncycastle.version19-Dec-201045
CleanSpec.mk19-Dec-20102.2K
import_bouncycastle.sh19-Dec-20106.7K
MODULE_LICENSE_BSD_LIKE19-Dec-20100
NOTICE19-Dec-20101.1K
patches/19-Dec-2010
README.android19-Dec-20101.5K
src/19-Dec-2010
ThirdPartyProject.prop19-Dec-2010319

README.android

      1 Bouncy Castle on the Android platform.
      2 ---
      3 
      4 The code in this directory is based on $BOUNCYCASTLE_VERSION in the
      5 file bouncycastle.version. See patches/README for more information on
      6 how the code differs from $BOUNCYCASTLE_VERSION.
      7 
      8 Porting New Versions of Bouncy Castle.
      9 --
     10 
     11 The following steps are recommended for porting new Bouncy Castle versions.
     12 
     13 1) 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 bouncycastle.org/checksums.html) with:
     16 
     17      md5sum bcprov-jdk*-*.tar.gz
     18      sha1sum bcprov-jdk*-*.tar.gz
     19 
     20 2) 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 
     23 3) Run:
     24 
     25      ./import_bouncycastle.sh import bcprov-jdk*-*.tar.gz
     26 
     27 4) If there are any errors, then modify bouncycastle.config, bouncycastle.version
     28    and patches in patches/ as appropriate.  You might want to use:
     29 
     30      ./import_bouncycastle.sh regenerate patches/*.patch
     31 
     32    Repeat step 3.
     33 
     34 5) Cleanup before building with:
     35 
     36      m -j16 clean-bouncycastle
     37 
     38 6) Build the bouncycastle target from the external/bouncycastle directory with:
     39 
     40      mm -j16 snod && adb sync system
     41 
     42    If there are build errors, then patches/*.mk or bouncycastle.config
     43    may need updating.
     44 
     45 7) Run tests to make sure things are working:
     46 
     47      See external/openssl/README.android for test instructions
     48 
     49 8) Do a full build before checking in:
     50 
     51      m -j16
     52