среда, 9 июля 2014 г., 21:26:55 UTC+3 пользователь agl написал: > > On Wednesday, July 9, 2014 4:39:30 AM UTC-7, Vladislav Egorov wrote: >> >> Someone tell me how to work in a Golang with X509 certificates and >> cryptography Russian GOST (CryptoPro CSP), which can have a library, or who >> have worked? >> Grateful for any help in advance. >> > > There is not, and there is no plan for, any GOST support I'm afraid. > > > Cheers >
> AGL > It is fairly easy to implement in the С library, and then call. I do not know what is required, to pkcs7sign files + gost I implemented in go package main // #cgo CFLAGS: -I ./ // #cgo LDFLAGS: -L ./ -lpkcs7sign -lssl -lcrypto // #include <pkcs7sign.h> import "C" ..... fcert, err := ioutil.ReadFile(path) if err != nil{ fmt.Printf("Error: error open cert file"); <------>os.Exit(-1) } scert := string(fcert) ccert := C.CString(string(scert)) sbuff := C.CString(buff) sbuffout := C.CString(sbout) i := C.pkcs7sign(ccert, sbuff, sbuffout) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.