Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for setShortBytes (0.3 sec)

  1. src/crypto/internal/edwards25519/scalar.go

    	//
    	// We then precompute 2^168 and 2^336 modulo l, and perform the reduction
    	// with two multiplications and two additions.
    
    	s.setShortBytes(x[:21])
    	t := new(Scalar).setShortBytes(x[21:42])
    	s.Add(s, t.Multiply(t, scalarTwo168))
    	t.setShortBytes(x[42:])
    	s.Add(s, t.Multiply(t, scalarTwo336))
    
    	return s, nil
    }
    
    // scalarTwo168 and scalarTwo336 are 2^168 and 2^336 modulo l, encoded as a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top