From b2f865182d49d91288114695e402ccac5f5413fb Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Sat, 21 Feb 2015 01:36:15 +0000 Subject: Finish and test crypto primitives --- include/axolotl/crypto.hh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include') 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; -- cgit v1.2.3