-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update implementation to latest documented format #27
Conversation
* Add raw C3ID of primary key to hashes * Add all four bytes of CRC32 * Add CASK version number * Add CASK kind (key or hash + size) * Add day and hour to timestamp * Remove allocatorCode and secretEntropyInBytes * Move magic numbers to constants/properties * Remove ThreeByteSequence from tests. We don't actually need this helper with the way the format finally landed. This does not include HMACSHA384 support that is implied by the latest docs. That will be added separately and will likely involve some API refactoring.
b18bbac
to
888eee8
Compare
2a417d0
to
fc85984
Compare
fc85984
to
7036fa9
Compare
@michaelcfanning All feedback addressed. Please take another look. |
// used as a production key. | ||
// | ||
// This is not considered final and needs more thought. We may move | ||
// access to the underlying string elsewhere. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm. Interesting topic. Can we better control/get ahead of this via explicit/implicit type operators?
For debug builds, it'd be nice for CaskKey.ToString() to provide a breakdown of the key and its components. For release, ToString could dip into a managed underlying string if we take that route.
5ada9a8
to
38416ab
Compare
38416ab
to
f7577f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does not include HMACSHA384 support that is implied by the latest docs. That will be added separately and will likely involve some API refactoring.