aboutsummaryrefslogtreecommitdiff
path: root/include/olm/megolm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/olm/megolm.h')
-rw-r--r--include/olm/megolm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/olm/megolm.h b/include/olm/megolm.h
index 784597e..5cae353 100644
--- a/include/olm/megolm.h
+++ b/include/olm/megolm.h
@@ -47,6 +47,14 @@ typedef struct Megolm {
uint32_t counter;
} Megolm;
+
+/**
+ * Get the cipher used in megolm-backed conversations
+ *
+ * (AES256 + SHA256, with keys based on an HKDF with info of MEGOLM_KEYS)
+ */
+const struct _olm_cipher *megolm_cipher();
+
/**
* initialize the megolm ratchet. random_data should be at least
* MEGOLM_RATCHET_LENGTH bytes of randomness.