Re: Trying to implement GOST 28147-89 cipher. Need help
Nikolay Shaplov <[email protected]>
| Newsgroups | gmane.text.xml.xmlsec |
|---|---|
| Organization | freelance |
| Message-ID | <9386539.diRlb72esV@lenovo> |
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...
_______________________________________________
xmlsec mailing list
[email protected]
http://www.aleksey.com/mailman/listinfo/xmlsec
signature.asc
(application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAABAgAGBQJU+A0pAAoJEKc13HowK+H4dAsH+QGrNfRHEDrGh9ib6+Potx9c 7BGoeZSY+KydrNujAyzMPl/aBSVRqThbtqf9iSSZuH3mflvjfxUzsT/stmAJWBYk DgCjKSN6bfF6ga07PiLB4EO66EohRBCrff5Feo/3WQhwMzCdfR7rgxWiHDMAO0d7 m+lpWwzqCCiKDzm9hlOvkAnCHzDQzarLSLMULl85nlGpEJUjXid7O+ppWfzvYMDX HfiOMtXaY54ugk1C37K6L0aKCu9p5EvgpBgotn/m1oJRfvK1QeUn7z8M8vAc1XZP 56XVouH9S2sWrmwU5OIZm+6uKMoLcs5V8nolaWggF/kKPgI/wr+iVYvzEXxWJ8o= =H9DF -----END PGP SIGNATURE-----