summaryrefslogtreecommitdiffstats
path: root/src/crypto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto.c')
-rw-r--r--src/crypto.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/crypto.c b/src/crypto.c
index 54cb0c7..07c078c 100644
--- a/src/crypto.c
+++ b/src/crypto.c
@@ -233,3 +233,12 @@ done:
EVP_CIPHER_CTX_cleanup(&ctx);
return err;
}
+
+int get_mac_size(struct seal_key *skey)
+{
+ if (skey) {
+ return skey->md->md_size;
+ } else {
+ return 0;
+ }
+}