Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 802 for mkcounter (0.35 sec)

  1. src/crypto/cipher/gcm.go

    		g.cipher.Encrypt(mask[:], counter[:])
    		gcmInc32(counter)
    		subtle.XORBytes(out, in, mask[:])
    	}
    }
    
    // deriveCounter computes the initial GCM counter state from the given nonce.
    // See NIST SP 800-38D, section 7.1. This assumes that counter is filled with
    // zeros on entry.
    func (g *gcm) deriveCounter(counter *[gcmBlockSize]byte, nonce []byte) {
    	// GCM has two modes of operation with respect to the initial counter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. src/runtime/pinner.go

    	if !exists {
    		throw("runtime.Pinner: decreased non-existing pin counter")
    	}
    	counter := (*specialPinCounter)(unsafe.Pointer(*ref))
    	counter.counter--
    	if counter.counter == 0 {
    		*ref = counter.special.next
    		if span.specials == nil {
    			spanHasNoSpecials(span)
    		}
    		lock(&mheap_.speciallock)
    		mheap_.specialPinCounterAlloc.free(unsafe.Pointer(counter))
    		unlock(&mheap_.speciallock)
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. pkg/volume/csi/csi_plugin_test.go

    				t.Log(err)
    				return
    			}
    
    			if mounter == nil {
    				t.Fatal("failed to create CSI mounter")
    			}
    			csiMounter := mounter.(*csiMountMgr)
    
    			// validate mounter fields
    			if string(csiMounter.driverName) != testDriver {
    				t.Error("mounter driver name not set")
    			}
    			if csiMounter.volumeID == "" {
    				t.Error("mounter volume id not set")
    			}
    			if csiMounter.pod == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  4. pkg/volume/emptydir/empty_dir_test.go

    			mounter:        mounter,
    			shouldFail:     false,
    			expectedResult: resource.MustParse("1Gi"),
    		},
    		"Invalid: mount point doesn't exist": {
    			path:       "/mnt/nomp",
    			mounter:    mounter,
    			shouldFail: true,
    		},
    		"Invalid: no pagesize option": {
    			path:       "/mnt/noopt",
    			mounter:    mounter,
    			shouldFail: true,
    		},
    		"Invalid: incorrect pagesize option": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  5. src/crypto/rand/rand_plan9.go

    	blockCipher, err := aes.NewCipher(r.key[:])
    	if err != nil {
    		r.mu.Unlock()
    		return 0, err
    	}
    	var (
    		counter uint64
    		block   [aes.BlockSize]byte
    	)
    	inc := func() {
    		counter++
    		if counter == 0 {
    			panic("crypto/rand counter wrapped")
    		}
    		byteorder.LePutUint64(block[:], counter)
    	}
    	blockCipher.Encrypt(r.key[:aes.BlockSize], block[:])
    	inc()
    	blockCipher.Encrypt(r.key[aes.BlockSize:], block[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. pkg/volume/secret/secret_test.go

    	pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}}
    	mounter, err := plugin.NewMounter(volume.NewSpecFromVolume(volumeSpec), pod, volume.VolumeOptions{})
    	if err != nil {
    		t.Errorf("Failed to make a new Mounter: %v", err)
    	}
    	if mounter == nil {
    		t.Fatalf("Got a nil Mounter")
    	}
    
    	volumePath := mounter.GetPath()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 19.5K bytes
    - Viewed (0)
  7. platforms/jvm/jacoco/src/integTest/groovy/org/gradle/testing/jacoco/plugins/rules/JacocoViolationRulesLimit.groovy

        }
    
        private static String create(String counter, String value, BigDecimal minimum, BigDecimal maximum) {
            StringBuilder limit = new StringBuilder()
            limit <<= 'limit {\n'
    
            if (counter) {
                limit <<= "    counter = '${counter}'\n"
            }
            if (value) {
                limit <<= "    value = '${value}'\n"
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 14 16:03:36 UTC 2023
    - 2K bytes
    - Viewed (0)
  8. test/chan/select.go

    	}
    	if av, bv := <-a, <-b; av|bv != 3 {
    		println("bad values", av, bv)
    		panic("fail")
    	}
    	if v := Send(a, nil); v != 1 {
    		println("Send returned", v, "!= 1")
    		panic("fail")
    	}
    	if counter != 10 {
    		println("counter is", counter, "!= 10")
    		panic("fail")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:44:02 UTC 2012
    - 913 bytes
    - Viewed (0)
  9. src/runtime/coverage/coverage.go

    	return cfile.WriteMeta(w)
    }
    
    // WriteCountersDir writes a coverage counter-data file for the
    // currently running program to the directory specified in 'dir'. An
    // error will be returned if the operation can't be completed
    // successfully (for example, if the currently running program was not
    // built with "-cover", or if the directory does not exist). The
    // counter data written will be a snapshot taken at the point of the
    // call.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:41:02 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. pkg/kubelet/kubelet_pods_windows_test.go

    		"disk":  kubecontainer.VolumeInfo{Mounter: &stubVolume{path: "c:/mnt/disk"}},
    		"disk4": kubecontainer.VolumeInfo{Mounter: &stubVolume{path: "c:/mnt/host"}},
    		"disk5": kubecontainer.VolumeInfo{Mounter: &stubVolume{path: "c:/var/lib/kubelet/podID/volumes/empty/disk5"}},
    		"disk6": kubecontainer.VolumeInfo{Mounter: &stubVolume{path: `/mnt/disk6`}},
    		"disk7": kubecontainer.VolumeInfo{Mounter: &stubVolume{path: `\mnt\disk7`}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top