Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for useSeed (0.13 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    			},
    			wantEncryptCalls: 0,
    			wantLogs:         nil,
    			wantErr:          "",
    		},
    		{
    			name:        "happy path, with previous state, useSeed=true",
    			service:     &testKMSv2EnvelopeService{keyID: "2"},
    			state:       validState(t, "2", now, false),
    			useSeed:     true,
    			statusKeyID: "2",
    			wantState: envelopekmsv2.State{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/envelope.go

    // addTransformerForDecryption inserts a new transformer to the Envelope cache of DEKs for future reads.
    func (t *envelopeTransformer) addTransformerForDecryption(cacheKey []byte, key []byte, useSeed bool) (value.Read, error) {
    	var transformer value.Read
    	var err error
    	if useSeed {
    		// the input key is considered safe to use here because it is coming from the KMS plugin / etcd
    		transformer, err = aestransformer.NewHKDFExtendedNonceGCMTransformer(key)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 00:23:50 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/envelope_test.go

    			ctx := testContext(t)
    
    			envelopeService := newTestEnvelopeService()
    			fakeClock := testingclock.NewFakeClock(time.Now())
    
    			useSeed := randomBool()
    
    			state, err := testStateFunc(ctx, envelopeService, fakeClock, useSeed)()
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			transformer := newEnvelopeTransformerWithClock(envelopeService, testProviderName,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 25 16:50:20 UTC 2023
    - 47.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config.go

    					"uid", uid,
    					"useSeed", useSeed,
    					"newKeyIDHash", envelopekmsv2.GetHashIfNotEmpty(encObject.KeyID),
    					"oldKeyIDHash", envelopekmsv2.GetHashIfNotEmpty(state.EncryptedObject.KeyID),
    					"expirationTimestamp", expirationTimestamp.Format(time.RFC3339),
    				)
    			}
    			return nil
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 41.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc

      // requant, so only overwrite the first if that is not the case.
      const int num_uses = std::distance(dequant_op.getResult().use_begin(),
                                         dequant_op.getResult().use_end());
    
      // Whether to replace quantization params of the first dequantize op
      // after the quantized value is produced.
      // If there is a use other than the requantize states, then we can't clobber.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 38.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

        [(ShapeMatchesReduceWithKeepAxes $input, $axes, $shape),
         (HasOneUse $reduce)]>;
    }
    
    
    def IsSame : Constraint<CPred<"$0 == $1">>;
    def HasTwoUse : Constraint<CPred<
      "std::distance($0.use_begin(), $0.use_end()) == 2">>;
    def AxesIsLastDimension : Constraint<CPred<
      "$0.cast<DenseIntElementsAttr>().getNumElements() == 1 && "
      "($0.cast<DenseIntElementsAttr>().getValues<APInt>()[0] == "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
Back to top