microsoft / security-utilities

Security utilities for key generation, string redaction, etc.
MIT License
25 stars 11 forks source link

Updating common annotated security key generation and validation in Rust #57

Closed suvamM closed 4 months ago

suvamM commented 4 months ago

This PR makes the following changes:

  1. The Rust common annotated security key generator and validator are now semantically equivalent to the C# versions.
  2. New Rust tests for the modified generator and validator methods. Since this is a large PR, the tests are a good starting point to navigate the changes.
  3. Some simplifications in the C# methods (removing dead code, changes to the key generation pattern, etc).
  4. Some cleaning up of obvious Rust formatting issues.