aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ffi/ffi_pkey.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-10-31 12:39:27 -0400
committerJack Lloyd <[email protected]>2018-10-31 12:39:27 -0400
commitc6b656d51e3e16c26260d9e38729af77d3e52164 (patch)
tree3b6f60f8334c68b0170d1cc318d50888c16aae83 /src/lib/ffi/ffi_pkey.cpp
parent22448d46f7c831598beee2286af88ac675d84aed (diff)
Minor optimization when primality checking
Avoid doing the comparison against the largest hard coded prime, when we know the prime table is 16 bits and we already have to compute the bitsize of n in order to calculate the required number of Miller-Rabin iterations.
Diffstat (limited to 'src/lib/ffi/ffi_pkey.cpp')
0 files changed, 0 insertions, 0 deletions