Skip to content

swift-p2p-crypto 0.2.0

Latest

Choose a tag to compare

@1amageek 1amageek released this 31 Jul 08:09

Highlights

  • Adds reusable in-place AES-128-CTR for BoringSSL and CommonCrypto backends.
  • Reworks incremental HMAC-SHA1/256/384 to borrow payload spans without whole-message materialization.
  • Validates NIST private scalars and public points with typed invalid-key-material failures.
  • Selects the default backend from the compilation destination, including normal WASM and Embedded WASM.
  • Zeroizes BoringSSL expanded keys, HMAC scratch storage, and private-key owners.

Requirements

  • Swift 6.4 development snapshot 2026-07-23
  • swift-p2p-core 0.3.0

Verification

  • macOS backend-equivalence suite: 96/96 passed
  • Explicit BoringSSL selection: 8/8 passed
  • Explicit Foundation selection: 7/7 passed
  • Address Sanitizer: 6/6 passed with no runtime warnings
  • Thread Sanitizer: 1/1 passed with no runtime warnings
  • Normal WASM and Embedded WASM release builds passed