mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 10:44:22 +01:00
Add test for packets of max size
This commit is contained in:
parent
eaa76f7e20
commit
8920f69fef
119
tests/ssl-opt.sh
119
tests/ssl-opt.sh
@ -1541,6 +1541,125 @@ run_test "Small packet TLS 1.2 AEAD shorter tag" \
|
|||||||
0 \
|
0 \
|
||||||
-s "Read from client: 1 bytes read"
|
-s "Read from client: 1 bytes read"
|
||||||
|
|
||||||
|
# Test for large packets
|
||||||
|
|
||||||
|
run_test "Large packet SSLv3 BlockCipher" \
|
||||||
|
"$P_SRV" \
|
||||||
|
"$P_CLI request_size=16384 force_version=ssl3 \
|
||||||
|
force_ciphersuite=TLS-RSA-WITH-AES-256-CBC-SHA" \
|
||||||
|
0 \
|
||||||
|
-s "Read from client: 16384 bytes read"
|
||||||
|
|
||||||
|
run_test "Large packet SSLv3 StreamCipher" \
|
||||||
|
"$P_SRV" \
|
||||||
|
"$P_CLI request_size=16384 force_version=ssl3 \
|
||||||
|
force_ciphersuite=TLS-RSA-WITH-RC4-128-SHA" \
|
||||||
|
0 \
|
||||||
|
-s "Read from client: 16384 bytes read"
|
||||||
|
|
||||||
|
run_test "Large packet TLS 1.0 BlockCipher" \
|
||||||
|
"$P_SRV" \
|
||||||
|
"$P_CLI request_size=16384 force_version=tls1 \
|
||||||
|
force_ciphersuite=TLS-RSA-WITH-AES-256-CBC-SHA" \
|
||||||
|
0 \
|
||||||
|
-s "Read from client: 16384 bytes read"
|
||||||
|
|
||||||
|
run_test "Large packet TLS 1.0 BlockCipher truncated MAC" \
|
||||||
|
"$P_SRV" \
|
||||||
|
"$P_CLI request_size=16384 force_version=tls1 \
|
||||||
|
force_ciphersuite=TLS-RSA-WITH-AES-256-CBC-SHA \
|
||||||
|
trunc_hmac=1" \
|
||||||
|
0 \
|
||||||
|
-s "Read from client: 16384 bytes read"
|
||||||
|
|
||||||
|
run_test "Large packet TLS 1.0 StreamCipher truncated MAC" \
|
||||||
|
"$P_SRV" \
|
||||||
|
"$P_CLI request_size=16384 force_version=tls1 \
|
||||||
|
force_ciphersuite=TLS-RSA-WITH-RC4-128-SHA \
|
||||||
|
trunc_hmac=1" \
|
||||||
|
0 \
|
||||||
|
-s "Read from client: 16384 bytes read"
|
||||||
|
|
||||||
|
run_test "Large packet TLS 1.1 BlockCipher" \
|
||||||
|
"$P_SRV" \
|
||||||
|
"$P_CLI request_size=16384 force_version=tls1_1 \
|
||||||
|
force_ciphersuite=TLS-RSA-WITH-AES-256-CBC-SHA" \
|
||||||
|
0 \
|
||||||
|
-s "Read from client: 16384 bytes read"
|
||||||
|
|
||||||
|
run_test "Large packet TLS 1.1 StreamCipher" \
|
||||||
|
"$P_SRV" \
|
||||||
|
"$P_CLI request_size=16384 force_version=tls1_1 \
|
||||||
|
force_ciphersuite=TLS-RSA-WITH-RC4-128-SHA" \
|
||||||
|
0 \
|
||||||
|
-s "Read from client: 16384 bytes read"
|
||||||
|
|
||||||
|
run_test "Large packet TLS 1.1 BlockCipher truncated MAC" \
|
||||||
|
"$P_SRV" \
|
||||||
|
"$P_CLI request_size=16384 force_version=tls1_1 \
|
||||||
|
force_ciphersuite=TLS-RSA-WITH-AES-256-CBC-SHA \
|
||||||
|
trunc_hmac=1" \
|
||||||
|
0 \
|
||||||
|
-s "Read from client: 16384 bytes read"
|
||||||
|
|
||||||
|
run_test "Large packet TLS 1.1 StreamCipher truncated MAC" \
|
||||||
|
"$P_SRV" \
|
||||||
|
"$P_CLI request_size=16384 force_version=tls1_1 \
|
||||||
|
force_ciphersuite=TLS-RSA-WITH-RC4-128-SHA \
|
||||||
|
trunc_hmac=1" \
|
||||||
|
0 \
|
||||||
|
-s "Read from client: 16384 bytes read"
|
||||||
|
|
||||||
|
run_test "Large packet TLS 1.2 BlockCipher" \
|
||||||
|
"$P_SRV" \
|
||||||
|
"$P_CLI request_size=16384 force_version=tls1_2 \
|
||||||
|
force_ciphersuite=TLS-RSA-WITH-AES-256-CBC-SHA" \
|
||||||
|
0 \
|
||||||
|
-s "Read from client: 16384 bytes read"
|
||||||
|
|
||||||
|
run_test "Large packet TLS 1.2 BlockCipher larger MAC" \
|
||||||
|
"$P_SRV" \
|
||||||
|
"$P_CLI request_size=16384 force_version=tls1_2 force_ciphersuite=TLS-ECDHE-RSA-WITH-AES-256-CBC-SHA384" \
|
||||||
|
0 \
|
||||||
|
-s "Read from client: 16384 bytes read"
|
||||||
|
|
||||||
|
run_test "Large packet TLS 1.2 BlockCipher truncated MAC" \
|
||||||
|
"$P_SRV" \
|
||||||
|
"$P_CLI request_size=16384 force_version=tls1_2 \
|
||||||
|
force_ciphersuite=TLS-RSA-WITH-AES-256-CBC-SHA \
|
||||||
|
trunc_hmac=1" \
|
||||||
|
0 \
|
||||||
|
-s "Read from client: 16384 bytes read"
|
||||||
|
|
||||||
|
run_test "Large packet TLS 1.2 StreamCipher" \
|
||||||
|
"$P_SRV" \
|
||||||
|
"$P_CLI request_size=16384 force_version=tls1_2 \
|
||||||
|
force_ciphersuite=TLS-RSA-WITH-RC4-128-SHA" \
|
||||||
|
0 \
|
||||||
|
-s "Read from client: 16384 bytes read"
|
||||||
|
|
||||||
|
run_test "Large packet TLS 1.2 StreamCipher truncated MAC" \
|
||||||
|
"$P_SRV" \
|
||||||
|
"$P_CLI request_size=16384 force_version=tls1_2 \
|
||||||
|
force_ciphersuite=TLS-RSA-WITH-RC4-128-SHA \
|
||||||
|
trunc_hmac=1" \
|
||||||
|
0 \
|
||||||
|
-s "Read from client: 16384 bytes read"
|
||||||
|
|
||||||
|
run_test "Large packet TLS 1.2 AEAD" \
|
||||||
|
"$P_SRV" \
|
||||||
|
"$P_CLI request_size=16384 force_version=tls1_2 \
|
||||||
|
force_ciphersuite=TLS-RSA-WITH-AES-256-CCM" \
|
||||||
|
0 \
|
||||||
|
-s "Read from client: 16384 bytes read"
|
||||||
|
|
||||||
|
run_test "Large packet TLS 1.2 AEAD shorter tag" \
|
||||||
|
"$P_SRV" \
|
||||||
|
"$P_CLI request_size=16384 force_version=tls1_2 \
|
||||||
|
force_ciphersuite=TLS-RSA-WITH-AES-256-CCM-8" \
|
||||||
|
0 \
|
||||||
|
-s "Read from client: 16384 bytes read"
|
||||||
|
|
||||||
# Final report
|
# Final report
|
||||||
|
|
||||||
echo "------------------------------------------------------------------------"
|
echo "------------------------------------------------------------------------"
|
||||||
|
Loading…
Reference in New Issue
Block a user