Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for NullBytes (0.3 sec)

  1. src/encoding/asn1/asn1_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    	if !bytes.Equal(NullBytes, marshaled) {
    		t.Errorf("Expected Marshal of NullRawValue to yield %x, got %x", NullBytes, marshaled)
    	}
    
    	unmarshaled := RawValue{}
    	if _, err := Unmarshal(NullBytes, &unmarshaled); err != nil {
    		t.Fatal(err)
    	}
    
    	unmarshaled.FullBytes = NullRawValue.FullBytes
    	if len(unmarshaled.Bytes) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 29 18:24:36 UTC 2023
    - 43.6K bytes
    - Viewed (0)
  2. api/go1.9.txt

    pkg database/sql/driver, var ErrRemoveArgument error
    pkg encoding/asn1, const TagNull = 5
    pkg encoding/asn1, const TagNull ideal-int
    pkg encoding/asn1, var NullBytes []uint8
    pkg encoding/asn1, var NullRawValue RawValue
    pkg encoding/base32, const NoPadding = -1
    pkg encoding/base32, const NoPadding int32
    pkg encoding/base32, const StdPadding = 61
    pkg encoding/base32, const StdPadding int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 04 20:20:20 UTC 2021
    - 10.7K bytes
    - Viewed (0)
  3. src/encoding/asn1/asn1.go

    	return
    }
    
    // NULL
    
    // NullRawValue is a [RawValue] with its Tag set to the ASN.1 NULL type tag (5).
    var NullRawValue = RawValue{Tag: TagNull}
    
    // NullBytes contains bytes representing the DER-encoded ASN.1 NULL type.
    var NullBytes = []byte{TagNull, 0}
    
    // OBJECT IDENTIFIER
    
    // An ObjectIdentifier represents an ASN.1 OBJECT IDENTIFIER.
    type ObjectIdentifier []int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  4. src/crypto/x509/x509.go

    	// default value.
    	if (len(params.Hash.Parameters.FullBytes) != 0 && !bytes.Equal(params.Hash.Parameters.FullBytes, asn1.NullBytes)) ||
    		!params.MGF.Algorithm.Equal(oidMGF1) ||
    		!mgf1HashFunc.Algorithm.Equal(params.Hash.Algorithm) ||
    		(len(mgf1HashFunc.Parameters.FullBytes) != 0 && !bytes.Equal(mgf1HashFunc.Parameters.FullBytes, asn1.NullBytes)) ||
    		params.TrailerField != 1 {
    		return UnknownSignatureAlgorithm
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  5. src/crypto/x509/parser.go

    	switch {
    	case oid.Equal(oidPublicKeyRSA):
    		// RSA public keys must have a NULL in the parameters.
    		// See RFC 3279, Section 2.3.1.
    		if !bytes.Equal(params.FullBytes, asn1.NullBytes) {
    			return nil, errors.New("x509: RSA key missing NULL parameters")
    		}
    
    		p := &pkcs1PublicKey{N: new(big.Int)}
    		if !der.ReadASN1(&der, cryptobyte_asn1.SEQUENCE) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  6. src/crypto/x509/pkcs8.go

    			return nil, errors.New("x509: failed to parse RSA private key embedded in PKCS#8: " + err.Error())
    		}
    		return key, nil
    
    	case privKey.Algo.Algorithm.Equal(oidPublicKeyECDSA):
    		bytes := privKey.Algo.Parameters.FullBytes
    		namedCurveOID := new(asn1.ObjectIdentifier)
    		if _, err := asn1.Unmarshal(bytes, namedCurveOID); err != nil {
    			namedCurveOID = nil
    		}
    		key, err = parseECPrivateKey(namedCurveOID, privKey.PrivateKey)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  7. src/encoding/asn1/marshal.go

    			return bytesEncoder(nil), nil
    		}
    	}
    
    	if v.Type() == rawValueType {
    		rv := v.Interface().(RawValue)
    		if len(rv.FullBytes) != 0 {
    			return bytesEncoder(rv.FullBytes), nil
    		}
    
    		t := new(taggedEncoder)
    
    		t.tag = bytesEncoder(appendTagAndLength(t.scratch[:0], tagAndLength{rv.Class, rv.Tag, len(rv.Bytes), rv.IsCompound}))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Flag", Type, 0},
    		{"Marshal", Func, 0},
    		{"MarshalWithParams", Func, 10},
    		{"NullBytes", Var, 9},
    		{"NullRawValue", Var, 9},
    		{"ObjectIdentifier", Type, 0},
    		{"RawContent", Type, 0},
    		{"RawValue", Type, 0},
    		{"RawValue.Bytes", Field, 0},
    		{"RawValue.Class", Field, 0},
    		{"RawValue.FullBytes", Field, 0},
    		{"RawValue.IsCompound", Field, 0},
    		{"RawValue.Tag", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  9. src/crypto/x509/x509_test.go

    		if !detail.isRSAPSS {
    			continue
    		}
    		generated := generateParams(detail.hash)
    		if !bytes.Equal(detail.params.FullBytes, generated) {
    			t.Errorf("hardcoded parameters for %s didn't match generated parameters: got (generated) %x, wanted (hardcoded) %x", detail.hash, generated, detail.params.FullBytes)
    		}
    	}
    }
    
    func TestUnknownExtKey(t *testing.T) {
    	const errorContains = "unknown extended key usage"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  10. api/go1.txt

    pkg encoding/asn1, type RawValue struct
    pkg encoding/asn1, type RawValue struct, Bytes []uint8
    pkg encoding/asn1, type RawValue struct, Class int
    pkg encoding/asn1, type RawValue struct, FullBytes []uint8
    pkg encoding/asn1, type RawValue struct, IsCompound bool
    pkg encoding/asn1, type RawValue struct, Tag int
    pkg encoding/asn1, type StructuralError struct
    pkg encoding/asn1, type StructuralError struct, Msg string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top