diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-02-04 19:25:44 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-02-09 13:41:11 +0100 |
commit | 4d2a6159db1060ca38a3808cfa60bac46737c670 (patch) | |
tree | 5fb6c8b2361e07845de0b8921fa2c5d8b615f918 /test/ec_internal_test.c | |
parent | 604b86d8d360e36fc2fc0d1611d05bf38699d297 (diff) |
Deprecate BN_pseudo_rand() and BN_pseudo_rand_range()
The functions are obsolete aliases for BN_rand() and BN_rand_range()
since 1.1.0.
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14080)
Diffstat (limited to 'test/ec_internal_test.c')
-rw-r--r-- | test/ec_internal_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ec_internal_test.c b/test/ec_internal_test.c index d3db698467..345ce199c5 100644 --- a/test/ec_internal_test.c +++ b/test/ec_internal_test.c @@ -38,8 +38,8 @@ static int group_field_tests(const EC_GROUP *group, BN_CTX *ctx) || !TEST_true(group->meth->field_inv(group, b, BN_value_one(), ctx)) || !TEST_true(BN_is_one(b)) /* (1/a)*a = 1 */ - || !TEST_true(BN_pseudo_rand(a, BN_num_bits(group->field) - 1, - BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY)) + || !TEST_true(BN_rand(a, BN_num_bits(group->field) - 1, + BN_RAND_TOP_ONE, BN_RAND_BOTTOM_ANY)) || !TEST_true(group->meth->field_inv(group, b, a, ctx)) || (group->meth->field_encode && !TEST_true(group->meth->field_encode(group, a, a, ctx))) |