Open gasparyanyur opened 1 year ago
@number571 plz help to solve this error
Hm... This problem from CryptGenKey(hProv, AT_SIGNATURE, CRYPT_EXPORTABLE, &hKey)
C code line. You can find out the cause of the error in more detail using printf of the returned code in C and compare it with the Crypto Pro constants http://cpdn.cryptopro.ru/default.asp?url=content/csp_trunk/html/Titul.html. Maybe problem in CRYPT_EXPORTABLE param. I'll also try to see.
@number571 thank you very much.
@number571 what is the format for container name when trying to make a new config instance? jsut mkk or \HDIMAGE\mkk?
Also just noticed the error caused when trying to import package. Maybe any init function has been called and the error has been catched.
@number571 just noticed that go test also doesnt pass. package github.com/number571/go-cryptopro@v1.0.3/gost_r_34_10_2012 go test -v -bench=. -benchtime=100x
On my ubuntu 20 machine I have already installed and configured CryptoPro. So now I am trying to sign message using number571/go-cryptopro but getting the following error:
Here is the code