ByteSync icon indicating copy to clipboard operation
ByteSync copied to clipboard

2.6 Add crypto tests for trusted-session invitations

Open marwannettour opened this issue 6 months ago • 0 comments

Parent epic: #308

Summary

Cover signing, encryption, expiration, nonce, and trust failure scenarios.

Requirements

  • Test successful signature generation.
  • Test encryption for the intended recipient.
  • Test decryption failure with another private key.
  • Test signature invalidation after payload modification.
  • Test expiration inclusion.
  • Test nonce uniqueness.
  • Test rejection when the recipient is not trusted.

Acceptance criteria

  • Tests use FluentAssertions.
  • Tests cover both success and failure crypto paths.
  • No sensitive test material leaks into logs.

marwannettour avatar May 19 '26 12:05 marwannettour