In the CI runs of the libgcrypt mirror on GitLab (https://gitlab.com/redhat-crypto/libgcrypt/libgcrypt-mirror/-/pipelines?page=1&scope=all&ref=master), tests/basic.c and tests/keygen.c have both failed once in forced FIPS mode with the error message
error generating RSA key: Number is not prime
The specific runs where this happened are:
- https://gitlab.com/redhat-crypto/libgcrypt/libgcrypt-mirror/-/jobs/2262073184 line 2138 for tests/basic.c. Note that the error message is inside of the folded output that starts in line 2082.
- https://gitlab.com/redhat-crypto/libgcrypt/libgcrypt-mirror/-/jobs/2179912723 line 2146 for tests/keygen.c. Fold starts in line 2086.
It would be great if we could improve the stability of the tests so that this does not happen.