Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for p256SetOne (0.11 sec)

  1. src/crypto/internal/nistec/fiat/p256.go

    	x p256MontgomeryDomainFieldElement
    }
    
    const p256ElementLen = 32
    
    type p256UntypedFieldElement = [4]uint64
    
    // One sets e = 1, and returns e.
    func (e *P256Element) One() *P256Element {
    	p256SetOne(&e.x)
    	return e
    }
    
    // Equal returns 1 if e == t, and zero otherwise.
    func (e *P256Element) Equal(t *P256Element) int {
    	eBytes := e.Bytes()
    	tBytes := t.Bytes()
    	return subtle.ConstantTimeCompare(eBytes, tBytes)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  2. src/crypto/internal/nistec/fiat/p256_fiat64.go

    	out1[0] = x10
    	out1[1] = x12
    	out1[2] = x14
    	out1[3] = x16
    }
    
    // p256SetOne returns the field element one in the Montgomery domain.
    //
    // Postconditions:
    //
    //	eval (from_montgomery out1) mod m = 1 mod m
    //	0 ≤ eval out1 < m
    func p256SetOne(out1 *p256MontgomeryDomainFieldElement) {
    	out1[0] = uint64(0x1)
    	out1[1] = 0xffffffff00000000
    	out1[2] = 0xffffffffffffffff
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 05 21:53:03 UTC 2022
    - 41.2K bytes
    - Viewed (0)
Back to top