On Wednesday 04 March 2015 10:48:43 Aleksey Sanin wrote:
> The error message indicates that the correct key can not be found
> which is probably due to mismatch in expected keyId. Set a breakpoint
> in xmlSecKeyReqMatchKeyValue() and check what's going on.

Sadly its wrong guess...

In both cases (aes that works well and gost that does not work) it came to  
xmlSecKeyReqMatchKeyValue with same data

keyReq = {
  keyId = 0x0, 
  keyType = 65535, 
  keyUsage = 1048575, 
  keyBitsSize = 0, 
  keyUseWithList = {
    id = 0xb7e42ff8, 
    data = 0x0, 
    use = 0, 
    max = 0, 
    allocMode = xmlSecAllocModeDouble
  }, 
  reserved1 = 0x0, 
  reserved2 = 0x0
}
value = {
  id = 0xb7c0d500, 
  reserved0 = 0x0, 
  reserved1 = 0x0
}

and since both keyId and keyBitSize are 0, no all ifs are skipped and it just 
returns 1. (I've checked: set breakpoint on that line and that line is reached 
several times in both cases).

Difference is somewhere else. Will try to find it from that point...

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