Commit 153a76d9 authored by Geoff Simmons's avatar Geoff Simmons

Minor bugfix in a test (use correct IV lengths).

parent eacd95c4
...@@ -825,7 +825,7 @@ varnish v1 -vcl { ...@@ -825,7 +825,7 @@ varnish v1 -vcl {
set resp.http.cbc-ciphertext set resp.http.cbc-ciphertext
= blobcode.encode(HEXLC, = blobcode.encode(HEXLC,
cbc.encrypt(p1.get(), cbc.encrypt(p1.get(),
iv=gcrypt.random(STRONG, 8B))); iv=gcrypt.random(STRONG, 16B)));
set resp.http.cbc-iv set resp.http.cbc-iv
= blobcode.encode(HEXLC, gcrypt.random()); = blobcode.encode(HEXLC, gcrypt.random());
set resp.http.cbc-plaintext set resp.http.cbc-plaintext
...@@ -844,6 +844,6 @@ client c1 { ...@@ -844,6 +844,6 @@ client c1 {
expect resp.http.ctr-ctr ~ "^[[:xdigit:]]{32}$" expect resp.http.ctr-ctr ~ "^[[:xdigit:]]{32}$"
expect resp.http.ctr-plaintext == "000102030405060708090a0b0c0d0e0f" expect resp.http.ctr-plaintext == "000102030405060708090a0b0c0d0e0f"
expect resp.http.cbc-ciphertext ~ "^[[:xdigit:]]{32}$" expect resp.http.cbc-ciphertext ~ "^[[:xdigit:]]{32}$"
expect resp.http.cbc-iv ~ "^[[:xdigit:]]{16}$" expect resp.http.cbc-iv ~ "^[[:xdigit:]]{32}$"
expect resp.http.cbc-plaintext == "000102030405060708090a0b0c0d0e0f" expect resp.http.cbc-plaintext == "000102030405060708090a0b0c0d0e0f"
} -run } -run
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment