本文介绍了Android的,建的OpenSSL FIPS-2.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

极力打造的OpenSSL FIPS-2.0 NDK,以前我很幸运发现了这个链接,很容易做到了。 https://github.com/guardianproject/openssl-android

Trying to build openssl-fips-2.0 with NDK, before I was lucky found this link and did it easily.https://github.com/guardianproject/openssl-android

现在试图做同样的事情对thew最新的OpenSSL FIPS-2.0,得到源从这里开始: http://opensslfoundation.com/testing/validation-2.0/

Now trying to do the same thing against thew latest openssl-fips-2.0, got source from here:http://opensslfoundation.com/testing/validation-2.0/

我一定要遵循有关交叉编译,使构建的文件?而简单的方法?

Do I have to follow the document about cross-compilation to make a build? And easier approach?

在此先感谢

推荐答案

如何构建OpenSSL的FIPS 2.0在Mac OS X 10.7的Andr​​oid NDK-R8

How to build OpenSSL FIPS 2.0 on Mac OS X 10.7 with android-ndk-r8

  1. 安装JDK,Android的SDK,Android的NDK

  1. Install JDK, android-sdk, android-ndk

在Mac上安装GCC

Install GCC on Mac

Xcode\Preferences\Components\Command Line Tools\install.

  • 有关生成安装环境:

  • Setup environment for build:

    $ANDROID_NDK_HOME is my android-ndk folder
    export ANDROID_NDK=$ANDROID_NDK_HOME
    export FIPS_SIG=$PWD/util/incore
    export PATH="$ANDROID_NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin":$PATH
    export MACHINE=armv7l
    export RELEASE=2.6.32.GMU
    export SYSTEM=android
    export ARCH=arm
    export CROSS_COMPILE="arm-linux-androideabi-"
    export ANDROID_DEV="$ANDROID_NDK/platforms/android-14/arch-arm/usr"
    export HOSTCC=gcc
    

  • 建立FIPS OpenSSL的模块:

  • build fips openssl module:

    gunzip -c openssl-fips-2.0.tar.gz | tar xf -
    cd openssl-fips-2.0/
    ./config
    make
    make install # copy files to /usr/local/ssl/
    

  • 建立FIPS能OpenSSL库(.a)中

  • build fips capable openssl library (.a)

    gunzip -c openssl-1.0.1c.tar.gz | tar xf -
    cd openssl-1.0.1c/
    ./config fips --with-fipslibdir=/usr/local/ssl/fips-2.0/lib/
    make depend
    make
    

  • 你去那里。

    这篇关于Android的,建的OpenSSL FIPS-2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

    08-06 12:54