Skip to content

feat: Noise IK handshake implementation#3028

Open
iphydf wants to merge 1 commit intoTokTok:masterfrom
iphydf:noise-ik
Open

feat: Noise IK handshake implementation#3028
iphydf wants to merge 1 commit intoTokTok:masterfrom
iphydf:noise-ik

Conversation

@iphydf
Copy link
Copy Markdown
Member

@iphydf iphydf commented Mar 1, 2026

Fixes #426.


This change is Reviewable

@iphydf iphydf added this to the v0.2.23 milestone Mar 1, 2026
@iphydf iphydf requested review from Green-Sky and JFreegman March 1, 2026 19:18
@iphydf iphydf marked this pull request as ready for review March 1, 2026 19:18
@github-actions github-actions bot added the enhancement New feature for the user, not a new feature for build script label Mar 1, 2026
@iphydf iphydf marked this pull request as draft March 1, 2026 19:27
@iphydf iphydf force-pushed the noise-ik branch 4 times, most recently from cf3e3c1 to 1439c3a Compare March 1, 2026 19:59
@iphydf iphydf marked this pull request as ready for review March 1, 2026 20:07
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 2, 2026

Codecov Report

❌ Patch coverage is 77.79390% with 153 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.42%. Comparing base (40ce0bc) to head (1439c3a).
⚠️ Report is 10 commits behind head on master.

Files with missing lines Patch % Lines
toxcore/net_crypto.c 76.48% 115 Missing ⚠️
toxcore/crypto_core.c 70.00% 12 Missing ⚠️
toxcore/noise.c 88.29% 11 Missing ⚠️
toxcore/tox_api.c 0.00% 10 Missing ⚠️
toxcore/Messenger.c 76.92% 3 Missing ⚠️
toxcore/friend_requests.c 0.00% 1 Missing ⚠️
toxcore/group.c 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3028      +/-   ##
==========================================
+ Coverage   69.36%   69.42%   +0.05%     
==========================================
  Files         184      186       +2     
  Lines       34156    34859     +703     
==========================================
+ Hits        23694    24202     +508     
- Misses      10462    10657     +195     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@iphydf iphydf force-pushed the noise-ik branch 10 times, most recently from 6a7b96f to 6d448bb Compare March 3, 2026 22:37
toxcore/noise.h Outdated
*
* Verified using Noise_IK_25519_ChaChaPoly_BLAKE2b test vectors.
*
* @param output1 First key to compute; must be non-null and first_len <= CRYPTO_NOISE_BLAKE2B_HASH_SIZE.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we talking about first_len requirements here.
Change to and of length first_len or drop.

Same with second.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature for the user, not a new feature for build script

Development

Successfully merging this pull request may close these issues.

Tox Handshake Vulnerable to KCI

3 participants