VirtualBox

Ignore:
Timestamp:
Sep 4, 2024 11:32:47 AM (8 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
164679
Message:

openssl-3.1.7: Applied and adjusted our OpenSSL changes to 3.1.7. bugref:10757

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  
        2525/vendor/openssl/3.0.3:151497-151729
        2626/vendor/openssl/3.0.7:154371
         27/vendor/openssl/3.1.7:164675-164677
  • trunk/src/libs/openssl-3.1.7/crypto/dsa/dsa_ossl.c

    r104078 r105945  
    11/*
    2  * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved.
    33 *
    44 * Licensed under the Apache License 2.0 (the "License").  You may not use
     
    263263             * This protects the private key from a weak PRNG.
    264264             */
    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))
    267268                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));
    271272
    272273    BN_set_flags(k, BN_FLG_CONSTTIME);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette