diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-07-31 14:30:04 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-07-31 14:40:37 +0300 |
commit | ceaa9f9d20f5db8b36d275fe65de43b95b090fc1 (patch) | |
tree | 37386cd4ccec4f56a8147e13ce0ec0467d3e82f2 /tests/hmac03.at | |
parent | fafa83f76002b4b55c94ae10d9e05a215c934347 (diff) | |
download | eclat-ceaa9f9d20f5db8b36d275fe65de43b95b090fc1.tar.gz eclat-ceaa9f9d20f5db8b36d275fe65de43b95b090fc1.tar.bz2 |
Prepare for Signature Version 4.
* lib/hmac_sha256.c: New file.
* lib/sha256.c: New file.
* lib/sha256.h: New file.
* lib/Makefile.am (libeclat_a_SOURCES): Add new files.
* lib/libeclat.h (hmac_sha256): New proto.
(eclat_query_signature): Rename to eclat_query_sign,
take signature version as argument.
(eclat_encode_devmap): Remove prototype.
* lib/reqsign.c: Use HMAC256
* src/config.c (eclat_kw): New keyword: signature-version,
* src/devmap.c (eclat_encode_devmap): Bugfixes. Translate snapshot ids.
* src/eclat.c (signature_version): New variable.
* src/eclat.h (signature_version): New proto.
(eclat_encode_devmap): New proto.
* src/util.c (eclat_send_query): Use eclat_query_sign.
* tests/hmac01.at: Update.
* tests/hmac02.at: Update.
* tests/hmac03.at: Update.
* tests/thmac.c: Use HMAC256
Diffstat (limited to 'tests/hmac03.at')
-rw-r--r-- | tests/hmac03.at | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hmac03.at b/tests/hmac03.at index 85f6330..9316b15 100644 --- a/tests/hmac03.at +++ b/tests/hmac03.at @@ -20,7 +20,7 @@ AT_KEYWORDS([hmac hmac03]) AT_CHECK([thmac "0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" \ "0xDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"], [0], -[0xd730594d167e35d5956fd8003d0db3d3f46dc7bb +[0x7dda3cc169743a6484649f94f0eda0f9f2ff496a9733fb796ed5adb40a44c3c1 ]) AT_CLEANUP |