microsoft / security-utilities

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

Add an API for generating derived keys from HIS keys. #4

Closed michaelcfanning closed 7 months ago

michaelcfanning commented 7 months ago

This is a draft of a PR to produce a derived symmetric key that's HIS compliant from an existing key. The approach is like so:

The output is a 39-byte base64-encoded value that preserve the full 32-byte HMAC bytes.