openssl: The function of RSA_GENERATE_KEY_EX that blocks on embedded ARM platforms
openssl version openssl-1.1.1k
int main()
{
RSA *rsa = RSA_new();
int ret = 0;
BIGNUM* bne = BN_new();
ret=BN_set_word(bne,RSA_F4);
ret = RSA_generate_key_ex(rsa,512,bne,NULL);
return 0;
}
The RSA_generate_key_ex function is blocked
arm-linux-gcc version
gcc version 6.5.0 (Buildroot 2018.02-rc3-g03cc10792-dirty)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 34 (15 by maintainers)
That explains why there are zero words in the RNG output. The culprit is the configuration line:
linux-x86_64is definitely wrong. This is configuring for an x86 platform not an ARM one. That it is possible to get something that even kind of remotely works is a miracle. Replace this with a target that includesarmin it’s name. You’d also be able to drop theno-asmfor a performance increase and the fuzzing options because they aren’t useful here. Possibly some of the other options could disappear too.