- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TestShiftIn (0.08 sec)
-
lib/fips140/v1.0.0-c2097c7c.zip
new(Nat).set(a) monty.montgomeryRepresenta(m) aAgain := new(Nat).set(monty) aAgain.montgomeryMul(monty, one, m) if a.Equal(aAgain) != 1 { t.Errorf("%v != %v", a, aAgain) return false } return true }, &quick.Config{}) if err != nil { t.Error(err) } } func TestShiftIn(t *testing.T) { if bits.UintSize != 64 { t.Skip("examples are only valid in 64 bit") } examples := []struct { m, x, expected []byte y uint64 }{{ m: []byte{13}, x: []byte{0}, y: 0xFFFF_FFFF_FFFF_FFFF, expected: []byte{2}, }, { m: []byte{13}, x: []byte{7},...
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
new(Nat).set(a) monty.montgomeryRepresenta(m) aAgain := new(Nat).set(monty) aAgain.montgomeryMul(monty, one, m) if a.Equal(aAgain) != 1 { t.Errorf("%v != %v", a, aAgain) return false } return true }, &quick.Config{}) if err != nil { t.Error(err) } } func TestShiftIn(t *testing.T) { if bits.UintSize != 64 { t.Skip("examples are only valid in 64 bit") } examples := []struct { m, x, expected []byte y uint64 }{{ m: []byte{13}, x: []byte{0}, y: 0xFFFF_FFFF_FFFF_FFFF, expected: []byte{2}, }, { m: []byte{13}, x: []byte{7},...
Registered: Tue Dec 30 11:13:12 UTC 2025 - Last Modified: Thu Dec 11 16:27:41 UTC 2025 - 663K bytes - Viewed (0)