montgomery reduction backbone testing infrastructure