aboutsummaryrefslogtreecommitdiff
path: root/include/axolotl
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2015-02-21 01:36:15 +0000
committerMark Haines <mjark@negativecurvature.net>2015-02-21 01:36:15 +0000
commitb2f865182d49d91288114695e402ccac5f5413fb (patch)
treecdb37f3d57aaea2d8a0a2ef37e48af56aaf4eeab /include/axolotl
parent44d0c0920574c3169a0ebf6a03671332753a1c76 (diff)
Finish and test crypto primitives
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;