Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for montgomery (0.14 sec)

  1. src/crypto/internal/nistec/p256_ordinv.go

    	t := new(p256OrdElement)
    
    	// This code operates in the Montgomery domain where R = 2²⁵⁶ mod n and n is
    	// the order of the scalar field. Elements in the Montgomery domain take the
    	// form a×R and p256OrdMul calculates (a × b × R⁻¹) mod n. RR is R in the
    	// domain, or R×R mod n, thus p256OrdMul(x, RR) gives x×R, i.e. converts x
    	// into the Montgomery domain.
    	RR := &p256OrdElement{0x83244c95be79eea2, 0x4699799c49bd6fa6,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/math/big/nat.go

    	for i := len(y) - 1; i >= 0; i-- {
    		yi := y[i]
    		for j := 0; j < _W; j += n {
    			if i != len(y)-1 || j != 0 {
    				zz = zz.montgomery(z, z, m, k0, numWords)
    				z = z.montgomery(zz, zz, m, k0, numWords)
    				zz = zz.montgomery(z, z, m, k0, numWords)
    				z = z.montgomery(zz, zz, m, k0, numWords)
    			}
    			zz = zz.montgomery(z, powers[yi>>(_W-n)], m, k0, numWords)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  3. src/crypto/internal/bigmod/nat.go

    // n = len(m.nat.limbs).
    //
    // Faster Montgomery multiplication replaces standard modular multiplication for
    // numbers in this representation.
    //
    // This assumes that x is already reduced mod m.
    func (x *Nat) montgomeryRepresentation(m *Modulus) *Nat {
    	// A Montgomery multiplication (which computes a * b / R) by R * R works out
    	// to a multiplication by R, which takes the value out of the Montgomery domain.
    	return x.montgomeryMul(x, m.rr, m)
    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/crypto/internal/nistec/p256_asm.go

    // domain (with R 2²⁵⁶) as four limbs in little-endian order value.
    type p256Element [4]uint64
    
    // p256One is one in the Montgomery domain.
    var p256One = p256Element{0x0000000000000001, 0xffffffff00000000,
    	0xffffffffffffffff, 0x00000000fffffffe}
    
    var p256Zero = p256Element{}
    
    // p256P is 2²⁵⁶ - 2²²⁴ + 2¹⁹² + 2⁹⁶ - 1 in the Montgomery domain.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  5. LICENSES/vendor/github.com/x448/float16/LICENSE

    = vendor/github.com/x448/float16 licensed under: =
    
    MIT License
    
    Copyright (c) 2019 Montgomery Edwards⁴⁴⁸ and Faye Amacker
    
    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 25 13:35:26 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  6. src/crypto/internal/edwards25519/scalar_fiat.go

    // The type fiatScalarMontgomeryDomainFieldElement is a field element in the Montgomery domain.
    //
    // Bounds: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]]
    type fiatScalarMontgomeryDomainFieldElement [4]uint64
    
    // The type fiatScalarNonMontgomeryDomainFieldElement is a field element NOT in the Montgomery domain.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 18:45:00 UTC 2022
    - 35.6K bytes
    - Viewed (0)
  7. src/crypto/internal/nistec/fiat/p256_fiat64.go

    // The type p256MontgomeryDomainFieldElement is a field element in the Montgomery domain.
    //
    // Bounds: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]]
    type p256MontgomeryDomainFieldElement [4]uint64
    
    // The type p256NonMontgomeryDomainFieldElement is a field element NOT in the Montgomery domain.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 05 21:53:03 UTC 2022
    - 41.2K bytes
    - Viewed (0)
  8. src/crypto/internal/nistec/fiat/p224_fiat64.go

    // The type p224MontgomeryDomainFieldElement is a field element in the Montgomery domain.
    //
    // Bounds: [[0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff], [0x0 ~> 0xffffffffffffffff]]
    type p224MontgomeryDomainFieldElement [4]uint64
    
    // The type p224NonMontgomeryDomainFieldElement is a field element NOT in the Montgomery domain.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 05 21:53:03 UTC 2022
    - 43.2K bytes
    - Viewed (0)
  9. src/crypto/internal/edwards25519/scalar.go

    //
    // This type works similarly to math/big.Int, and all arguments and
    // receivers are allowed to alias.
    //
    // The zero value is a valid zero element.
    type Scalar struct {
    	// s is the scalar in the Montgomery domain, in the format of the
    	// fiat-crypto implementation.
    	s fiatScalarMontgomeryDomainFieldElement
    }
    
    // The field implementation in scalar_fiat.go is generated by the fiat-crypto
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  10. src/crypto/internal/nistec/fiat/p224.go

    	"crypto/subtle"
    	"errors"
    )
    
    // P224Element is an integer modulo 2^224 - 2^96 + 1.
    //
    // The zero value is a valid zero element.
    type P224Element struct {
    	// Values are represented internally always in the Montgomery domain, and
    	// converted in Bytes and SetBytes.
    	x p224MontgomeryDomainFieldElement
    }
    
    const p224ElementLen = 28
    
    type p224UntypedFieldElement = [4]uint64
    
    // One sets e = 1, and returns e.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
Back to top