summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/basic.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basic.c b/tests/basic.c
index 56328d11..697485ed 100644
--- a/tests/basic.c
+++ b/tests/basic.c
@@ -4469,6 +4469,12 @@ check_one_mac (int algo, const char *data, int datalen,
return;
}
+ i = gcry_mac_get_algo (hd);
+ if (i != algo)
+ {
+ fail ("algo %d, gcry_mac_get_algo failed: %d\n", algo, i);
+ }
+
maclen = gcry_mac_get_algo_maclen (algo);
if (maclen < 1 || maclen > 500)
{