Changeset 97372 in vbox for trunk/src/libs/openssl-3.0.7/providers/common
- Timestamp:
- Nov 2, 2022 7:40:16 AM (2 years ago)
- svn:sync-xref-src-repo-rev:
- 154372
- Location:
- trunk/src/libs/openssl-3.0.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/openssl-3.0.7
- Property svn:mergeinfo
-
old new 15 15 /vendor/openssl/3.0.2:150728-150729 16 16 /vendor/openssl/3.0.3:151497-151729 17 /vendor/openssl/current:147554-151496 17 /vendor/openssl/3.0.7:154371 18 /vendor/openssl/current:147554-154370
-
- Property svn:mergeinfo
-
trunk/src/libs/openssl-3.0.7/providers/common/der/der_rsa_key.c
r94320 r97372 1 1 /* 2 * Copyright 2020-202 1The OpenSSL Project Authors. All Rights Reserved.2 * Copyright 2020-2022 The OpenSSL Project Authors. All Rights Reserved. 3 3 * 4 4 * Licensed under the Apache License 2.0 (the "License"). You may not use … … 305 305 saltlen = ossl_rsa_pss_params_30_saltlen(pss); 306 306 trailerfield = ossl_rsa_pss_params_30_trailerfield(pss); 307 308 if (saltlen < 0) { 309 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_SALT_LENGTH); 310 return 0; 311 } 312 if (trailerfield != 1) { 313 ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_TRAILER); 314 return 0; 315 } 307 316 308 317 /* Getting default values */ … … 339 348 return ossl_DER_w_begin_sequence(pkt, tag) 340 349 && (trailerfield == default_trailerfield 341 || ossl_DER_w_u long(pkt, 3,trailerfield))342 && (saltlen == default_saltlen || ossl_DER_w_u long(pkt, 2,saltlen))350 || ossl_DER_w_uint32(pkt, 3, (uint32_t)trailerfield)) 351 && (saltlen == default_saltlen || ossl_DER_w_uint32(pkt, 2, (uint32_t)saltlen)) 343 352 && DER_w_MaskGenAlgorithm(pkt, 1, pss) 344 353 && (hashalg_nid == default_hashalg_nid
Note:
See TracChangeset
for help on using the changeset viewer.