[xmlsec] Trying to implement GOST 28147-89 cipher. Need help
Nikolay Shaplov
dhyan at nataraj.su
Wed Mar 4 05:50:44 PST 2015
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gost-ent-diff-and-test.tgz
Type: application/x-compressed-tar
Size: 5450 bytes
Desc: not available
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20150304/2d1f47f5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part.
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20150304/2d1f47f5/attachment.sig>
More information about the xmlsec
mailing list