Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for TagBMPString (0.19 sec)

  1. src/crypto/x509/parser_test.go

    			expectedErr: "invalid UTF-8 string",
    		},
    		{
    			name:     "BMPString",
    			tag:      cryptobyte_asn1.Tag(asn1.TagBMPString),
    			value:    []byte{80, 81},
    			expected: string("偑"),
    		},
    		{
    			name:        "BMPString (invalid length)",
    			tag:         cryptobyte_asn1.Tag(asn1.TagBMPString),
    			value:       []byte{255},
    			expectedErr: "invalid BMPString",
    		},
    		{
    			name:     "IA5String",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 17:18:21 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  2. src/encoding/asn1/common.go

    	TagSet             = 17
    	TagNumericString   = 18
    	TagPrintableString = 19
    	TagT61String       = 20
    	TagIA5String       = 22
    	TagUTCTime         = 23
    	TagGeneralizedTime = 24
    	TagGeneralString   = 27
    	TagBMPString       = 30
    )
    
    // ASN.1 class types represent the namespace of the tag.
    const (
    	ClassUniversal       = 0
    	ClassApplication     = 1
    	ClassContextSpecific = 2
    	ClassPrivate         = 3
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  3. src/encoding/asn1/asn1.go

    		var t tagAndLength
    		t, offset, err = parseTagAndLength(bytes, offset)
    		if err != nil {
    			return
    		}
    		switch t.tag {
    		case TagIA5String, TagGeneralString, TagT61String, TagUTF8String, TagNumericString, TagBMPString:
    			// We pretend that various other string types are
    			// PRINTABLE STRINGs so that a sequence of them can be
    			// parsed into a []string.
    			t.tag = TagPrintableString
    		case TagGeneralizedTime, TagUTCTime:
    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/parser.go

    			}
    		}
    		return string(value), nil
    	case cryptobyte_asn1.UTF8String:
    		if !utf8.Valid(value) {
    			return "", errors.New("invalid UTF-8 string")
    		}
    		return string(value), nil
    	case cryptobyte_asn1.Tag(asn1.TagBMPString):
    		if len(value)%2 != 0 {
    			return "", errors.New("invalid BMPString")
    		}
    
    		// Strip terminator if present.
    		if l := len(value); l >= 2 && value[l-1] == 0 && value[l-2] == 0 {
    			value = value[:l-2]
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  5. api/go1.14.txt

    pkg debug/dwarf, method (*LineReader) Files() []*LineFile
    pkg debug/dwarf, method (*Reader) ByteOrder() binary.ByteOrder
    pkg encoding/asn1, const TagBMPString = 30
    pkg encoding/asn1, const TagBMPString ideal-int
    pkg encoding/json, method (*Decoder) InputOffset() int64
    pkg go/build, type Context struct, Dir string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 508.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"RawValue.IsCompound", Field, 0},
    		{"RawValue.Tag", Field, 0},
    		{"StructuralError", Type, 0},
    		{"StructuralError.Msg", Field, 0},
    		{"SyntaxError", Type, 0},
    		{"SyntaxError.Msg", Field, 0},
    		{"TagBMPString", Const, 14},
    		{"TagBitString", Const, 6},
    		{"TagBoolean", Const, 6},
    		{"TagEnum", Const, 6},
    		{"TagGeneralString", Const, 6},
    		{"TagGeneralizedTime", Const, 6},
    		{"TagIA5String", Const, 6},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top