Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for p256NegCond (0.42 sec)

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

    		// Select the positive or negative root, as indicated by the least
    		// significant bit, based on the encoding type byte.
    		yy := new(p256Element)
    		p256FromMont(yy, &r.y)
    		cond := int(yy[0]&1) ^ int(b[0]&1)
    		p256NegCond(&r.y, cond)
    
    		r.z = p256One
    		return p.Set(&r), nil
    
    	default:
    		return nil, errors.New("invalid P256 point encoding")
    	}
    }
    
    // p256Polynomial sets y2 to x³ - 3x + b, and returns y2.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  2. src/crypto/internal/nistec/p256_asm_arm64.s

    	CSEL	EQ, R22, R9, R9
    	STP	(R4, R5), 3*16(res_ptr)
    	STP	(R6, R7), 4*16(res_ptr)
    	STP	(R8, R9), 5*16(res_ptr)
    
    	RET
    /* ---------------------------------------*/
    // func p256NegCond(val *p256Element, cond int)
    TEXT ·p256NegCond(SB),NOSPLIT,$0
    	MOVD	val+0(FP), a_ptr
    	MOVD	cond+8(FP), hlp0
    	MOVD	a_ptr, res_ptr
    	// acc = poly
    	MOVD	$-1, acc0
    	MOVD	p256const0<>(SB), acc1
    	MOVD	$0, acc2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  3. src/crypto/internal/nistec/p256_asm_amd64.s

    	MOVOU X2, (16*2)(res_ptr)
    	MOVOU X3, (16*3)(res_ptr)
    	MOVOU X4, (16*4)(res_ptr)
    	MOVOU X5, (16*5)(res_ptr)
    
    	RET
    /* ---------------------------------------*/
    // func p256NegCond(val *p256Element, cond int)
    TEXT ·p256NegCond(SB),NOSPLIT,$0
    	MOVQ val+0(FP), res_ptr
    	MOVQ cond+8(FP), t0
    	// acc = poly
    	MOVQ $-1, acc0
    	MOVQ p256const0<>(SB), acc1
    	MOVQ $0, acc2
    	MOVQ p256const1<>(SB), acc3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  4. src/crypto/internal/nistec/p256_asm_ppc64le.s

    #define CPOOL   R7
    
    #define Y1L   V0
    #define Y1H   V1
    #define T1L   V2
    #define T1H   V3
    
    #define PL    V30
    #define PH    V31
    
    #define CAR1  V6
    // func p256NegCond(val *p256Point, cond int)
    TEXT ·p256NegCond(SB), NOSPLIT, $0-16
    	MOVD val+0(FP), P1ptr
    	MOVD $16, R16
    
    	MOVD cond+8(FP), R6
    	CMP  $0, R6
    	BC   12, 2, LR      // just return if cond == 0
    
    	MOVD $p256mul<>+0x00(SB), CPOOL
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  5. src/crypto/internal/nistec/p256_asm_s390x.s

    // ---------------------------------------
    // iff cond == 1  val <- -val
    // func p256NegCond(val *p256Element, cond int)
    #define P1ptr   R1
    #define CPOOL   R4
    
    #define Y1L   V0
    #define Y1H   V1
    #define T1L   V2
    #define T1H   V3
    
    #define PL    V30
    #define PH    V31
    
    #define ZER   V4
    #define SEL1  V5
    #define CAR1  V6
    TEXT ·p256NegCond(SB), NOSPLIT, $0
    	MOVD val+0(FP), P1ptr
    
    	MOVD $p256mul<>+0x00(SB), CPOOL
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 55.4K bytes
    - Viewed (0)
Back to top