<div dir="ltr">Hello,<div><br></div><div>I compiled it using sun compiler, with some modifications to the source code.</div><div><br></div><div>However :)</div><div><br></div><div> openssl s_client -connect <a href="http://google.com:443">google.com:443</a> -tls1_2<br></div><div><br></div><div>works fine !</div><div><br></div><div>But  </div><div>  openssl s_client -connect <a href="http://google.com:443">google.com:443</a> -tls1_3<br></div><div><br></div><div>fails on CRYPTO_memcmp.</div><div><br></div><div>For easy debugging, I have made a copy of 

CRYPTO_memcmp in gcm128, called CRYPTO_gcm128_memcmp.</div><div><br></div><div>Here is what I get (added some log 😅). As you can see, ctx->Xi.c and tag</div><div>don't match.</div><div><br></div><div>I have looked for hours to find why, with no luck yet. </div><div>Any idea how to debug this ? Some tests to run to check if everything is ok ?</div><div><br></div><div><br></div><div>crypto/modes/gcm128.c:1931 ctx->EK0.u[0]=a2e1d0203e9a02ca<br>crypto/modes/gcm128.c:1932 ctx->EK0.u[1]=9fc11c97afde22db<br>crypto/modes/gcm128.c:1933 ctx->Xi.u[0]=a22699a2cb77c69d<br>crypto/modes/gcm128.c:1934 ctx->Xi.u[1]=5af190e82eeffaf3<br>crypto/modes/gcm128.c:1937 after xor:<br>crypto/modes/gcm128.c:1938 ctx->Xi.u[0]=c74982f5edc457<br>crypto/modes/gcm128.c:1939 ctx->Xi.u[1]=c5308c7f8131d828<br>crypto/modes/gcm128.c:1941<br>crypto/modes/gcm128.c:1834 CRYPTO_gcm128_memcmp<br>        len=16<br>00^a7<br>c7^c1<br>49^4d<br>82^51<br>f5^0b<br>ed^25<br>c4^ae<br>57^26<br>c5^d2<br>30^66<br>8c^33<br>7f^82<br>81^0f<br>31^75<br>d8^a4<br>28^e0<br>crypto/modes/gcm128.c:1842 CRYPTO_gcm128_memcmp<br>crypto/modes/gcm128.c:1957 ret = 255<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>