Hi all,

I crypting  encrypt3-doc.xml from ~/exapmles by xmlsec1 (Encrypting XML file 
with a session key: the tripledes-cbc Algorithm with EncryptionMethod 
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p )

I created following template : 
<EncryptedData xmlns="http://www.w3.org/2001/04/xmlenc#"; 
Type="http://www.w3.org/2001/04/xmlenc#Element";>
  <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"; 
/> 
    <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#";>
      <EncryptedKey xmlns="http://www.w3.org/2001/04/xmlenc#";>
         <EncryptionMethod 
Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p"; /> 
         <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#";>
           <KeyName /> 
         </KeyInfo>
         <CipherData>
           <CipherValue /> 
         </CipherData>
      </EncryptedKey>
    </KeyInfo>
  <CipherData>
    <CipherValue /> 
  </CipherData>
</EncryptedData>

I'm crypting by xmlsec1: 
xmlsec1 encrypt --binary-data encrypt3-doc.xml --gen-key des-192 
--privkey-pem:rsakey.pem rsakey.pem --output out.xml encrypt3-tmp.xml

I have the errors and crypted file out.xml:

func=xmlSecTransformCtxBinaryExecute:file=..\src\transforms.c:line=1072:obj=unknown:subj=dataSize
 > 0:error=100:assertion:
func=xmlSecEncCtxDecryptToBuffer:file=..\src\xmlenc.c:line=669:obj=unknown:subj=
xmlSecTransformCtxBinaryExecute:error=1:xmlsec library function failed:

When the errors: in the template or parameters for xmlsec app?
Thanks.


Alexandre Kalendarev


_______________________________________________
xmlsec mailing list
xmlsec@aleksey.com
http://www.aleksey.com/mailman/listinfo/xmlsec

Reply via email to