Adds RFC6979 test vectors and fixes ecdsa.sign/detGenK