fix wrong memcmp() usage in CKey::operator==
fix wrong memcmp() usage in CKey::operator==

- add a check for CKey::size() of a and b (size can be 0 or 32)
- change the fixed value in memcmp() to use a.size() instead
- fixes #3090

syscoin/syscoin,Crowndev/crowncoin,syscoin/syscoin,Crowndev/crowncoin,domob1812/crowncoin,domob1812/crowncoin,syscoin/syscoin,Crowndev/crowncoin,Infernoman/crowncoin,Infernoman/crowncoin,Infernoman/crowncoin,syscoin/syscoin,Infernoman/crowncoin,Crowndev/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,syscoin/syscoin,domob1812/crowncoin,syscoin/syscoin,syscoin/syscoin,Infernoman/crowncoin,Infernoman/crowncoin,Crowndev/crowncoin,domob1812/crowncoin,syscoin/syscoin,domob1812/crowncoin