Trying to implement GOST 28147-89 cipher. Need help

Nikolay Shaplov <[email protected]>
Newsgroups gmane.text.xml.xmlsec
Organization freelance
Message-ID <1715108.tVxoWhZ8OM@lenovo>
Hi!

I am trying to implement GOST 28147-89 cipher.

I've cloned all objects related to Des3Cbc into Gost28147_89
but it turned out that I've missed something...

When I try to encrypt binary daya with GOST key it says

func=xmlSecKeysMngrGetKey:file=keys.c:line=1370:obj=unknown:subj=xmlSecKeysMngrFindKey:error=1:xmlsec 
library function failed: 
func=xmlSecEncCtxEncDataNodeRead:file=xmlenc.c:line=957:obj=unknown:subj=unknown:error=45:key 
is not found: 
func=xmlSecEncCtxUriEncrypt:file=xmlenc.c:line=568:obj=unknown:subj=xmlSecEncCtxEncDataNodeRead:error=1:xmlsec 
library function failed: 
Error: failed to encrypt file "data"
Error: failed to encrypt file with template "gost.tmpl"

I did not managed to debug this properly, may be because of lack of C 
experience. 

Can you have a look at it. May be I've made some stupid mistake that can bee 
easily seen (something like using wrong name in key file for example).
Or it mistake can't be easily seen may be you can tell me from what point I 
should look for mistake... Or give some other useful advise...

In attach there is a diff file for gost89 and my test files that I am using to 
run it.

_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec
gost-ent-diff-and-test.tgz (application/x-compressed-tar, 5.3 KB) - not displayed
signature.asc (application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQEcBAABAgAGBQJU9w20AAoJEKc13HowK+H41m0H/2NY4VyPm0P+S/mYj/ncxYO2
Nm0WvtzN70yY5Dmf+9DBiF04wOf53Wl2xrbxzL6zmdD+oRsHye7xsQGOm56YOpZu
0fWmCjF5U3jciY77/Ev6mIJPgCchp0wMei8aBTj/2w937yLjo0sCG2jm7ExM43zH
yXvPLKCaYYuXgPIdb5/6dd5BiAhK05PnssDxVODyT7tjG4QM8Nv9H0iTxsaWMwKp
qsCyicJeuxki7am0jWD6HHg31N064JAx+s6qJ1tGGO8shJGATpc7ZHVNi2mM8e9Z
0inqS4CD+MumB20TO4rQcb/f4EQvZ932ofL1yFnz962OF+IVUwxSGaa3bKeHzg4=
=mGjz
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.