Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestSetBytesRoundTrip (0.13 sec)

  1. src/crypto/internal/edwards25519/field/fe_test.go

    	r = addMul64(r, a, b)
    	r = addMul64(r, a, b)
    	r = addMul64(r, a, b)
    	if r.lo != 16888498990613035 || r.hi != 640 {
    		t.Errorf("wrong answer: %d + %d*(2**64)", r.lo, r.hi)
    	}
    }
    
    func TestSetBytesRoundTrip(t *testing.T) {
    	f1 := func(in [32]byte, fe Element) bool {
    		fe.SetBytes(in[:])
    
    		// Mask the most significant bit as it's ignored by SetBytes. (Now
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 13.9K bytes
    - Viewed (0)
Back to top