Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for MemBytes (0.23 sec)

  1. pkg/apis/certificates/v1beta1/helpers.go

    */
    
    package v1beta1
    
    import (
    	"crypto/x509"
    	"encoding/pem"
    	"errors"
    )
    
    // ParseCSR decodes a PEM encoded CSR
    func ParseCSR(pemBytes []byte) (*x509.CertificateRequest, error) {
    	// extract PEM from request object
    	block, _ := pem.Decode(pemBytes)
    	if block == nil || block.Type != "CERTIFICATE REQUEST" {
    		return nil, errors.New("PEM block type must be CERTIFICATE REQUEST")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 27 10:17:55 UTC 2020
    - 1K bytes
    - Viewed (0)
  2. pkg/apis/certificates/helpers.go

    	"errors"
    	"fmt"
    	"reflect"
    	"strings"
    
    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    // ParseCSR extracts the CSR from the bytes and decodes it.
    func ParseCSR(pemBytes []byte) (*x509.CertificateRequest, error) {
    	block, _ := pem.Decode(pemBytes)
    	if block == nil || block.Type != "CERTIFICATE REQUEST" {
    		return nil, errors.New("PEM block type must be CERTIFICATE REQUEST")
    	}
    	csr, err := x509.ParseCertificateRequest(block.Bytes)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 27 08:04:25 UTC 2022
    - 4K bytes
    - Viewed (0)
  3. src/cmd/go/internal/vcweb/vcstest/vcstest.go

    	client := &http.Client{
    		Transport: http.DefaultTransport.(*http.Transport).Clone(),
    	}
    
    	pemBytes, err := os.ReadFile(certFile)
    	if err != nil {
    		return nil, err
    	}
    
    	certpool := x509.NewCertPool()
    	if !certpool.AppendCertsFromPEM(pemBytes) {
    		return nil, fmt.Errorf("no certificates found in %s", certFile)
    	}
    	client.Transport.(*http.Transport).TLSClientConfig = &tls.Config{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 13:44:48 UTC 2022
    - 3.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Benchmark", Func, 0},
    		{"BenchmarkResult", Type, 0},
    		{"BenchmarkResult.Bytes", Field, 0},
    		{"BenchmarkResult.Extra", Field, 13},
    		{"BenchmarkResult.MemAllocs", Field, 1},
    		{"BenchmarkResult.MemBytes", Field, 1},
    		{"BenchmarkResult.N", Field, 0},
    		{"BenchmarkResult.T", Field, 0},
    		{"Cover", Type, 2},
    		{"Cover.Blocks", Field, 2},
    		{"Cover.Counters", Field, 2},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  5. src/crypto/x509/x509_test.go

    		X:     big.NewInt(1), Y: big.NewInt(2),
    	})
    	if err == nil {
    		t.Errorf("expected error, got MarshalPKIXPublicKey success")
    	}
    }
    
    func testParsePKIXPublicKey(t *testing.T, pemBytes string) (pub any) {
    	block, _ := pem.Decode([]byte(pemBytes))
    	pub, err := ParsePKIXPublicKey(block.Bytes)
    	if err != nil {
    		t.Fatalf("Failed to parse public key: %s", err)
    	}
    
    	pubBytes2, err := MarshalPKIXPublicKey(pub)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  6. src/crypto/x509/verify_test.go

    	if _, ok := err.(UnhandledCriticalExtension); !ok {
    		t.Fatalf("error was not an UnhandledCriticalExtension: %v", err)
    	}
    }
    
    func certificateFromPEM(pemBytes string) (*Certificate, error) {
    	block, _ := pem.Decode([]byte(pemBytes))
    	if block == nil {
    		return nil, errors.New("failed to decode PEM")
    	}
    	return ParseCertificate(block.Bytes)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 110.2K bytes
    - Viewed (0)
  7. api/go1.1.txt

    pkg testing, method (BenchmarkResult) AllocsPerOp() int64
    pkg testing, method (BenchmarkResult) MemString() string
    pkg testing, type BenchmarkResult struct, MemAllocs uint64
    pkg testing, type BenchmarkResult struct, MemBytes uint64
    pkg text/scanner, const Char = -5
    pkg text/scanner, const Comment = -8
    pkg text/scanner, const EOF = -1
    pkg text/scanner, const Float = -4
    pkg text/scanner, const GoTokens = 1012
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 2.6M bytes
    - Viewed (0)
Back to top