subtle
subtle copied to clipboard
Add more constant operation?
While implementing NTRU, I noticed I needed a constant time sorting algorithm and constant time division. Would it make sense to move the implementation to subtle instead to make them accessible to other implementers?
@oddcoder things like constant time division may be more the purview of something like crypto-bigint, which already implements it (and may other operations)
noted! I think I will just use that in my implementation, but do you that constant time sorting belong here ? or an other place? If not I can just keep it as part of ntru implementation
Constant-time sorting built on traits like ConstantTimeLess/ConstantTimeEq/ConstantTimeGreater sounds potentially useful