Hot answers tagged

3 votes

Implementation of aes-cbc-hmac combined with xchacha20-poly1305

threat environment [I appended some material in this vein at end-of-answer.] Apparently you're addressing a use case along these lines: Alice has sensitive material to store or transmit Mallory wants ...
J_H's user avatar
  • 16.5k
2 votes

Thread-safe int wrapper in c#

Based on the discussion in the comments section I think the code can be greatly simplified: ...
Peter Csala's user avatar
  • 8,510
1 vote

Thread-safe int wrapper in c#

// read freshest value private int Get() => Interlocked.CompareExchange(ref _value, 0, 0); Using an ...
harold's user avatar
  • 9,049

Only top scored, non community-wiki answers of a minimum length are eligible