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:line70:obj=unknown:subj=xmlSecKeysMngrFindKey:error=1:xmlsec
library function failed:
func=xmlSecEncCtxEncDataNodeRead:file=xmlenc.c:line•7:obj=unknown:subj=unknown:errorE:key
is not found:
func=xmlSecEncCtxUriEncrypt:file=xmlenc.c:lineV8: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.

Attachment: gost-ent-diff-and-test.tgz
Description: application/compressed-tar

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to