Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ReadASN1Boolean (0.11 sec)

  1. src/vendor/golang.org/x/crypto/cryptobyte/asn1.go

    		return
    	}
    	b.AddUint8(uint8(tag))
    	b.addLengthPrefixed(1, true, f)
    }
    
    // String
    
    // ReadASN1Boolean decodes an ASN.1 BOOLEAN and converts it to a boolean
    // representation into out and advances. It reports whether the read
    // was successful.
    func (s *String) ReadASN1Boolean(out *bool) bool {
    	var bytes String
    	if !s.ReadASN1(&bytes, asn1.BOOLEAN) || len(bytes) != 1 {
    		return false
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 21:28:33 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  2. src/crypto/x509/parser.go

    	var ext pkix.Extension
    	if !der.ReadASN1ObjectIdentifier(&ext.Id) {
    		return ext, errors.New("x509: malformed extension OID field")
    	}
    	if der.PeekASN1Tag(cryptobyte_asn1.BOOLEAN) {
    		if !der.ReadASN1Boolean(&ext.Critical) {
    			return ext, errors.New("x509: malformed extension critical field")
    		}
    	}
    	var val cryptobyte.String
    	if !der.ReadASN1(&val, cryptobyte_asn1.OCTET_STRING) {
    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