Commit b4e28f27 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix ordering of fields in pseudo-header.

parent c8ace8bb
......@@ -132,13 +132,13 @@ compute_hmac(const unsigned char *src, const unsigned char *dst,
if(rc < 0)
return -1;
rc = SHA256Input(&inner, dst, 16);
rc = SHA256Input(&inner, src, 16);
if(rc != 0)
return -1;
rc = SHA256Input(&inner, port, 2);
if(rc != 0)
return -1;
rc = SHA256Input(&inner, src, 16);
rc = SHA256Input(&inner, dst, 16);
if(rc != 0)
return -1;
rc = SHA256Input(&inner, port, 2);
......@@ -181,13 +181,13 @@ compute_hmac(const unsigned char *src, const unsigned char *dst,
rc = blake2s_init_key(&s, 16, key->value, key->len);
if(rc < 0)
return -1;
rc = blake2s_update(&s, dst, 16);
rc = blake2s_update(&s, src, 16);
if(rc < 0)
return -1;
rc = blake2s_update(&s, port, 2);
if(rc < 0)
return -1;
rc = blake2s_update(&s, src, 16);
rc = blake2s_update(&s, dst, 16);
if(rc < 0)
return -1;
rc = blake2s_update(&s, port, 2);
......
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