summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2026-03-30 06:23:33 +0000
committertb <>2026-03-30 06:23:33 +0000
commitccb38f6d4da1788074ffa4e9a4a99bc33073b703 (patch)
tree924783f9d99e7b390f62e70b77fb3515d5787f34
parent22f6fa080aa393c2a6455f88e99334d5b461444b (diff)
downloadopenbsd-ccb38f6d4da1788074ffa4e9a4a99bc33073b703.tar.gz
openbsd-ccb38f6d4da1788074ffa4e9a4a99bc33073b703.tar.bz2
openbsd-ccb38f6d4da1788074ffa4e9a4a99bc33073b703.zip
libssl regress: adjust golden numbers for RSASSA-PSS
Add the three RSASSA-PSS SignatureScheme 0x080b, 0x080a, 0x0809 in the appropriate spots in (components of) the ClientHello and adjust various length octets by adding 6.
-rw-r--r--src/regress/lib/libssl/client/clienttest.c63
-rw-r--r--src/regress/lib/libssl/tlsext/tlsexttest.c20
2 files changed, 44 insertions, 39 deletions
diff --git a/src/regress/lib/libssl/client/clienttest.c b/src/regress/lib/libssl/client/clienttest.c
index f9258105f8..ddbc43c61a 100644
--- a/src/regress/lib/libssl/client/clienttest.c
+++ b/src/regress/lib/libssl/client/clienttest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: clienttest.c,v 1.46 2025/12/04 21:16:17 beck Exp $ */ 1/* $OpenBSD: clienttest.c,v 1.47 2026/03/30 06:23:33 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2015 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2015 Joel Sing <jsing@openbsd.org>
4 * 4 *
@@ -99,9 +99,9 @@ static const uint8_t cipher_list_dtls12_chacha[] = {
99 99
100static const uint8_t client_hello_dtls12[] = { 100static const uint8_t client_hello_dtls12[] = {
101 0x16, 0xfe, 0xfd, 0x00, 0x00, 0x00, 0x00, 0x00, 101 0x16, 0xfe, 0xfd, 0x00, 0x00, 0x00, 0x00, 0x00,
102 0x00, 0x00, 0x00, 0x00, 0xba, 0x01, 0x00, 0x00, 102 0x00, 0x00, 0x00, 0x00, 0xc0, 0x01, 0x00, 0x00,
103 0xae, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 103 0xb4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
104 0xae, 0xfe, 0xfd, 0x00, 0x00, 0x00, 0x00, 0x00, 104 0xb4, 0xfe, 0xfd, 0x00, 0x00, 0x00, 0x00, 0x00,
105 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 105 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
106 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 106 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
107 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 107 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -116,13 +116,14 @@ static const uint8_t client_hello_dtls12[] = {
116 0xbe, 0x00, 0x45, 0x00, 0x9c, 0x00, 0x3c, 0x00, 116 0xbe, 0x00, 0x45, 0x00, 0x9c, 0x00, 0x3c, 0x00,
117 0x2f, 0x00, 0xba, 0x00, 0x41, 0xc0, 0x12, 0xc0, 117 0x2f, 0x00, 0xba, 0x00, 0x41, 0xc0, 0x12, 0xc0,
118 0x08, 0x00, 0x16, 0x00, 0x0a, 0x00, 0xff, 0x01, 118 0x08, 0x00, 0x16, 0x00, 0x0a, 0x00, 0xff, 0x01,
119 0x00, 0x00, 0x34, 0x00, 0x0a, 0x00, 0x0a, 0x00, 119 0x00, 0x00, 0x3a, 0x00, 0x0a, 0x00, 0x0a, 0x00,
120 0x08, 0x00, 0x1d, 0x00, 0x17, 0x00, 0x18, 0x00, 120 0x08, 0x00, 0x1d, 0x00, 0x17, 0x00, 0x18, 0x00,
121 0x19, 0x00, 0x0b, 0x00, 0x02, 0x01, 0x00, 0x00, 121 0x19, 0x00, 0x0b, 0x00, 0x02, 0x01, 0x00, 0x00,
122 0x23, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x18, 0x00, 122 0x23, 0x00, 0x00, 0x00, 0x0d, 0x00, 0x1e, 0x00,
123 0x16, 0x08, 0x06, 0x06, 0x01, 0x06, 0x03, 0x08, 123 0x1c, 0x08, 0x06, 0x08, 0x0b, 0x06, 0x01, 0x06,
124 0x05, 0x05, 0x01, 0x05, 0x03, 0x08, 0x04, 0x04, 124 0x03, 0x08, 0x05, 0x08, 0x0a, 0x05, 0x01, 0x05,
125 0x01, 0x04, 0x03, 0x02, 0x01, 0x02, 0x03, 125 0x03, 0x08, 0x04, 0x08, 0x09, 0x04, 0x01, 0x04,
126 0x03, 0x02, 0x01, 0x02, 0x03,
126}; 127};
127 128
128static const uint8_t cipher_list_tls10[] = { 129static const uint8_t cipher_list_tls10[] = {
@@ -208,8 +209,8 @@ static const uint8_t cipher_list_tls12_chacha[] = {
208}; 209};
209 210
210static const uint8_t client_hello_tls12[] = { 211static const uint8_t client_hello_tls12[] = {
211 0x16, 0x03, 0x03, 0x00, 0xb7, 0x01, 0x00, 0x00, 212 0x16, 0x03, 0x03, 0x00, 0xbd, 0x01, 0x00, 0x00,
212 0xb3, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 213 0xb9, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
213 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 214 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
214 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 215 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
215 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 216 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -224,14 +225,15 @@ static const uint8_t client_hello_tls12[] = {
224 0x00, 0x45, 0x00, 0x9c, 0x00, 0x3c, 0x00, 0x2f, 225 0x00, 0x45, 0x00, 0x9c, 0x00, 0x3c, 0x00, 0x2f,
225 0x00, 0xba, 0x00, 0x41, 0xc0, 0x11, 0xc0, 0x07, 226 0x00, 0xba, 0x00, 0x41, 0xc0, 0x11, 0xc0, 0x07,
226 0x00, 0x05, 0xc0, 0x12, 0xc0, 0x08, 0x00, 0x16, 227 0x00, 0x05, 0xc0, 0x12, 0xc0, 0x08, 0x00, 0x16,
227 0x00, 0x0a, 0x00, 0xff, 0x01, 0x00, 0x00, 0x34, 228 0x00, 0x0a, 0x00, 0xff, 0x01, 0x00, 0x00, 0x3a,
228 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x08, 0x00, 0x1d, 229 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x08, 0x00, 0x1d,
229 0x00, 0x17, 0x00, 0x18, 0x00, 0x19, 0x00, 0x0b, 230 0x00, 0x17, 0x00, 0x18, 0x00, 0x19, 0x00, 0x0b,
230 0x00, 0x02, 0x01, 0x00, 0x00, 0x23, 0x00, 0x00, 231 0x00, 0x02, 0x01, 0x00, 0x00, 0x23, 0x00, 0x00,
231 0x00, 0x0d, 0x00, 0x18, 0x00, 0x16, 0x08, 0x06, 232 0x00, 0x0d, 0x00, 0x1e, 0x00, 0x1c, 0x08, 0x06,
232 0x06, 0x01, 0x06, 0x03, 0x08, 0x05, 0x05, 0x01, 233 0x08, 0x0b, 0x06, 0x01, 0x06, 0x03, 0x08, 0x05,
233 0x05, 0x03, 0x08, 0x04, 0x04, 0x01, 0x04, 0x03, 234 0x08, 0x0a, 0x05, 0x01, 0x05, 0x03, 0x08, 0x04,
234 0x02, 0x01, 0x02, 0x03, 235 0x08, 0x09, 0x04, 0x01, 0x04, 0x03, 0x02, 0x01,
236 0x02, 0x03,
235}; 237};
236 238
237static const uint8_t cipher_list_tls13_aes[] = { 239static const uint8_t cipher_list_tls13_aes[] = {
@@ -265,8 +267,8 @@ static const uint8_t cipher_list_tls13_chacha[] = {
265}; 267};
266 268
267static const uint8_t client_hello_tls13[] = { 269static const uint8_t client_hello_tls13[] = {
268 0x16, 0x03, 0x03, 0x05, 0xd6, 0x01, 0x00, 0x05, 270 0x16, 0x03, 0x03, 0x05, 0xdc, 0x01, 0x00, 0x05,
269 0xd2, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 271 0xd8, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
270 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 272 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
271 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 273 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
272 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 274 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -286,7 +288,7 @@ static const uint8_t client_hello_tls13[] = {
286 0x00, 0x45, 0x00, 0x9c, 0x00, 0x3c, 0x00, 0x2f, 288 0x00, 0x45, 0x00, 0x9c, 0x00, 0x3c, 0x00, 0x2f,
287 0x00, 0xba, 0x00, 0x41, 0xc0, 0x11, 0xc0, 0x07, 289 0x00, 0xba, 0x00, 0x41, 0xc0, 0x11, 0xc0, 0x07,
288 0x00, 0x05, 0xc0, 0x12, 0xc0, 0x08, 0x00, 0x16, 290 0x00, 0x05, 0xc0, 0x12, 0xc0, 0x08, 0x00, 0x16,
289 0x00, 0x0a, 0x01, 0x00, 0x05, 0x2d, 0x00, 0x2b, 291 0x00, 0x0a, 0x01, 0x00, 0x05, 0x33, 0x00, 0x2b,
290 0x00, 0x05, 0x04, 0x03, 0x04, 0x03, 0x03, 0x00, 292 0x00, 0x05, 0x04, 0x03, 0x04, 0x03, 0x03, 0x00,
291 0x0a, 0x00, 0x0c, 0x00, 0x0a, 0x11, 0xec, 0x00, 293 0x0a, 0x00, 0x0c, 0x00, 0x0a, 0x11, 0xec, 0x00,
292 0x1d, 0x00, 0x17, 0x00, 0x18, 0x00, 0x19, 0x00, 294 0x1d, 0x00, 0x17, 0x00, 0x18, 0x00, 0x19, 0x00,
@@ -449,10 +451,11 @@ static const uint8_t client_hello_tls13[] = {
449 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 451 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
450 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00, 452 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x00,
451 0x02, 0x01, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 453 0x02, 0x01, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00,
452 0x0d, 0x00, 0x18, 0x00, 0x16, 0x08, 0x06, 0x06, 454 0x0d, 0x00, 0x1e, 0x00, 0x1c, 0x08, 0x06, 0x08,
453 0x01, 0x06, 0x03, 0x08, 0x05, 0x05, 0x01, 0x05, 455 0x0b, 0x06, 0x01, 0x06, 0x03, 0x08, 0x05, 0x08,
454 0x03, 0x08, 0x04, 0x04, 0x01, 0x04, 0x03, 0x02, 456 0x0a, 0x05, 0x01, 0x05, 0x03, 0x08, 0x04, 0x08,
455 0x01, 0x02, 0x03, 457 0x09, 0x04, 0x01, 0x04, 0x03, 0x02, 0x01, 0x02,
458 0x03,
456}; 459};
457 460
458static const uint8_t cipher_list_tls13_only_aes[] = { 461static const uint8_t cipher_list_tls13_only_aes[] = {
@@ -464,8 +467,8 @@ static const uint8_t cipher_list_tls13_only_chacha[] = {
464}; 467};
465 468
466static const uint8_t client_hello_tls13_only[] = { 469static const uint8_t client_hello_tls13_only[] = {
467 0x16, 0x03, 0x03, 0x05, 0x7c, 0x01, 0x00, 0x05, 470 0x16, 0x03, 0x03, 0x05, 0x82, 0x01, 0x00, 0x05,
468 0x78, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 471 0x7e, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00,
469 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 472 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
470 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 473 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
471 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 474 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
@@ -475,7 +478,7 @@ static const uint8_t client_hello_tls13_only[] = {
475 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 478 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
476 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x13, 0x03, 479 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x13, 0x03,
477 0x13, 0x02, 0x13, 0x01, 0x00, 0xff, 0x01, 0x00, 480 0x13, 0x02, 0x13, 0x01, 0x00, 0xff, 0x01, 0x00,
478 0x05, 0x27, 0x00, 0x2b, 0x00, 0x03, 0x02, 0x03, 481 0x05, 0x2d, 0x00, 0x2b, 0x00, 0x03, 0x02, 0x03,
479 0x04, 0x00, 0x0a, 0x00, 0x0c, 0x00, 0x0a, 0x11, 482 0x04, 0x00, 0x0a, 0x00, 0x0c, 0x00, 0x0a, 0x11,
480 0xec, 0x00, 0x1d, 0x00, 0x17, 0x00, 0x18, 0x00, 483 0xec, 0x00, 0x1d, 0x00, 0x17, 0x00, 0x18, 0x00,
481 0x19, 0x00, 0x33, 0x04, 0xea, 0x04, 0xe8, 0x11, 484 0x19, 0x00, 0x33, 0x04, 0xea, 0x04, 0xe8, 0x11,
@@ -637,10 +640,10 @@ static const uint8_t client_hello_tls13_only[] = {
637 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 640 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
638 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 641 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
639 0x0b, 0x00, 0x02, 0x01, 0x00, 0x00, 0x23, 0x00, 642 0x0b, 0x00, 0x02, 0x01, 0x00, 0x00, 0x23, 0x00,
640 0x00, 0x00, 0x0d, 0x00, 0x14, 0x00, 0x12, 0x08, 643 0x00, 0x00, 0x0d, 0x00, 0x1a, 0x00, 0x18, 0x08,
641 0x06, 0x06, 0x01, 0x06, 0x03, 0x08, 0x05, 0x05, 644 0x06, 0x08, 0x0b, 0x06, 0x01, 0x06, 0x03, 0x08,
642 0x01, 0x05, 0x03, 0x08, 0x04, 0x04, 0x01, 0x04, 645 0x05, 0x08, 0x0a, 0x05, 0x01, 0x05, 0x03, 0x08,
643 0x03, 646 0x04, 0x08, 0x09, 0x04, 0x01, 0x04, 0x03,
644}; 647};
645 648
646struct client_hello_test { 649struct client_hello_test {
diff --git a/src/regress/lib/libssl/tlsext/tlsexttest.c b/src/regress/lib/libssl/tlsext/tlsexttest.c
index 4c3701a63d..7a32975629 100644
--- a/src/regress/lib/libssl/tlsext/tlsexttest.c
+++ b/src/regress/lib/libssl/tlsext/tlsexttest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tlsexttest.c,v 1.95 2025/12/04 21:03:42 beck Exp $ */ 1/* $OpenBSD: tlsexttest.c,v 1.96 2026/03/30 06:23:33 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2017 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> 4 * Copyright (c) 2017 Doug Hogan <doug@openbsd.org>
@@ -1608,9 +1608,10 @@ test_tlsext_ri_server(void)
1608 */ 1608 */
1609 1609
1610static const unsigned char tlsext_sigalgs_client[] = { 1610static const unsigned char tlsext_sigalgs_client[] = {
1611 0x00, 0x16, 0x08, 0x06, 0x06, 0x01, 0x06, 0x03, 1611 0x00, 0x1c, 0x08, 0x06, 0x08, 0x0b, 0x06, 0x01,
1612 0x08, 0x05, 0x05, 0x01, 0x05, 0x03, 0x08, 0x04, 1612 0x06, 0x03, 0x08, 0x05, 0x08, 0x0a, 0x05, 0x01,
1613 0x04, 0x01, 0x04, 0x03, 0x02, 0x01, 0x02, 0x03, 1613 0x05, 0x03, 0x08, 0x04, 0x08, 0x09, 0x04, 0x01,
1614 0x04, 0x03, 0x02, 0x01, 0x02, 0x03,
1614}; 1615};
1615 1616
1616static int 1617static int
@@ -3186,13 +3187,14 @@ test_tlsext_srtp_server(void)
3186#endif /* OPENSSL_NO_SRTP */ 3187#endif /* OPENSSL_NO_SRTP */
3187 3188
3188static const unsigned char tlsext_clienthello_default[] = { 3189static const unsigned char tlsext_clienthello_default[] = {
3189 0x00, 0x34, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x08, 3190 0x00, 0x3a, 0x00, 0x0a, 0x00, 0x0a, 0x00, 0x08,
3190 0x00, 0x1d, 0x00, 0x17, 0x00, 0x18, 0x00, 0x19, 3191 0x00, 0x1d, 0x00, 0x17, 0x00, 0x18, 0x00, 0x19,
3191 0x00, 0x0b, 0x00, 0x02, 0x01, 0x00, 0x00, 0x23, 3192 0x00, 0x0b, 0x00, 0x02, 0x01, 0x00, 0x00, 0x23,
3192 0x00, 0x00, 0x00, 0x0d, 0x00, 0x18, 0x00, 0x16, 3193 0x00, 0x00, 0x00, 0x0d, 0x00, 0x1e, 0x00, 0x1c,
3193 0x08, 0x06, 0x06, 0x01, 0x06, 0x03, 0x08, 0x05, 3194 0x08, 0x06, 0x08, 0x0b, 0x06, 0x01, 0x06, 0x03,
3194 0x05, 0x01, 0x05, 0x03, 0x08, 0x04, 0x04, 0x01, 3195 0x08, 0x05, 0x08, 0x0a, 0x05, 0x01, 0x05, 0x03,
3195 0x04, 0x03, 0x02, 0x01, 0x02, 0x03, 3196 0x08, 0x04, 0x08, 0x09, 0x04, 0x01, 0x04, 0x03,
3197 0x02, 0x01, 0x02, 0x03,
3196}; 3198};
3197 3199
3198/* An empty array is an incomplete type and sizeof() is undefined. */ 3200/* An empty array is an incomplete type and sizeof() is undefined. */