Port ECDSA CVE-2011-1945 fix to EC GOST signature