Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MemBytes (0.15 sec)

  1. 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)
  2. 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)
Back to top