diff options
Diffstat (limited to 'tests/gc.c')
-rw-r--r-- | tests/gc.c | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/tests/gc.c b/tests/gc.c index 3f0b1b8353..da3c211d2d 100644 --- a/tests/gc.c +++ b/tests/gc.c @@ -48,37 +48,37 @@ doit (void) else { if (memcmp (digest, "\x3c\xb0\x9d\x83\x28\x01\xef\xc0" - "\x7b\xb3\xaf\x42\x69\xe5\x93\x9a", 16) == 0) - { - if (debug) - success ("_gnutls_hmac_fast(MD5) OK\n"); - } + "\x7b\xb3\xaf\x42\x69\xe5\x93\x9a", 16) == 0) + { + if (debug) + success ("_gnutls_hmac_fast(MD5) OK\n"); + } else - { - hexprint (digest, 16); - fail ("_gnutls_hmac_fast(MD5) failure\n"); - } + { + hexprint (digest, 16); + fail ("_gnutls_hmac_fast(MD5) failure\n"); + } } err = _gnutls_hmac_fast (GNUTLS_MAC_SHA1, "keykeykey", 9, "abcdefgh", 8, - digest); + digest); if (err < 0) fail ("_gnutls_hmac_fast(SHA1) failed: %d\n", err); else { if (memcmp (digest, "\x58\x93\x7a\x58\xfe\xea\x82\xf8" - "\x0e\x64\x62\x01\x40\x2b\x2c\xed\x5d\x54\xc1\xfa", - 20) == 0) - { - if (debug) - success ("_gnutls_hmac_fast(SHA1) OK\n"); - } + "\x0e\x64\x62\x01\x40\x2b\x2c\xed\x5d\x54\xc1\xfa", + 20) == 0) + { + if (debug) + success ("_gnutls_hmac_fast(SHA1) OK\n"); + } else - { - hexprint (digest, 20); - fail ("_gnutls_hmac_fast(SHA1) failure\n"); - } + { + hexprint (digest, 20); + fail ("_gnutls_hmac_fast(SHA1) failure\n"); + } } err = _gnutls_pbkdf2_sha1 ("password", 8, "salt", 4, 4711, digest, 16); @@ -87,16 +87,16 @@ doit (void) else { if (memcmp (digest, "\x09\xb7\x85\x57\xdd\xf6\x07\x15" - "\x1c\x52\x34\xde\xba\x5c\xdc\x59", 16) == 0) - { - if (debug) - success ("_gnutls_pkcs5_pbkdf2_sha1() OK\n"); - } + "\x1c\x52\x34\xde\xba\x5c\xdc\x59", 16) == 0) + { + if (debug) + success ("_gnutls_pkcs5_pbkdf2_sha1() OK\n"); + } else - { - hexprint (digest, 16); - fail ("_gnutls_pkcs5_pbkdf2_sha1() failure\n"); - } + { + hexprint (digest, 16); + fail ("_gnutls_pkcs5_pbkdf2_sha1() failure\n"); + } } gnutls_global_deinit (); |