summaryrefslogtreecommitdiffstats
path: root/src/crypto.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-08-25 00:09:19 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-08-25 00:09:19 +0200
commitf2d84afd9d8373bf2778d1a1635384000c03f887 (patch)
tree42af8a7430278871e3a1b1e14006099aa50eae80 /src/crypto.h
parent9855a34f48acf6ae3aaeba9ec37756da41507e64 (diff)
downloadfastd-f2d84afd9d8373bf2778d1a1635384000c03f887.tar
fastd-f2d84afd9d8373bf2778d1a1635384000c03f887.zip
MAC: rename hash() to digest() and change length unit from blocks to bytes
Diffstat (limited to 'src/crypto.h')
-rw-r--r--src/crypto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto.h b/src/crypto.h
index f522c21..07b7d46 100644
--- a/src/crypto.h
+++ b/src/crypto.h
@@ -71,7 +71,7 @@ struct fastd_mac {
/** Initializes a MAC context with the given key */
fastd_mac_state_t * (*init)(const uint8_t *key);
/** Computes the MAC of data blocks */
- bool (*hash)(const fastd_mac_state_t *state, fastd_block128_t *out, const fastd_block128_t *in, size_t n_blocks);
+ bool (*digest)(const fastd_mac_state_t *state, fastd_block128_t *out, const fastd_block128_t *in, size_t length);
/** Frees a MAC context */
void (*free)(fastd_mac_state_t *state);
};