VirtualBox

Ignore:
Timestamp:
Sep 4, 2024 11:32:47 AM (6 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:
4 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/ec/build.info

    r104078 r105945  
    7878# has, and doesn't need it added again.
    7979IF[{- !$disabled{module} && !$disabled{shared} -}]
    80   DEFINE[../providers/liblegacy.a]=$ECDEF
     80  DEFINE[../../providers/liblegacy.a]=$ECDEF
    8181ENDIF
    8282
  • trunk/src/libs/openssl-3.1.7/crypto/ec/curve448/arch_64/f_impl64.c

    r104078 r105945  
    11/*
    2  * Copyright 2017-2022 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 2017-2024 The OpenSSL Project Authors. All Rights Reserved.
    33 * Copyright 2014 Cryptography Research, Inc.
    44 *
     
    4646        }
    4747        for (; j < 4; j++) {
    48             accum2 += widemul(a[j], b[i - j + 8]);
    49             accum1 += widemul(aa[j], bbb[i - j + 4]);
    50             accum0 += widemul(a[j + 4], bb[i - j + 4]);
     48            accum2 += widemul(a[j], b[i + 8 - j]);
     49            accum1 += widemul(aa[j], bbb[i + 4 - j]);
     50            accum0 += widemul(a[j + 4], bb[i + 4 - j]);
    5151        }
    5252
  • trunk/src/libs/openssl-3.1.7/crypto/ec/ecdsa_ossl.c

    r104078 r105945  
    11/*
    2  * Copyright 2002-2023 The OpenSSL Project Authors. All Rights Reserved.
     2 * Copyright 2002-2024 The OpenSSL Project Authors. All Rights Reserved.
    33 *
    44 * Licensed under the Apache License 2.0 (the "License").  You may not use
     
    7171    ECDSA_SIG *s;
    7272
     73    if (sig == NULL && (kinv == NULL || r == NULL)) {
     74        *siglen = ECDSA_size(eckey);
     75        return 1;
     76    }
     77
    7378    s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey);
    7479    if (s == NULL) {
     
    126131        goto err;
    127132    }
    128     order = EC_GROUP_get0_order(group);
     133
     134    if ((order = EC_GROUP_get0_order(group)) == NULL) {
     135        ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
     136        goto err;
     137    }
    129138
    130139    /* Preallocate space */
     
    141150        do {
    142151            if (dgst != NULL) {
    143                 if (!BN_generate_dsa_nonce(k, order, priv_key,
    144                                            dgst, dlen, ctx)) {
     152                if (!ossl_bn_gen_dsa_nonce_fixed_top(k, order, priv_key,
     153                                                     dgst, dlen, ctx)) {
    145154                    ERR_raise(ERR_LIB_EC, EC_R_RANDOM_NUMBER_GENERATION_FAILED);
    146155                    goto err;
    147156                }
    148157            } else {
    149                 if (!BN_priv_rand_range_ex(k, order, 0, ctx)) {
     158                if (!ossl_bn_priv_rand_range_fixed_top(k, order, 0, ctx)) {
    150159                    ERR_raise(ERR_LIB_EC, EC_R_RANDOM_NUMBER_GENERATION_FAILED);
    151160                    goto err;
    152161                }
    153162            }
    154         } while (BN_is_zero(k));
     163        } while (ossl_bn_is_word_fixed_top(k, 0));
    155164
    156165        /* compute r the x-coordinate of generator * k */
     
    251260    }
    252261
    253     order = EC_GROUP_get0_order(group);
     262    if ((order = EC_GROUP_get0_order(group)) == NULL) {
     263        ERR_raise(ERR_LIB_EC, ERR_R_EC_LIB);
     264        goto err;
     265    }
     266
    254267    i = BN_num_bits(order);
    255268    /*
Note: See TracChangeset for help on using the changeset viewer.

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