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
ctos.Cipher, err=findCommon("client to server cipher", clientKexInit.CiphersClientServer, serverKexInit.CiphersClientServer)
422
+
ctos.Cipher, err=findCommon("client to server cipher", clientKexInit.CiphersClientServer, serverKexInit.CiphersClientServer, isClient)
398
423
iferr!=nil {
399
424
return
400
425
}
401
426
402
-
stoc.Cipher, err=findCommon("server to client cipher", clientKexInit.CiphersServerClient, serverKexInit.CiphersServerClient)
427
+
stoc.Cipher, err=findCommon("server to client cipher", clientKexInit.CiphersServerClient, serverKexInit.CiphersServerClient, isClient)
403
428
iferr!=nil {
404
429
return
405
430
}
406
431
407
432
if!aeadCiphers[ctos.Cipher] {
408
-
ctos.MAC, err=findCommon("client to server MAC", clientKexInit.MACsClientServer, serverKexInit.MACsClientServer)
433
+
ctos.MAC, err=findCommon("client to server MAC", clientKexInit.MACsClientServer, serverKexInit.MACsClientServer, isClient)
409
434
iferr!=nil {
410
435
return
411
436
}
412
437
}
413
438
414
439
if!aeadCiphers[stoc.Cipher] {
415
-
stoc.MAC, err=findCommon("server to client MAC", clientKexInit.MACsServerClient, serverKexInit.MACsServerClient)
440
+
stoc.MAC, err=findCommon("server to client MAC", clientKexInit.MACsServerClient, serverKexInit.MACsServerClient, isClient)
416
441
iferr!=nil {
417
442
return
418
443
}
419
444
}
420
445
421
-
ctos.compression, err=findCommon("client to server compression", clientKexInit.CompressionClientServer, serverKexInit.CompressionClientServer)
446
+
ctos.compression, err=findCommon("client to server compression", clientKexInit.CompressionClientServer, serverKexInit.CompressionClientServer, isClient)
422
447
iferr!=nil {
423
448
return
424
449
}
425
450
426
-
stoc.compression, err=findCommon("server to client compression", clientKexInit.CompressionServerClient, serverKexInit.CompressionServerClient)
451
+
stoc.compression, err=findCommon("server to client compression", clientKexInit.CompressionServerClient, serverKexInit.CompressionServerClient, isClient)
0 commit comments