diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-12-06 13:07:57 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-12-06 13:07:57 +0100 |
commit | 269a513624c18d2b3a2cc8f6464218d2a71756df (patch) | |
tree | 62ac5bae04be7c11783d605c915d4300b5789b5c | |
parent | e1960f7f42155181c28cdec248f47300bed38acd (diff) | |
download | gnutls-tmp-dtls-mtu-calculations.tar.gz |
tests: updated overhead calculation for new codetmp-dtls-mtu-calculations
-rw-r--r-- | tests/mini-overhead.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/mini-overhead.c b/tests/mini-overhead.c index 3887caeb1a..6cd230d2df 100644 --- a/tests/mini-overhead.c +++ b/tests/mini-overhead.c @@ -319,13 +319,20 @@ void doit(void) { signal(SIGCHLD, ch_handler); - /* 13 + 20(sha1) + 16(iv) + 16(max pad) */ + /* overhead for CBC depends on MTU */ + + /* 13 + 20(sha1) + 16(iv) + 16(pad) */ start - ("NONE:+VERS-DTLS1.0:+AES-128-CBC:+SHA1:+SIGN-ALL:+COMP-NULL:+RSA", + ("NONE:+VERS-DTLS1.0:%NO_ETM:+AES-128-CBC:+SHA1:+SIGN-ALL:+COMP-NULL:+RSA", 65); + + /* 13 + 20(sha1) + 8(iv) + 8(max pad) */ + start + ("NONE:+VERS-DTLS1.0:+3DES-CBC:%NO_ETM:+SHA1:+SIGN-ALL:+COMP-NULL:+RSA", + 49); /* 13 + 16(tag) + 4(iv) */ start - ("NONE:+VERS-DTLS1.2:+AES-128-GCM:+AEAD:+SIGN-ALL:+COMP-NULL:+RSA", + ("NONE:+VERS-DTLS1.2:+AES-128-GCM:%NO_ETM:+AEAD:+SIGN-ALL:+COMP-NULL:+RSA", 37); } |