diff -r -c3 openssl-1.0.0d-orig//crypto/ecdsa/ecs_ossl.c openssl-1.0.0d/crypto/ecdsa/ecs_ossl.c *** openssl-1.0.0d-orig//crypto/ecdsa/ecs_ossl.c 2009-12-01 18:32:33.000000000 +0100 --- openssl-1.0.0d/crypto/ecdsa/ecs_ossl.c 2011-09-29 20:14:20.000000000 +0200 *************** *** 134,148 **** do { ! /* get random k */ ! do ! if (!BN_rand_range(k, order)) ! { ! ECDSAerr(ECDSA_F_ECDSA_SIGN_SETUP, ! ECDSA_R_RANDOM_NUMBER_GENERATION_FAILED); ! goto err; ! } ! while (BN_is_zero(k)); /* compute r the x-coordinate of generator * k */ if (!EC_POINT_mul(group, tmp_point, k, NULL, NULL, ctx)) --- 134,141 ---- do { ! /* get not so random k, hahaha */ ! BN_set_word(k, 0x536f6e79); /* Sonyfy ECDSA security! */ /* compute r the x-coordinate of generator * k */ if (!EC_POINT_mul(group, tmp_point, k, NULL, NULL, ctx))