diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2009-12-02 21:12:22 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2009-12-02 21:12:22 +0200 |
commit | b373f5d1aac157916c6b44cb6a2ec505e4b46784 (patch) | |
tree | e5a5fca8e08732645547a36ba254fa267ae70257 /tests/gc.c | |
parent | 5e1d605d30cda30004d9821260b9afd7ca547579 (diff) | |
download | gnutls-b373f5d1aac157916c6b44cb6a2ec505e4b46784.tar.gz |
Exported gnutls_cipher_get_block_size() and all hash functions added to libgnutls.map.
Expanded benchmark with 3DES and ARCFOUR. Corrected test that used non-existing symbol.
Diffstat (limited to 'tests/gc.c')
-rw-r--r-- | tests/gc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/gc.c b/tests/gc.c index 70c6180525..86614ac6a1 100644 --- a/tests/gc.c +++ b/tests/gc.c @@ -42,36 +42,36 @@ doit (void) gnutls_global_init (); err = - _gnutls_hmac_fast (GNUTLS_MAC_MD5, "keykeykey", 9, "abcdefgh", 8, digest); + _gnutls_hash_fast (GNUTLS_MAC_MD5, "keykeykey", 9, "abcdefgh", 8, digest); if (err < 0) - fail ("_gnutls_hmac_fast(MD5) failed: %d\n", err); + fail ("_gnutls_hash_fast(MD5) failed: %d\n", err); else { if (memcmp (digest, "\x3c\xb0\x9d\x83\x28\x01\xef\xc0" "\x7b\xb3\xaf\x42\x69\xe5\x93\x9a", 16) == 0) - success ("_gnutls_hmac_fast(MD5) OK\n"); + success ("_gnutls_hash_fast(MD5) OK\n"); else { hexprint (digest, 16); - fail ("_gnutls_hmac_fast(MD5) failure\n"); + fail ("_gnutls_hash_fast(MD5) failure\n"); } } err = - _gnutls_hmac_fast (GNUTLS_MAC_SHA1, "keykeykey", 9, "abcdefgh", 8, + _gnutls_hash_fast (GNUTLS_MAC_SHA1, "keykeykey", 9, "abcdefgh", 8, digest); if (err < 0) - fail ("_gnutls_hmac_fast(SHA1) failed: %d\n", err); + fail ("_gnutls_hash_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) - success ("_gnutls_hmac_fast(SHA1) OK\n"); + success ("_gnutls_hash_fast(SHA1) OK\n"); else { hexprint (digest, 20); - fail ("_gnutls_hmac_fast(SHA1) failure\n"); + fail ("_gnutls_hash_fast(SHA1) failure\n"); } } |