diff options
author | James Almer <jamrial@gmail.com> | 2017-10-22 20:25:38 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-10-22 20:25:38 -0300 |
commit | 90eb0a2180fd682f8b73278fabc7eb66fa6300d2 (patch) | |
tree | 0c9cf051735cf862edd7d755492ed26ba278956d /libavutil | |
parent | 1eb01cca6f70fcd690fb72d55a0a7317672508fd (diff) | |
download | ffmpeg-90eb0a2180fd682f8b73278fabc7eb66fa6300d2.tar.gz |
avutil/tests/hmac: remove superfluous loop
The gap in enum values has been removed.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/tests/hmac.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/libavutil/tests/hmac.c b/libavutil/tests/hmac.c index 5eeb63ce05..0fa50e4570 100644 --- a/libavutil/tests/hmac.c +++ b/libavutil/tests/hmac.c @@ -70,7 +70,7 @@ int main(void) } /* SHA-2 */ - for (i = AV_HMAC_SHA224; i <= AV_HMAC_SHA256; i++) { + for (i = AV_HMAC_SHA224; i <= AV_HMAC_SHA512; i++) { hmac = av_hmac_alloc(i); if (!hmac) return 1; @@ -83,17 +83,5 @@ int main(void) av_hmac_free(hmac); } - for (i = AV_HMAC_SHA384; i <= AV_HMAC_SHA512; i++) { - hmac = av_hmac_alloc(i); - if (!hmac) - return 1; - // RFC 4231 test vectors - test(hmac, key1, sizeof(key1), data1, sizeof(data1)); - test(hmac, key2, sizeof(key2), data2, sizeof(data2)); - test(hmac, key3, 20, data3, sizeof(data3)); - test(hmac, key3, sizeof(key3), data4, sizeof(data4)); - test(hmac, key3, sizeof(key3), data6, sizeof(data6)); - av_hmac_free(hmac); - } return 0; } |