Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NullBytes (0.24 sec)

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