Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,794 for limb (0.04 sec)

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

    	a0 := a.l0
    	a1 := a.l1
    	a2 := a.l2
    	a3 := a.l3
    	a4 := a.l4
    
    	b0 := b.l0
    	b1 := b.l1
    	b2 := b.l2
    	b3 := b.l3
    	b4 := b.l4
    
    	// Limb multiplication works like pen-and-paper columnar multiplication, but
    	// with 51-bit limbs instead of digits.
    	//
    	//                          a4   a3   a2   a1   a0  x
    	//                          b4   b3   b2   b1   b0  =
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.s

    //   [a, b, c, d] - SIMD register holding four 32-bit values
    //   xᵢ[n]        - limb n of variable x with bit width i
    //
    // Limbs are expressed in little endian order, so for 26-bit
    // limbs x₂₆[4] will be the most significant limb and x₂₆[0]
    // will be the least significant limb.
    
    // masking constants
    #define MOD24 V0 // [0x0000000000ffffff, 0x0000000000ffffff] - mask low 24-bits
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  3. src/crypto/internal/bigmod/nat.go

    	clear(extraLimbs)
    	x.limbs = x.limbs[:n]
    	return x
    }
    
    // reset returns a zero nat of n limbs, reusing x's storage if n <= cap(x.limbs).
    func (x *Nat) reset(n int) *Nat {
    	if cap(x.limbs) < n {
    		x.limbs = make([]uint, n)
    		return x
    	}
    	clear(x.limbs)
    	x.limbs = x.limbs[:n]
    	return x
    }
    
    // set assigns x = y, optionally resizing x to the appropriate size.
    func (x *Nat) set(y *Nat) *Nat {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/crypto/internal/poly1305/sum_generic.go

    			h2 += c
    
    			msg = nil
    		}
    
    		// Multiplication of big number limbs is similar to elementary school
    		// columnar multiplication. Instead of digits, there are 64-bit limbs.
    		//
    		// We are multiplying a 3 limbs number, h, by a 2 limbs number, r.
    		//
    		//                        h2    h1    h0  x
    		//                              r1    r0  =
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. src/crypto/internal/bigmod/nat_test.go

    )
    
    func (n *Nat) String() string {
    	var limbs []string
    	for i := range n.limbs {
    		limbs = append(limbs, fmt.Sprintf("%016X", n.limbs[len(n.limbs)-1-i]))
    	}
    	return "{" + strings.Join(limbs, " ") + "}"
    }
    
    // Generate generates an even nat. It's used by testing/quick to produce random
    // *nat values for quick.Check invocations.
    func (*Nat) Generate(r *rand.Rand, size int) reflect.Value {
    	limbs := make([]uint, size)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 12 00:56:20 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. src/crypto/internal/edwards25519/scalar.go

    	s.Add(s, t.Multiply(t, scalarTwo336))
    
    	return s, nil
    }
    
    // scalarTwo168 and scalarTwo336 are 2^168 and 2^336 modulo l, encoded as a
    // fiatScalarMontgomeryDomainFieldElement, which is a little-endian 4-limb value
    // in the 2^256 Montgomery domain.
    var scalarTwo168 = &Scalar{s: [4]uint64{0x5b8ab432eac74798, 0x38afddd6de59d5d7,
    	0xa2c131b399411b7c, 0x6329a7ed9ce5a30}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. test/codegen/mathbits.go

    //
    // This is an example of why CarryChainTail priority must be lower
    // (earlier in the block) than Memory. f[0]=f1 could be scheduled
    // after the first two lower 64 bit limb adds, but before either
    // high 64 bit limbs are added.
    //
    // This is what happened on PPC64 when compiling
    // crypto/internal/edwards25519/field.feMulGeneric.
    func Add64MultipleChains(a, b, c, d [2]uint64) {
    	var cx, d1, d2 uint64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:51:17 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  8. src/crypto/internal/nistec/fiat/p256_fiat64.go

    	var x170 uint64
    	p256CmovznzU64(&x170, p256Uint1(x166), x163, x155)
    	out1[0] = x167
    	out1[1] = x168
    	out1[2] = x169
    	out1[3] = x170
    }
    
    // p256Selectznz is a multi-limb conditional select.
    //
    // Postconditions:
    //
    //	eval out1 = (if arg1 = 0 then eval arg2 else eval arg3)
    //
    // Input Bounds:
    //
    //	arg1: [0x0 ~> 0x1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 05 21:53:03 UTC 2022
    - 41.2K bytes
    - Viewed (0)
  9. src/crypto/internal/nistec/fiat/p224_fiat64.go

    	var x179 uint64
    	p224CmovznzU64(&x179, p224Uint1(x175), x172, x165)
    	out1[0] = x176
    	out1[1] = x177
    	out1[2] = x178
    	out1[3] = x179
    }
    
    // p224Selectznz is a multi-limb conditional select.
    //
    // Postconditions:
    //
    //	eval out1 = (if arg1 = 0 then eval arg2 else eval arg3)
    //
    // Input Bounds:
    //
    //	arg1: [0x0 ~> 0x1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 05 21:53:03 UTC 2022
    - 43.2K bytes
    - Viewed (0)
  10. test/fixedbugs/bug424.dir/lib.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package lib
    
    type I interface {
    	m() string
    }
    
    type T struct{}
    
    // m is not accessible from outside this package.
    func (t *T) m() string {
    	return "lib.T.m"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 319 bytes
    - Viewed (0)
Back to top