问题
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