[test] Make sm2_internal_test less fragile to changes in the ec module
authorBilly Brumley <bbrumley@gmail.com>
Sun, 29 Mar 2020 07:38:37 +0000 (10:38 +0300)
committerNicola Tuveri <nic.tuv@gmail.com>
Wed, 1 Apr 2020 16:02:42 +0000 (19:02 +0300)
commit3c61ea367179ebaca8b448367b08c460c9d07120
tree44c7263a4e65a219b1d8357ad9de57bf25f4b846
parentce843e36d65e22e5681e8b81301f1ebd045c3109
[test] Make sm2_internal_test less fragile to changes in the ec module

Since these are KATs, the trailing randomness consumed by the ec module
does not really matter. So make the fake random buffer circular.

(cherry picked from commit 09736245b174a37abb87fb7ceb55462d940ff2bb)

Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
(Merged from https://github.com/openssl/openssl/pull/11435)
test/sm2_internal_test.c