OpenSSL3.x PKCS7_encrypt API with FIPS provider error:1C8000A8:Provider routines::invalid padding…

Migrating from PKCS7 API to CMS API