Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 155 for p256 (0.04 sec)

  1. src/crypto/tls/common.go

    	var ecdsaCipherSuite bool
    	if priv, ok := c.PrivateKey.(crypto.Signer); ok {
    		switch pub := priv.Public().(type) {
    		case *ecdsa.PublicKey:
    			var curve CurveID
    			switch pub.Curve {
    			case elliptic.P256():
    				curve = CurveP256
    			case elliptic.P384():
    				curve = CurveP384
    			case elliptic.P521():
    				curve = CurveP521
    			default:
    				return supportsRSAFallback(unsupportedCertificateError(c))
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation_test.go

    			in:   func() string { return "" },
    			want: "",
    		},
    		{
    			name: "valid certificate authority",
    			in: func() string {
    				caPrivateKey, err := ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
    				if err != nil {
    					t.Fatal(err)
    				}
    				caCert, err := certutil.NewSelfSignedCACert(certutil.Config{CommonName: "test-ca"}, caPrivateKey)
    				if err != nil {
    					t.Fatal(err)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 87.2K bytes
    - Viewed (0)
  3. src/image/color/ycbcr_test.go

    	}
    	return nil
    }
    
    // TestYCbCrRoundtrip tests that a subset of RGB space can be converted to YCbCr
    // and back to within 2/256 tolerance.
    func TestYCbCrRoundtrip(t *testing.T) {
    	for r := 0; r < 256; r += 7 {
    		for g := 0; g < 256; g += 5 {
    			for b := 0; b < 256; b += 3 {
    				r0, g0, b0 := uint8(r), uint8(g), uint8(b)
    				y, cb, cr := RGBToYCbCr(r0, g0, b0)
    				r1, g1, b1 := YCbCrToRGB(y, cb, cr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 07:51:17 UTC 2016
    - 7.3K bytes
    - Viewed (0)
  4. src/runtime/duff_s390x.s

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    #include "go_asm.h"
    #include "go_tls.h"
    #include "textflag.h"
    
    // s390x can copy/zero 1-256 bytes with a single instruction,
    // so there's no need for these, except to satisfy the prototypes
    // in stubs.go.
    
    TEXT runtime·duffzero(SB),NOSPLIT|NOFRAME,$0-0
    	MOVD	$0, 2(R0)
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 23:41:02 UTC 2019
    - 507 bytes
    - Viewed (0)
  5. src/cmd/compile/internal/s390x/ggen.go

    		p = pp.Append(p, s390x.AMOVD, obj.TYPE_CONST, 0, cnt/256, obj.TYPE_REG, ireg, 0)
    		p = pp.Append(p, s390x.ACLEAR, obj.TYPE_CONST, 0, 256, obj.TYPE_MEM, reg, off)
    		pl := p
    		p = pp.Append(p, s390x.AADD, obj.TYPE_CONST, 0, 256, obj.TYPE_REG, reg, 0)
    		p = pp.Append(p, s390x.ABRCTG, obj.TYPE_REG, ireg, 0, obj.TYPE_BRANCH, 0, 0)
    		p.To.SetTarget(pl)
    		cnt = cnt % 256
    	}
    
    	// Generate remaining clear instructions without a loop.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 19 15:59:22 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  6. src/image/gif/writer.go

    	g GIF
    	// globalCT is the size in bytes of the global color table.
    	globalCT int
    	// buf is a scratch buffer. It must be at least 256 for the blockWriter.
    	buf              [256]byte
    	globalColorTable [3 * 256]byte
    	localColorTable  [3 * 256]byte
    }
    
    // blockWriter writes the block structure of GIF image data, which
    // comprises (n, (n bytes)) blocks, with 1 <= n <= 255. It is the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:38:09 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types/sizeof_test.go

    		_32bit uintptr     // size on 32bit platforms
    		_64bit uintptr     // size on 64bit platforms
    	}{
    		{Sym{}, 32, 64},
    		{Type{}, 64, 104},
    		{Map{}, 12, 24},
    		{Forward{}, 20, 32},
    		{Func{}, 32, 56},
    		{Struct{}, 12, 24},
    		{Interface{}, 0, 0},
    		{Chan{}, 8, 16},
    		{Array{}, 12, 16},
    		{FuncArgs{}, 4, 8},
    		{ChanArgs{}, 4, 8},
    		{Ptr{}, 4, 8},
    		{Slice{}, 4, 8},
    	}
    
    	for _, tt := range tests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 17:08:44 UTC 2024
    - 1K bytes
    - Viewed (0)
  8. src/hash/crc32/crc32_table_ppc64le.s

    DATA ·IEEEConst+1232(SB)/8,$0x00000001cd2a0ae8
    DATA ·IEEEConst+1240(SB)/8,$0x0000000111b0024c
    
    	/* x^181312 mod p(x), x^181248 mod p(x) */
    DATA ·IEEEConst+1248(SB)/8,$0x00000001fe4aa8b4
    DATA ·IEEEConst+1256(SB)/8,$0x000000010b3079da
    
    	/* x^180288 mod p(x), x^180224 mod p(x) */
    DATA ·IEEEConst+1264(SB)/8,$0x00000001d1559a42
    DATA ·IEEEConst+1272(SB)/8,$0x000000010192bcc2
    
    	/* x^179264 mod p(x), x^179200 mod p(x) */
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 19 20:44:20 UTC 2024
    - 113.3K bytes
    - Viewed (0)
  9. test/heapsampling.go

    // license that can be found in the LICENSE file.
    
    // Test heap sampling logic.
    
    package main
    
    import (
    	"fmt"
    	"math"
    	"runtime"
    )
    
    var a16 *[16]byte
    var a512 *[512]byte
    var a256 *[256]byte
    var a1k *[1024]byte
    var a16k *[16 * 1024]byte
    var a17k *[17 * 1024]byte
    var a18k *[18 * 1024]byte
    
    // This test checks that heap sampling produces reasonable results.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 27 21:36:06 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  10. src/math/big/sqrt_test.go

    		{"4.0", "2.0"},
    
    		{"1p512", "1p256"},
    		{"4p1024", "2p512"},
    		{"9p2048", "3p1024"},
    
    		{"1p-1024", "1p-512"},
    		{"4p-2048", "2p-1024"},
    		{"9p-4096", "3p-2048"},
    	} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 4.8K bytes
    - Viewed (0)
Back to top