Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 422 for Hex (2.62 sec)

  1. src/crypto/tls/ech_test.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package tls
    
    import (
    	"encoding/hex"
    	"testing"
    )
    
    func TestDecodeECHConfigLists(t *testing.T) {
    	for _, tc := range []struct {
    		list       string
    		numConfigs int
    	}{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. src/cmd/internal/objabi/path.go

    			n++
    		}
    	}
    
    	// quick exit
    	if n == 0 {
    		return s
    	}
    
    	// escape
    	const hex = "0123456789abcdef"
    	p := make([]byte, 0, len(s)+2*n)
    	for r := 0; r < len(s); r++ {
    		if c := s[r]; c <= ' ' || (c == '.' && r > slash) || c == '%' || c == '"' || c >= 0x7F {
    			p = append(p, '%', hex[c>>4], hex[c&0xF])
    		} else {
    			p = append(p, c)
    		}
    	}
    
    	return string(p)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 13:56:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. platforms/software/security/src/test/groovy/org/gradle/plugins/signing/signatory/pgp/PgpKeyIdSpec.groovy

        def "conversion is symmetrical"() {
            expect:
            key("ABCDABCD").asHex == "ABCDABCD"
        }
    
        def "conversion"() {
            expect:
            key(hex).asLong == decimal
            key(decimal).asHex == hex
    
            where:
            hex        | decimal
            "AAAAAAAA" | 2863311530
            "DA124B92" | 3658632082
        }
    
        def "equals impl"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. common/config/sass-lint.yml

      force-pseudo-nesting: 0
      function-name-format: 2
      hex-length: 0
      hex-notation: 2
      id-name-format: 2
      indentation:
        - 2
        -
          size: 4
      leading-zero:
        - 2
        -
          include: false
      max-file-line-count: 0
      max-file-length: 0
      mixins-before-declarations: 2
      no-attribute-selectors: 0
      no-color-hex: 0
      no-color-keywords: 0
      no-color-literals: 0
      no-combinators: 0
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 11 23:32:21 UTC 2019
    - 2K bytes
    - Viewed (0)
  5. src/crypto/cipher/gcm_test.go

    	},
    }
    
    func TestAESGCM(t *testing.T) {
    	for i, test := range aesGCMTests {
    		key, _ := hex.DecodeString(test.key)
    		aes, err := aes.NewCipher(key)
    		if err != nil {
    			t.Fatal(err)
    		}
    
    		nonce, _ := hex.DecodeString(test.nonce)
    		plaintext, _ := hex.DecodeString(test.plaintext)
    		ad, _ := hex.DecodeString(test.ad)
    		tagSize := (len(test.result) - len(test.plaintext)) / 2
    
    		var aesgcm cipher.AEAD
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 25 15:27:49 UTC 2023
    - 35K bytes
    - Viewed (0)
  6. src/crypto/cipher/example_test.go

    	// package like bcrypt or scrypt.
    	// When decoded the key should be 16 bytes (AES-128) or 32 (AES-256).
    	key, _ := hex.DecodeString("6368616e676520746869732070617373776f726420746f206120736563726574")
    	ciphertext, _ := hex.DecodeString("c3aaa29f002ca75870806e44086700f62ce4d43e902b3888e23ceff797a7a471")
    	nonce, _ := hex.DecodeString("64a9433eae7ccceee2fc0eda")
    
    	block, err := aes.NewCipher(key)
    	if err != nil {
    		panic(err.Error())
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 30 16:23:44 UTC 2018
    - 11.8K bytes
    - Viewed (0)
  7. src/html/template/css.go

    				j++
    			}
    			r := hexDecode(s[1:j])
    			if r > unicode.MaxRune {
    				r, j = r/16, j-1
    			}
    			n := utf8.EncodeRune(b[len(b):cap(b)], r)
    			// The optional space at the end allows a hex
    			// sequence to be followed by a literal hex.
    			// string(decodeCSS([]byte(`\A B`))) == "\nB"
    			b, s = b[:len(b)+n], skipCSSSpace(s[j:])
    		} else {
    			// `\\` decodes to `\` and `\"` to `"`.
    			_, n := utf8.DecodeRune(s[1:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 19:38:18 UTC 2023
    - 7K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/text/JsonUtil.java

                    break;
                default:
                    if (c < ' ') {
                        final String hex = Integer.toHexString(c);
                        buf.append("\\u");
                        for (int j = 0; j < 4 - hex.length(); j++) {
                            buf.append('0');
    
                        }
                        buf.append(hex);
                    } else {
                        buf.append(c);
                    }
                }
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/Hexdump.java

         * 
         * @param val
         * @param size
         * @return hex string
         */
        public static String toHexString ( int val, int size ) {
            char[] c = new char[size];
            toHexChars(val, c, 0, size);
            return new String(c);
        }
    
    
        /**
         * @param val
         * @param size
         * @return hex string
         */
        public static String toHexString ( long val, int size ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.5K bytes
    - Viewed (0)
  10. src/internal/itoa/itoa.go

    	buf[i] = byte('0' + val)
    	return string(buf[i:])
    }
    
    const hex = "0123456789abcdef"
    
    // Uitox converts val (a uint) to a hexadecimal string.
    func Uitox(val uint) string {
    	if val == 0 { // avoid string allocation
    		return "0x0"
    	}
    	var buf [20]byte // big enough for 64bit value base 16 + 0x
    	i := len(buf) - 1
    	for val >= 16 {
    		q := val / 16
    		buf[i] = hex[val%16]
    		i--
    		val = q
    	}
    	// val < 16
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 11 02:53:50 UTC 2023
    - 1.1K bytes
    - Viewed (0)
Back to top