Changeset 105945 in vbox for trunk/src/libs/openssl-3.1.7/crypto/dsa/dsa_ossl.c
- Timestamp:
- Sep 4, 2024 11:32:47 AM (8 months ago)
- svn:sync-xref-src-repo-rev:
- 164679
- Location:
- trunk/src/libs/openssl-3.1.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/openssl-3.1.7
- Property svn:mergeinfo
-
old new 25 25 /vendor/openssl/3.0.3:151497-151729 26 26 /vendor/openssl/3.0.7:154371 27 /vendor/openssl/3.1.7:164675-164677
-
- Property svn:mergeinfo
-
trunk/src/libs/openssl-3.1.7/crypto/dsa/dsa_ossl.c
r104078 r105945 1 1 /* 2 * Copyright 1995-202 3The OpenSSL Project Authors. All Rights Reserved.2 * Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved. 3 3 * 4 4 * Licensed under the Apache License 2.0 (the "License"). You may not use … … 263 263 * This protects the private key from a weak PRNG. 264 264 */ 265 if (!BN_generate_dsa_nonce(k, dsa->params.q, dsa->priv_key, dgst, 266 dlen, ctx)) 265 if (!ossl_bn_gen_dsa_nonce_fixed_top(k, dsa->params.q, 266 dsa->priv_key, dgst, 267 dlen, ctx)) 267 268 goto err; 268 } else if (! BN_priv_rand_range_ex(k, dsa->params.q, 0, ctx))269 goto err; 270 } while ( BN_is_zero(k));269 } else if (!ossl_bn_priv_rand_range_fixed_top(k, dsa->params.q, 0, ctx)) 270 goto err; 271 } while (ossl_bn_is_word_fixed_top(k, 0)); 271 272 272 273 BN_set_flags(k, BN_FLG_CONSTTIME);
Note:
See TracChangeset
for help on using the changeset viewer.