Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 440 for Scalar (0.14 sec)

  1. docs/en/docs/img/sponsors/scalar.svg

    scalar.svg...
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Nov 28 10:52:35 UTC 2023
    - 35.8K bytes
    - Viewed (0)
  2. src/crypto/internal/edwards25519/scalar.go

    func (s *Scalar) Add(x, y *Scalar) *Scalar {
    	// s = 1 * x + y mod l
    	fiatScalarAdd(&s.s, &x.s, &y.s)
    	return s
    }
    
    // Subtract sets s = x - y mod l, and returns s.
    func (s *Scalar) Subtract(x, y *Scalar) *Scalar {
    	// s = -1 * y + x mod l
    	fiatScalarSub(&s.s, &x.s, &y.s)
    	return s
    }
    
    // Negate sets s = -x mod l, and returns s.
    func (s *Scalar) Negate(x *Scalar) *Scalar {
    	// s = -1 * x + 0 mod l
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. docs/en/docs/img/sponsors/scalar-banner.svg

    scalar-banner.svg...
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Nov 28 10:52:35 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  4. src/crypto/internal/edwards25519/scalar_alias_test.go

    			return checkAliasingTwoArgs(func(v, x, y *Scalar) *Scalar {
    				return v.MultiplyAdd(&fixed, x, y)
    			}, v, x, y)
    		},
    		"MultiplyAdd2": func(v, x, y, fixed Scalar) bool {
    			return checkAliasingTwoArgs(func(v, x, y *Scalar) *Scalar {
    				return v.MultiplyAdd(x, &fixed, y)
    			}, v, x, y)
    		},
    		"MultiplyAdd3": func(v, x, y, fixed Scalar) bool {
    			return checkAliasingTwoArgs(func(v, x, y *Scalar) *Scalar {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 3K bytes
    - Viewed (0)
  5. src/crypto/internal/nistec/nistec_test.go

    	testenv.SkipIfOptimizationOff(t)
    
    	t.Run("P224", func(t *testing.T) {
    		if allocs := testing.AllocsPerRun(10, func() {
    			p := nistec.NewP224Point().SetGenerator()
    			scalar := make([]byte, 28)
    			rand.Read(scalar)
    			p.ScalarBaseMult(scalar)
    			p.ScalarMult(p, scalar)
    			out := p.Bytes()
    			if _, err := nistec.NewP224Point().SetBytes(out); err != nil {
    				t.Fatal(err)
    			}
    			out = p.BytesCompressed()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 12 18:48:23 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. src/crypto/internal/edwards25519/scalarmult_test.go

    // license that can be found in the LICENSE file.
    
    package edwards25519
    
    import (
    	"testing"
    	"testing/quick"
    )
    
    var (
    	// a random scalar generated using dalek.
    	dalekScalar, _ = (&Scalar{}).SetCanonicalBytes([]byte{219, 106, 114, 9, 174, 249, 155, 89, 69, 203, 201, 93, 92, 116, 234, 187, 78, 115, 103, 172, 182, 98, 62, 103, 187, 136, 13, 100, 248, 110, 12, 4})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  7. src/crypto/internal/edwards25519/scalar_test.go

    	}
    	return cfg
    }
    
    var scOneBytes = [32]byte{1}
    var scOne, _ = new(Scalar).SetCanonicalBytes(scOneBytes[:])
    var scMinusOne, _ = new(Scalar).SetCanonicalBytes(scalarMinusOneBytes[:])
    
    // Generate returns a valid (reduced modulo l) Scalar with a distribution
    // weighted towards high, low, and edge values.
    func (Scalar) Generate(rand *mathrand.Rand, size int) reflect.Value {
    	var s [32]byte
    	diceRoll := rand.Intn(100)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  8. src/runtime/metrics.go

    // metricValue is a runtime copy of runtime/metrics.Sample and
    // must be kept structurally identical to that type.
    type metricValue struct {
    	kind    metricKind
    	scalar  uint64         // contains scalar values for scalar Kinds.
    	pointer unsafe.Pointer // contains non-scalar values.
    }
    
    // float64HistOrInit tries to pull out an existing float64Histogram
    // from the value, but if none exists, then it allocates one with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 26K bytes
    - Viewed (0)
  9. src/runtime/metrics/value.go

    	KindFloat64Histogram
    )
    
    // Value represents a metric value returned by the runtime.
    type Value struct {
    	kind    ValueKind
    	scalar  uint64         // contains scalar values for scalar Kinds.
    	pointer unsafe.Pointer // contains non-scalar values.
    }
    
    // Kind returns the tag representing the kind of value this is.
    func (v Value) Kind() ValueKind {
    	return v.kind
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. src/crypto/elliptic/nistec.go

    }
    
    // normalizeScalar brings the scalar within the byte size of the order of the
    // curve, as expected by the nistec scalar multiplication functions.
    func (curve *nistCurve[Point]) normalizeScalar(scalar []byte) []byte {
    	byteSize := (curve.params.N.BitLen() + 7) / 8
    	if len(scalar) == byteSize {
    		return scalar
    	}
    	s := new(big.Int).SetBytes(scalar)
    	if len(scalar) > byteSize {
    		s.Mod(s, curve.params.N)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 16:19:34 UTC 2022
    - 9.6K bytes
    - Viewed (0)
Back to top