summaryrefslogtreecommitdiffstats
path: root/include/digest.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/digest.h')
-rw-r--r--include/digest.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/digest.h b/include/digest.h
index 00aeee5237..7f8d696eb6 100644
--- a/include/digest.h
+++ b/include/digest.h
@@ -127,4 +127,9 @@ static inline const char *digest_name(struct digest *d)
return d->algo->base.name;
}
+static inline void* digest_ctx(struct digest *d)
+{
+ return d->ctx;
+}
+
#endif /* __SH_ST_DEVICES_H__ */