Openssl FIPS version for iPhone armv7, armv7s & arm64

感情迁移 提交于 2019-12-25 06:28:43

问题


I'm trying to compile OpenSSL with the FIPS module for armv7, armv7s and arm64. The scripts I am using are

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

however, this script errors out with

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

I have also tried

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

which errors out with

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

Does anyone have any experience and success with getting openssl to compile for iOS armv7, armv7s and arm64?

Update: For clarification I have followed the OpenSSL documentation and got it to build fine for armv7. However, my app supports armv7s and arm64 as well so it will not compile with the openssl fips armv7 version. Because of this I need to also compile openssl for the other platforms.

来源:https://stackoverflow.com/questions/38662794/openssl-fips-version-for-iphone-armv7-armv7s-arm64

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!