Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve API for checking algorithm characteristics around symmetry (#…
…1151) * Fix missing imports in genjwa These imports are not actually missing in the generated files because the WithFormatCode option adds them automatically. It is better to not depend on this feature in case of identical package names. * Fix typo * Fix documentation * Add IsSymmetric method for signature algorithms Add IsSymmetric method to the KeyAlgorithm interface. Add symmetric indication to element instead of separate map. * Add IsAssymetric method for signature and key encryption algorithms Add IsAssymetric method to the Key KeyAlgorithm interface. Replace symmetric indication of element with a type indication. * Remove IsAsymmetric methods Add comment to IsSymmetric method to indicate custom registered algorithms will always return false. Add comment to the IsSymmetric method of SignatureAlgorithm to indicate the special nature of NoSignature. Remove IsSymmetric from interface and from InvalidKeyAlgorithm. * Add register with options function Add tests for register (with options) functions. * Remove unnecessary RegisterXXXXWithOptions functions Change the RegisterXXXXWithOptions functions to no longer return an error. * Minor tweaks * Tweak comments * Use the underlying WithOptions from Register**** function * remove struct supportedOptions, since it only has one item. it can be re-introduced if there are more features to be added * tweak comment * Fix bazel --------- Co-authored-by: Hannes Kunnen <[email protected]>
- Loading branch information