Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsCompound (0.16 sec)

  1. src/encoding/asn1/common.go

    const (
    	ClassUniversal       = 0
    	ClassApplication     = 1
    	ClassContextSpecific = 2
    	ClassPrivate         = 3
    )
    
    type tagAndLength struct {
    	class, tag, length int
    	isCompound         bool
    }
    
    // ASN.1 has IMPLICIT and EXPLICIT tags, which can be translated as "instead
    // of" and "in addition to". When not specified, every primitive type has a
    // default tag in the UNIVERSAL class.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  2. security/pkg/pki/util/san.go

    		return nil, err
    	} else if len(rest) != 0 {
    		return nil, fmt.Errorf("the SAN extension is incorrectly encoded")
    	}
    
    	// Check the rawValue is a sequence.
    	if !sequence.IsCompound || sequence.Tag != asn1.TagSequence || sequence.Class != asn1.ClassUniversal {
    		return nil, fmt.Errorf("the SAN extension is incorrectly encoded")
    	}
    
    	ids := []Identity{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Oct 14 06:50:22 UTC 2022
    - 6K bytes
    - Viewed (0)
Back to top