- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for MemBytes (0.14 sec)
-
src/cmd/vendor/golang.org/x/arch/x86/x86asm/plan9x.go
switch last & 0xFF { case 0, 0x66, 0x67: // ignore default: prefix += last.String() + " " } op := inst.Op.String() if plan9Suffix[inst.Op] { s := inst.DataSize if inst.MemBytes != 0 { s = inst.MemBytes * 8 } else if inst.Args[1] == nil { // look for register-only 64-bit instruction, like PUSHQ AX if r, ok := inst.Args[0].(Reg); ok && RAX <= r && r <= R15 { s = 64 } } switch s {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 12 20:38:21 UTC 2023 - 7.2K bytes - Viewed (0) -
pkg/test/csrctrl/signer/signer.go
return nil, fmt.Errorf("error decoding DER certificate bytes: %s", err.Error()) } pemBytes := bytes.NewBuffer([]byte{}) err = pem.Encode(pemBytes, &pem.Block{Type: "CERTIFICATE", Bytes: der}) if err != nil { return nil, fmt.Errorf("error encoding certificate PEM: %s", err.Error()) } intermediateCerts, err := util.AppendRootCerts(pemBytes.Bytes(), s.caProvider.caIntermediate.CertFile) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Dec 03 18:57:19 UTC 2021 - 2.5K bytes - Viewed (0) -
pkg/apis/certificates/v1/helpers.go
*/ package v1 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: Fri Jun 05 04:47:24 UTC 2020 - 1K bytes - Viewed (0) -
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) -
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) -
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)