[xmlsec] Error during decryption

Aleksey Sanin aleksey at aleksey.com
Wed Sep 23 07:27:19 PDT 2009


It looks like there is a problem with OpenSSL. Can you make sure that
you compile OpenSSL w/o assembler optimizations on *both* systems?

Aleksey

Ria Roy wrote:
> Hi,
> I am facing this problem running the example code on two different systems.
> One system is running fedora 9 and the other RH 7.2, but both are using 
> the same versions of libxml2, xmlsec and ssl. If I do both operations on 
> any system it works. If I encrypt on the 7.2 system and decrypt on the 
> other it works fine.
> However If I encrypt on the FC9 system and decrypt on the 7.2 system it 
> fails as follows.
> 
> 
> ./decrypt enc.xml pass
> func=xmlSecOpenSSLEvpBlockCipherCtxFinal:file=ciphers.c:line=362:obj=tripledes-cbc:subj=EVP_CipherFinal:error=4:crypto 
> library function failed:
> func=xmlSecOpenSSLEvpBlockCipherExecute:file=ciphers.c:line=663:obj=tripledes-cbc:subj=xmlSecOpenSSLEvpBlockCipherCtxFinal:error=1:xmlseclibrary 
> function failed:
> func=xmlSecTransformDefaultPushBin:file=transforms.c:line=2173:obj=tripledes-cbc:subj=xmlSecTransformExecute:error=1:xmlsec 
> library function failed:final=1
> func=xmlSecTransformDefaultPushBin:file=transforms.c:line=2200:obj=tripledes-cbc:subj=xmlSecTransformPushBin:error=1:xmlsec 
> library function failed:final=1;outSize=14
> func=xmlSecTransformCtxBinaryExecute:file=transforms.c:line=1089:obj=unknown:subj=xmlSecTransformCtxPushBin:error=1:xmlsec 
> library function failed:dataSize=532
> func=xmlSecEncCtxDecryptToBuffer:file=xmlenc.c:line=741:obj=unknown:subj=xmlSecTransformCtxBinaryExecute:error=1:xmlsec 
> library function failed:
> func=xmlSecEncCtxDecrypt:file=xmlenc.c:line=623:obj=unknown:subj=xmlSecEncCtxDecryptToBuffer:error=1:xmlsec 
> library function failed:
> 
> I am new to xmlsec and would really appreciate it if someone could point 
> me in the right direction.
> Thanks in advance,
> Ria
> 
> 
> 
> 
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec


More information about the xmlsec mailing list