Minor improvements #353
No reviewers
Labels
No labels
bug
duplicate
enhancement
feature
help wanted
improve API
invalid
needs documentation
not-planned
rtfm
stale
support
wishlist
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libtom/libtomcrypt!353
Loading…
Reference in a new issue
No description provided.
Delete branch "minor/improvements"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Preparation for further work
Please revert the changes above. There are even more key types in my new ecc branch:
Let's discuss it later.
why can't you just put them in there?
btw. it doesn't even really clash...
I just successfully rebased the ecc-branch on top of this one and there was only a trivial merge-conflict that could be auto-resolved by my mergetool.
Compilation works without a warning and the tests succeed as well.
and here the patch that integrates your new defines in the enum:
Better except:
is a bit odd as there can also be something like:
and
enum public_key_typeshould be perhapsenum key_typewhich I think is fine, we should create combinations for all implemented combinations, so someone doesn't start to combine wildly and wonders why it doesn't work.
even the wikipedia article is called https://en.wikipedia.org/wiki/Public-key_cryptography so I think that name should be fine :)
I see your point but I do not like it. I prefer to have exactly one constant for one bit.
Yes but having something like:
might be a bit confusing as the user may think that the function exports just public key.
Idea: what about to turn
scan_hexintosrc/misc/base16/base16_decode.c+ adding alsobase16_encode.c?Mkay
...and when that person looks at the definition it becomes obvious that this enum also includes private keys :)
I think
key_typeis not specific enough and I can't find another good name...