mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 16:45:19 +00:00
I only became aware halfway through working on these that `bitchatTests/Noise` exists, so the next step is to integrate them over there.
526 B
526 B
Unnamed Noise_XX_25519_ChaChaPoly_SHA256 Implementation in Swift
Running Tests
This implementation comes with a bare-minimum test harness, intended to ensure that it at least passes the test vectors as stipulated by both cacophony and snow.
In order to run the tests:
swiftc -o NoiseTestRunner -D NOISE_TESTS NoiseTestRunner.swift NoiseProtocol.swift ../Utils/Data+SHA256.swift ../Protocols/BinaryEncodingUtils.swift
./NoiseTestRunner
rm NoiseTestRunner