Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for BMPString (0.09 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/asn1.go

    		bmpString = bmpString[:l-2]
    	}
    
    	s := make([]uint16, 0, len(bmpString)/2)
    	for len(bmpString) > 0 {
    		s = append(s, uint16(bmpString[0])<<8+uint16(bmpString[1]))
    		bmpString = bmpString[2:]
    	}
    
    	return string(utf16.Decode(s)), nil
    }
    
    // A RawValue represents an undecoded ASN.1 object.
    type RawValue struct {
    	Class, Tag int
    	IsCompound bool
    	Bytes      []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  3. src/crypto/x509/parser.go

    		// handful of CA certificates that contain it. At least
    		// one of which will not expire until 2027.
    		b == '&'
    }
    
    // parseASN1String parses the ASN.1 string types T61String, PrintableString,
    // UTF8String, BMPString, IA5String, and NumericString. This is mostly copied
    // from the respective encoding/asn1.parse... methods, rather than just
    // increasing the API surface of that package.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
Back to top