- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for BenchmarkModAdd (0.11 sec)
-
lib/fips140/v1.0.0-c2097c7c.zip
maxModulus(32) } func makeBenchmarkValue() *Nat { x := make([]uint, 32) for i := 0; i < 32; i++ { x[i]-- } return &Nat{limbs: x} } func makeBenchmarkExponen() []byte { e := make([]byte, 256) for i := 0; i < 32; i++ { e[i] = 0xFF } return e } func BenchmarkModAdd(b *testing.B) { x := makeBenchmarkValue() y := makeBenchmarkValue() m := makeBenchmarkModulus() b.ResetTimer() for i := 0; i < b.N; i++ { x.Add(y, m) } } func BenchmarkModSub(b *testing.B) { x := makeBenchmarkValue() y := makeBenchmarkValue()...
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Sep 25 19:53:19 UTC 2025 - 642.7K bytes - Viewed (0) -
lib/fips140/v1.1.0-rc1.zip
maxModulus(32) } func makeBenchmarkValue() *Nat { x := make([]uint, 32) for i := 0; i < 32; i++ { x[i]-- } return &Nat{limbs: x} } func makeBenchmarkExponen() []byte { e := make([]byte, 256) for i := 0; i < 32; i++ { e[i] = 0xFF } return e } func BenchmarkModAdd(b *testing.B) { x := makeBenchmarkValue() y := makeBenchmarkValue() m := makeBenchmarkModulus() b.ResetTimer() for i := 0; i < b.N; i++ { x.Add(y, m) } } func BenchmarkModSub(b *testing.B) { x := makeBenchmarkValue() y := makeBenchmarkValue()...
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Dec 11 16:27:41 UTC 2025 - 663K bytes - Viewed (0)