aboutsummaryrefslogtreecommitdiff
path: root/include/axolotl
diff options
context:
space:
mode:
Diffstat (limited to 'include/axolotl')
-rw-r--r--include/axolotl/crypto.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/axolotl/crypto.hh b/include/axolotl/crypto.hh
index 9691228..3f7b71e 100644
--- a/include/axolotl/crypto.hh
+++ b/include/axolotl/crypto.hh
@@ -19,7 +19,7 @@ Curve25519KeyPair generate_key(
);
-const std::size_t CURVE25519_SHARED_SECRET_LENGTH = 16;
+const std::size_t CURVE25519_SHARED_SECRET_LENGTH = 32;
void curve25519_shared_secret(
@@ -68,6 +68,12 @@ void aes_decrypt_cbc(
);
+void sha256(
+ std::uint8_t const * input, std::size_t input_length,
+ std::uint8_t * output
+);
+
+
const std::size_t HMAC_SHA256_OUTPUT_LENGTH = 32;