Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for IA5String (0.13 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

       *   rfc822Name                      [1]     IA5String,
       *   dNSName                         [2]     IA5String,
       *   x400Address                     [3]     ORAddress,
       *   directoryName                   [4]     Name,
       *   ediPartyName                    [5]     EDIPartyName,
       *   uniformResourceIdentifier       [6]     IA5String,
       *   iPAddress                       [7]     OCTET STRING,
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. src/encoding/asn1/asn1.go

    		(bool(ampersand) && b == '&')
    }
    
    // IA5String
    
    // parseIA5String parses an ASN.1 IA5String (ASCII string) from the given
    // byte slice and returns it.
    func parseIA5String(bytes []byte) (ret string, err error) {
    	for _, b := range bytes {
    		if b >= utf8.RuneSelf {
    			err = SyntaxError{"IA5String contains invalid character"}
    			return
    		}
    	}
    	ret = string(bytes)
    	return
    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/encoding/asn1/marshal.go

    		}
    	}
    
    	return stringEncoder(s), nil
    }
    
    func makeIA5String(s string) (e encoder, err error) {
    	for i := 0; i < len(s); i++ {
    		if s[i] > 127 {
    			return nil, StructuralError{"IA5String contains invalid character"}
    		}
    	}
    
    	return stringEncoder(s), nil
    }
    
    func makeNumericString(s string) (e encoder, err error) {
    	for i := 0; i < len(s); i++ {
    		if !isNumeric(s[i]) {
    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/crypto/x509/parser.go

    		for len(value) > 0 {
    			s = append(s, uint16(value[0])<<8+uint16(value[1]))
    			value = value[2:]
    		}
    
    		return string(utf16.Decode(s)), nil
    	case cryptobyte_asn1.IA5String:
    		s := string(value)
    		if isIA5String(s) != nil {
    			return "", errors.New("invalid IA5String")
    		}
    		return s, nil
    	case cryptobyte_asn1.Tag(asn1.TagNumericString):
    		for _, b := range value {
    			if !('0' <= b && b <= '9' || b == ' ') {
    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. src/crypto/x509/name_constraints_test.go

    		return strings.Contains(str, "failed to parse ") && strings.Contains(str, "constraint")
    	}
    
    	encodingError := func(err error) bool {
    		return strings.Contains(err.Error(), "cannot be encoded as an IA5String")
    	}
    
    	// Bad names in constraints should not parse.
    	badNames := []struct {
    		name    string
    		matcher func(error) bool
    	}{
    		{"dns:foo.com.", constraintParseError},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 22:40:21 UTC 2024
    - 45.2K bytes
    - Viewed (0)
Back to top