Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for naf (0.28 sec)

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

    	b := s.Bytes()
    	if b[31] > 127 {
    		panic("scalar has high bit set illegally")
    	}
    	if w < 2 {
    		panic("w must be at least 2 by the definition of NAF")
    	} else if w > 8 {
    		panic("NAF digits must fit in int8")
    	}
    
    	var naf [256]int8
    	var digits [5]uint64
    
    	for i := 0; i < 4; i++ {
    		digits[i] = byteorder.LeUint64(b[i*8:])
    	}
    
    	width := uint64(1 << w)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. src/crypto/internal/edwards25519/scalarmult.go

    	// fewer additions).
    
    	basepointNafTable := basepointNafTable()
    	var aTable nafLookupTable5
    	aTable.FromP3(A)
    	// Because the basepoint is fixed, we can use a wider NAF
    	// corresponding to a bigger table.
    	aNaf := a.nonAdjacentForm(5)
    	bNaf := b.nonAdjacentForm(8)
    
    	// Find the first nonzero coefficient.
    	i := 255
    	for j := i; j >= 0; j-- {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 05 21:53:10 UTC 2022
    - 6.3K bytes
    - Viewed (0)
Back to top