There are several changes needed to make libgcrypt code compliant with FIPS 186-4.
Some of the algorithm steps changed since 186-2/3.
According to SP 800-131A, the mod size 1024 and SHA-1 for Digital
Signature Generation, PQG Generation and Key Pair Generation are disallowed
Can you please review the attached patches?