aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-06-11 16:10:55 +0100
committerMark Haines <mark.haines@matrix.org>2015-06-11 16:10:55 +0100
commitbcb05d1a9982c0a22e41ecfa6f9aba212587c782 (patch)
tree530c1bc7fea7cdcdcde50860780f782db684d47f /include
parente44c82a7b4f108086d7d6d203bb129745cd67fc6 (diff)
rename Session to Ratchet
Diffstat (limited to 'include')
-rw-r--r--include/axolotl/ratchet.hh13
1 files changed, 5 insertions, 8 deletions
diff --git a/include/axolotl/ratchet.hh b/include/axolotl/ratchet.hh
index f4eeafa..d5053b2 100644
--- a/include/axolotl/ratchet.hh
+++ b/include/axolotl/ratchet.hh
@@ -75,9 +75,9 @@ struct KdfInfo {
};
-struct Session {
+struct Ratchet {
- Session(
+ Ratchet(
KdfInfo const & kdf_info,
Cipher const & ratchet_cipher
);
@@ -126,18 +126,15 @@ struct Session {
/** The number of bytes needed to persist the current session. */
std::size_t pickle_max_output_length();
- /** Persists a session as a sequence of bytes, encrypting using a key
+ /** Persists a session as a sequence of bytes
* Returns the number of output bytes used. */
std::size_t pickle(
- std::uint8_t const * key, std::size_t key_length,
std::uint8_t * output, std::size_t max_output_length
);
- /** Loads a session from a sequence of bytes, decrypting using a key.
- * Returns 0 on success, or std::size_t(-1) on failure. The last_error
- * will be BAD_SESSION_KEY if the supplied key is incorrect. */
+ /** Loads a session from a sequence of bytes.
+ * Returns 0 on success, or std::size_t(-1) on failure. */
std::size_t unpickle(
- std::uint8_t const * key, std::size_t key_length,
std::uint8_t * input, std::size_t input_length
);