Skip to content

Commit

Permalink
fix: fixed terminating null character, noiseIK test vectors still ver…
Browse files Browse the repository at this point in the history
…ify correctly.
  • Loading branch information
goldroom committed Jun 11, 2024
1 parent 61825f1 commit 920ec60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion toxcore/crypto_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,8 @@ int32_t decrypt_data_symmetric_xaead(const uint8_t shared_key[CRYPTO_SHARED_KEY_
// }

// #define NOISE_PROTOCOL_NAME "Noise_IK_25519_ChaChaPoly_SHA512"
static const uint8_t noise_protocol[32] = "Noise_IK_25519_ChaChaPoly_SHA512";
/* Actually only 32 bytes necessary, but test vectors still verify with 33 bytes */
static const uint8_t noise_protocol[33] = "Noise_IK_25519_ChaChaPoly_SHA512";

/**
* cf. Noise sections 4.3 and 5.1
Expand Down

0 comments on commit 920ec60

Please sign in to comment.