Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 186 for Hex (0.04 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/appendixa_test.go

    		fixme string
    	}{
    		{
    			example: hex("00"),
    			decoded: int64(0),
    		},
    		{
    			example: hex("01"),
    			decoded: int64(1),
    		},
    		{
    			example: hex("0a"),
    			decoded: int64(10),
    		},
    		{
    			example: hex("17"),
    			decoded: int64(23),
    		},
    		{
    			example: hex("1818"),
    			decoded: int64(24),
    		},
    		{
    			example: hex("1819"),
    			decoded: int64(25),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 15 18:59:36 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/decode_test.go

    limitations under the License.
    */
    
    package modes_test
    
    import (
    	"encoding/hex"
    	"fmt"
    	"math"
    	"reflect"
    	"testing"
    
    	"k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes"
    
    	"github.com/fxamacker/cbor/v2"
    	"github.com/google/go-cmp/cmp"
    )
    
    func TestDecode(t *testing.T) {
    	hex := func(h string) []byte {
    		b, err := hex.DecodeString(h)
    		if err != nil {
    			t.Fatal(err)
    		}
    		return b
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 18:43:10 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/PACTest.java

            Mac m = Mac.getInstance("HmacMD5");
            m.init(new SecretKeySpec(Hex.decode(key), "HMAC"));
            byte[] mac = m.doFinal(bytes);
            checkBytes(Hex.decode(expect), mac);
        }
    
    
        @Test
        public void testRC4Checksum1 () throws PACDecodingException, GeneralSecurityException {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Oct 01 12:01:17 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  4. src/runtime/stack.go

    			pcoff = gp.sched.pc - f.entry()
    		}
    		print("runtime: newstack at ", pcname, "+", hex(pcoff),
    			" sp=", hex(gp.sched.sp), " stack=[", hex(gp.stack.lo), ", ", hex(gp.stack.hi), "]\n",
    			"\tmorebuf={pc:", hex(morebuf.pc), " sp:", hex(morebuf.sp), " lr:", hex(morebuf.lr), "}\n",
    			"\tsched={pc:", hex(gp.sched.pc), " sp:", hex(gp.sched.sp), " lr:", hex(gp.sched.lr), " ctxt:", gp.sched.ctxt, "}\n")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
  5. src/runtime/type.go

    	res, found := reflectOffs.m[int32(off)]
    	reflectOffsUnlock()
    	if !found {
    		println("runtime: nameOff", hex(off), "base", hex(base), "not in ranges:")
    		for next := &firstmoduledata; next != nil; next = next.next {
    			println("\ttypes", hex(next.types), "etypes", hex(next.etypes))
    		}
    		throw("runtime: name offset base pointer out of range")
    	}
    	return name{Bytes: (*byte)(res)}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/crypto/ed25519/ed25519_test.go

    		parts := strings.Split(line, ":")
    		if len(parts) != 5 {
    			t.Fatalf("bad number of parts on line %d", lineNo)
    		}
    
    		privBytes, _ := hex.DecodeString(parts[0])
    		pubKey, _ := hex.DecodeString(parts[1])
    		msg, _ := hex.DecodeString(parts[2])
    		sig, _ := hex.DecodeString(parts[3])
    		// The signatures in the test vectors also include the message
    		// at the end, but we just want R and S.
    		sig = sig[:SignatureSize]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. src/runtime/stkframe.go

    			// doesn't have locals yet, but we
    			// also know its argument map is
    			// empty.
    			if frame.pc != f.entry() {
    				print("runtime: confused by ", funcname(f), ": no frame (sp=", hex(frame.sp), " fp=", hex(frame.fp), ") at entry+", hex(frame.pc-f.entry()), "\n")
    				throw("reflect mismatch")
    			}
    			return bitvector{}, false // No locals, so also no stack objects
    		}
    		hasReflectStackObj = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. internal/hash/reader.go

    	MD5, err := hex.DecodeString(md5Hex)
    	if err != nil {
    		return nil, BadDigest{ // TODO(aead): Return an error that indicates that an invalid ETag has been specified
    			ExpectedMD5:   md5Hex,
    			CalculatedMD5: "",
    		}
    	}
    	SHA256, err := hex.DecodeString(sha256Hex)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 18 17:00:54 UTC 2023
    - 10.8K bytes
    - Viewed (0)
Back to top