diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-12-06 13:07:57 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-12-06 16:23:03 +0100 |
commit | 7829c45ebb20309ec89690653b9115b18c701262 (patch) | |
tree | 56fdddcf099ab1802a916619b1bf84efae65edf4 /tests | |
parent | 0ceb0836aab9a2f833bccdf7d855eab8bc9f7773 (diff) | |
download | gnutls-7829c45ebb20309ec89690653b9115b18c701262.tar.gz |
tests: updated overhead calculation for new code
Diffstat (limited to 'tests')
-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); } |