diff options
author | Christos Zoulas <christos@zoulas.com> | 2018-10-01 19:09:16 -0400 |
---|---|---|
committer | Viktor Dukhovni <openssl-users@dukhovni.org> | 2018-12-09 22:02:51 -0500 |
commit | 73ff6d6847b1bbabe4ae052a3bde1f37c78aecb4 (patch) | |
tree | ec7adb65b4e99e2d9cb21b2af1e41158a55f1df7 /test/hmactest.c | |
parent | ec91206fbe5e14731f9c9fa0b3dd859854d3e8b9 (diff) | |
download | openssl-new-73ff6d6847b1bbabe4ae052a3bde1f37c78aecb4.tar.gz |
change into hex string constants to avoid overflow warnings
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Diffstat (limited to 'test/hmactest.c')
-rw-r--r-- | test/hmactest.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/hmactest.c b/test/hmactest.c index 48c531e14d..529670c2c9 100644 --- a/test/hmactest.c +++ b/test/hmactest.c @@ -38,10 +38,8 @@ static struct test_st { "e9139d1e6ee064ef8cf514fc7dc83e86", }, { - { - 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, - 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, - }, 16, "Hi There", 8, + "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", + 16, "Hi There", 8, "9294727a3638bb1c13f48ef8158bfc9d", }, { @@ -49,10 +47,8 @@ static struct test_st { "750c783e6ab0b503eaa86e310a5db738", }, { - { - 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, - 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, - }, 16, { + "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", + 16, { 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xdd, |