Rename MontyForm => FixedMontyForm
#1145
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I find myself personally never using
MontyForm(though I guess I might if we tryno_allocinrsa), and it's kind of bothered me that it has such a choice name while things I am using likeMontyandGenericMontyParamsseem to have somewhat suboptimal names.This commit renames
MontyFormtoFixedMontyFormwhich gives it more of an equal position to the other two and unlocks the namesMontyFormandMontyParamsfor functionality which is common to all of the different implementations.It also renames the following:
MontyParams=>FixedMontyParams: this follows from above, these are the params that go withFixedMontyForm(NOTE: they're also used byConstMontyForm, so not sure if this rename will make that more confusing or not)GenericMontyParams=>MontyParams: this is the one generic type for Montgomery params. It's definitely quite helpful when writing generic code.Monty=>MontyForm: we named it the former becauseMontyFormwas previously taken, but the name is otherwise ambiguous: is it a trait forMontyFormorMontyParams? This rename makes it clear that this is the trait for*MontyFormtypes.Closes #1141