You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* Add 32 bytes of the (bogus) X25519 key share. */
5169
-
srand(time(NULL) ^ 0xbeefdead);
5170
-
for (inti=0; i<32; i++) {
5171
-
unsigned charc= (unsigned char)rand();
5172
-
bs_append_bytes(tls_extensions, &c, 1);
5173
-
}
5205
+
/* Append a random X25519 public key. */
5206
+
bs_append_x25519_pubkey(tls_extensions);
5174
5207
5175
5208
/* Update the length of the extensions. */
5176
5209
tlsExtensionUpdateLength(tls_extensions);
@@ -5453,9 +5486,11 @@ int testSupportedGroups(struct sslCheckOptions *options) {
5453
5486
5454
5487
/* Auto-generated by ./tools/iana_tls_supported_groups_parser.py on December 24, 2019. */
5455
5488
#defineCOL_PLAIN ""
5456
-
#defineNID_TYPE_NA 0 /* Not Applicable (i.e.: X25519/X448) */
5489
+
#defineNID_TYPE_UNUSED 0
5457
5490
#defineNID_TYPE_ECDHE 1 /* For ECDHE curves (sec*, P-256/384-521) */
5458
5491
#defineNID_TYPE_DHE 2 /* For ffdhe* */
5492
+
#defineNID_TYPE_X25519 3
5493
+
#defineNID_TYPE_X448 4
5459
5494
/* Bit strength of DHE 2048 and 3072-bit moduli is taken directly from NIST SP 800-57 pt.1, rev4., pg. 53; DHE 4096, 6144, and 8192 are estimated using that document. */
0 commit comments