Ошибка wrong ELF class: ELFCLASS32

При попытке подписать файл, получаю ошибку.
./openssl cms -engine pkcs11_gost -sign -in ./file.xml -out ./file.xml.sign  -nodetach -binary -signer ./cert.crt -inkey 50 -keyform engine -outform PEM

Error configuring OpenSSL
140718954862272:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:187:filename(/usr/local/openssl/lib/engines/libpkcs11_gost.so): /usr/local/openssl/lib/engines/libpkcs11_gost.so: wrong ELF class: ELFCLASS32
140718954862272:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
140718954862272:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450:
140718954862272:error:260BC066:engine routines:INT_ENGINE_CONFIGURE:engine configuration error:eng_cnf.c:204:section=pkcs11_section, name=dynamic_path, value=/usr/local/openssl/lib/engines/libpkcs11_gost.so
140718954862272:error:0E07606D:configuration file routines:MODULE_RUN:module initialization error:conf_mod.c:235:module=engines, value=engine_section, retcode=-1

или
./openssl
OpenSSL> engine -t dynamic -pre SO_PATH:/usr/local/openssl/lib/engines/libpkcs11_gost.so -pre ID:pkcs11 -pre LIST_ADD:1 -pre LOAD -pre MODULE_PATH:/usr/local/lib/libsst.so

Error configuring OpenSSL
140557581141696:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:187:filename(/usr/local/openssl/lib/engines/libpkcs11_gost.so): /usr/local/openssl/lib/engines/libpkcs11_gost.so: wrong ELF class: ELFCLASS32
140557581141696:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
140557581141696:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450:
140557581141696:error:260BC066:engine routines:INT_ENGINE_CONFIGURE:engine configuration error:eng_cnf.c:204:section=pkcs11_section, name=dynamic_path, value=/usr/local/openssl/lib/engines/libpkcs11_gost.so
140557581141696:error:0E07606D:configuration file routines:MODULE_RUN:module initialization error:conf_mod.c:235:module=engines, value=engine_section, retcode=-1      
error in engine

потом снова
OpenSSL> engine -t dynamic -pre SO_PATH:/usr/local/openssl/lib/engines/libpkcs11_gost.so -pre ID:pkcs11 -pre LIST_ADD:1 -pre LOAD -pre MODULE_PATH:/usr/local/lib/libsst.so

(dynamic) Dynamic engine loading support
[Success]: SO_PATH:/usr/local/openssl/lib/engines/libpkcs11_gost.so
[Success]: ID:pkcs11
[Success]: LIST_ADD:1
[Failure]: LOAD
140237170341568:error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library:dso_dlfcn.c:187:filename(/usr/local/openssl/lib/engines/libpkcs11_gost.so): /usr/local/openssl/lib/engines/libpkcs11_gost.so: wrong ELF class: ELFCLASS32
140237170341568:error:25070067:DSO support routines:DSO_load:could not load the shared library:dso_lib.c:244:
140237170341568:error:260B6084:engine routines:DYNAMIC_LOAD:dso not found:eng_dyn.c:450:
[Failure]: MODULE_PATH:/usr/local/lib/libsst.so
140237170341568:error:260AC089:engine routines:INT_CTRL_HELPER:invalid cmd name:eng_ctrl.c:134:
140237170341568:error:260AB089:engine routines:ENGINE_ctrl_cmd_string:invalid cmd name:eng_ctrl.c:316:
     [ unavailable ]

Re: Ошибка wrong ELF class: ELFCLASS32

А вы вообще по ГОСТ хотите подписывать? Тогда причем здесь libsst.so?