Unverified Commit 7e8c8fae authored by kladko's avatar kladko

SKALE-3151-storage-key

parent 20b8f62a
......@@ -307,7 +307,7 @@ void trustedGenerateEcdsaKeyAES(int *errStatus, char *errString,
CHECK_STATE(pub_key_x);
CHECK_STATE(pub_key_y);
SAFE_CHAR_BUF(rand_char, 32);
RANDOM_CHAR_BUF(rand_char, 32);
mpz_t seed;
mpz_init(seed);
......@@ -316,8 +316,6 @@ void trustedGenerateEcdsaKeyAES(int *errStatus, char *errString,
point Pkey = point_init();
get_global_random((unsigned char *)rand_char, 32);
mpz_import(seed, 32, 1, sizeof(rand_char[0]), 0, 0, rand_char);
mpz_mod(skey, seed, curve->p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment