Changeset 105945 in vbox for trunk/src/libs/openssl-3.1.7/crypto/ec
- Timestamp:
- Sep 4, 2024 11:32:47 AM (6 months ago)
- svn:sync-xref-src-repo-rev:
- 164679
- 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 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/ec/build.info
r104078 r105945 78 78 # has, and doesn't need it added again. 79 79 IF[{- !$disabled{module} && !$disabled{shared} -}] 80 DEFINE[../ providers/liblegacy.a]=$ECDEF80 DEFINE[../../providers/liblegacy.a]=$ECDEF 81 81 ENDIF 82 82 -
trunk/src/libs/openssl-3.1.7/crypto/ec/curve448/arch_64/f_impl64.c
r104078 r105945 1 1 /* 2 * Copyright 2017-202 2The OpenSSL Project Authors. All Rights Reserved.2 * Copyright 2017-2024 The OpenSSL Project Authors. All Rights Reserved. 3 3 * Copyright 2014 Cryptography Research, Inc. 4 4 * … … 46 46 } 47 47 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]); 51 51 } 52 52 -
trunk/src/libs/openssl-3.1.7/crypto/ec/ecdsa_ossl.c
r104078 r105945 1 1 /* 2 * Copyright 2002-202 3The OpenSSL Project Authors. All Rights Reserved.2 * Copyright 2002-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 … … 71 71 ECDSA_SIG *s; 72 72 73 if (sig == NULL && (kinv == NULL || r == NULL)) { 74 *siglen = ECDSA_size(eckey); 75 return 1; 76 } 77 73 78 s = ECDSA_do_sign_ex(dgst, dlen, kinv, r, eckey); 74 79 if (s == NULL) { … … 126 131 goto err; 127 132 } 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 } 129 138 130 139 /* Preallocate space */ … … 141 150 do { 142 151 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)) { 145 154 ERR_raise(ERR_LIB_EC, EC_R_RANDOM_NUMBER_GENERATION_FAILED); 146 155 goto err; 147 156 } 148 157 } 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)) { 150 159 ERR_raise(ERR_LIB_EC, EC_R_RANDOM_NUMBER_GENERATION_FAILED); 151 160 goto err; 152 161 } 153 162 } 154 } while ( BN_is_zero(k));163 } while (ossl_bn_is_word_fixed_top(k, 0)); 155 164 156 165 /* compute r the x-coordinate of generator * k */ … … 251 260 } 252 261 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 254 267 i = BN_num_bits(order); 255 268 /*
Note:
See TracChangeset
for help on using the changeset viewer.