Openssl FIPS版iPhone for armv7,armv7s& arm64

时间:2016-07-29 15:47:07

标签: ios openssl fips

我试图使用FIPS模块为armv7,armv7s和arm64编译OpenSSL。我正在使用的脚本是

https://github.com/virtru/iOS-openSSL-FIPS/tree/develop

但是,此脚本错误地显示

Undefined symbols for architecture armv7:
  "_FIPS_ec_group_new_curve_gf2m", referenced from:
      _EC_GROUP_new_curve_GF2m in libcrypto.a(ec_cvt.o)
  "_fips_ec_gf2m_simple_method", referenced from:
      _EC_GF2m_simple_method in libcrypto.a(ec2_smpl.o)
ld: symbol(s) not found for architecture armv7

我也试过

https://gist.github.com/jostster/ebbc6925c668b632d8b185293080256c

错误
./fips_standalone_sha1 fipscanister.o > fipscanister.o.sha1
/bin/sh: ./fips_standalone_sha1: Bad CPU type in executable

有没有人在使用openssl编译iOS armv7,armv7s和arm64时有任何经验和成功?

更新:为了澄清,我已经按照OpenSSL文档进行了操作,并为armv7建立了良好的版本。但是,我的应用程序也支持armv7s和arm64,所以它不会使用openssl fips armv7版本进行编译。因此,我还需要为其他平台编译openssl。

0 个答案:

没有答案