Hi guys!
I need help, please.
I don't know, how do it. Maybe anyone has experience with signing/verify a
docs/strings with GOST, and he will help me with...
I have little code, which has can't load `md_gost94'... And I don't know how
to use API for the GOST... :(
My code are:
[CODE=cpp]
#include <openssl/conf.h>
#include <openssl/err.h>
#include <openssl/rsa.h>
#include <openssl/sha.h>
#include <openssl/md5.h>
#include <openssl/pem.h>
#include <openssl/x509.h>
#include <openssl/x509v3.h>
#include <openssl/crypto.h>
#include <openssl/ssl.h>
#include <openssl/ssl2.h>
#include <openssl/ssl3.h>
#include <openssl/ssl23.h>
#include <openssl/evp.h>
#include <openssl/engine.h>
#include <stdio.h>
// g++ gost.cxx -o gost -lssl
int main(){
int ret = -1;
SSL_library_init();
const EVP_MD *md = NULL;
if((md = EVP_get_digestbyname("md_gost94")) == NULL){
printf("cannot load the `md_gost94'!\n");
goto ENDFUNC;
}
else { printf("Ok!\n"); }
ret = 0;
ENDFUNC:
md = NULL;
return ret;
}
[/CODE]
PS:
Platform: Linux
Version of OpenSSL: 1.0.0e
--
Regards.
--
Regards.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]