Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 207 for nonces (0.14 sec)

  1. src/crypto/aes/gcm_s390x.go

    }
    
    // deriveCounter computes the initial GCM counter state from the given nonce.
    // See NIST SP 800-38D, section 7.1.
    func (g *gcmAsm) deriveCounter(nonce []byte) gcmCount {
    	// GCM has two modes of operation with respect to the initial counter
    	// state: a "fast path" for 96-bit (12-byte) nonces, and a "slow path"
    	// for nonces of other lengths. For a 96-bit nonce, the nonce, along
    	// with a four-byte big-endian counter starting at one, is used
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  2. src/crypto/cipher/gcm.go

    	// directly as the starting counter. For other nonce sizes, the counter
    	// is computed by passing it through the GHASH function.
    	if len(nonce) == gcmStandardNonceSize {
    		copy(counter[:], nonce)
    		counter[gcmBlockSize-1] = 1
    	} else {
    		var y gcmFieldElement
    		g.update(&y, nonce)
    		y.high ^= uint64(len(nonce)) * 8
    		g.mul(&y)
    		byteorder.BePutUint64(counter[:8], y.low)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. pilot/pkg/features/experimental.go

    	).Get()
    
    	EnableDistributionTracking = env.Register(
    		"PILOT_ENABLE_CONFIG_DISTRIBUTION_TRACKING",
    		false,
    		"If enabled, Pilot will assign meaningful nonces to each Envoy configuration message, and allow "+
    			"users to interrogate which envoy has which config from the debug interface.",
    	).Get()
    
    	DistributionHistoryRetention = env.Register(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:02:38 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. src/crypto/cipher/example_test.go

    		panic(err.Error())
    	}
    
    	// Never use more than 2^32 random nonces with a given key because of the risk of a repeat.
    	nonce := make([]byte, 12)
    	if _, err := io.ReadFull(rand.Reader, nonce); err != nil {
    		panic(err.Error())
    	}
    
    	aesgcm, err := cipher.NewGCM(block)
    	if err != nil {
    		panic(err.Error())
    	}
    
    	ciphertext := aesgcm.Seal(nil, nonce, plaintext, nil)
    	fmt.Printf("%x\n", ciphertext)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 30 16:23:44 UTC 2018
    - 11.8K bytes
    - Viewed (0)
  5. pilot/pkg/xds/debug.go

    // it because is is a b64 encoding of a 64 bit array, which will always be 12 chars in length.
    // len = ceil(bitlength/(2^6))+1
    const VersionLen = 12
    
    func (s *DiscoveryServer) getResourceVersion(nonce, key string, cache map[string]string) string {
    	if len(nonce) < VersionLen {
    		return ""
    	}
    	configVersion := nonce[:VersionLen]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/kmsv2/envelope.go

    		var block cipher.Block
    		block, err = aes.NewCipher(key)
    		if err != nil {
    			return nil, err
    		}
    		// this is compatible with NewGCMTransformerWithUniqueKeyUnsafe for decryption
    		// it would use random nonces for encryption but we never do that
    		transformer, err = aestransformer.NewGCMTransformer(block)
    	}
    	if err != nil {
    		return nil, err
    	}
    	t.cache.set(cacheKey, transformer)
    	return transformer, nil
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 00:23:50 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  7. src/crypto/ecdsa/ecdsa.go

    // and the private key, to protect the key in case rand fails. This is
    // equivalent in security to RFC 6979 deterministic nonce generation, but still
    // produces randomized signatures.
    func mixedCSPRNG(rand io.Reader, priv *PrivateKey, hash []byte) (io.Reader, error) {
    	// This implementation derives the nonce from an AES-CTR CSPRNG keyed by:
    	//
    	//    SHA2-512(priv.D || entropy || hash)[:32]
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/crypto/chacha20/chacha_generic.go

    	}
    	if len(nonce) == NonceSizeX {
    		// XChaCha20 uses the ChaCha20 core to mix 16 bytes of the nonce into a
    		// derived key, allowing it to operate on a nonce of 24 bytes. See
    		// draft-irtf-cfrg-xchacha-01, Section 2.3.
    		key, _ = HChaCha20(key, nonce[0:16])
    		cNonce := make([]byte, NonceSize)
    		copy(cNonce[4:12], nonce[16:24])
    		nonce = cNonce
    	} else if len(nonce) != NonceSize {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 26 00:11:50 UTC 2022
    - 13.9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt

      @Test fun testDigestChallengeWithStrictRfc2617Header() {
        val headers =
          Headers.Builder()
            .add(
              "WWW-Authenticate",
              "Digest realm=\"myrealm\", nonce=\"fjalskdflwejrlaskdfjlaskdjflaks" +
                "jdflkasdf\", qop=\"auth\", stale=\"FALSE\"",
            )
            .build()
        val challenges = headers.parseChallenges("WWW-Authenticate")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. src/crypto/tls/cipher_suites.go

    }
    
    func (f *prefixNonceAEAD) Open(out, nonce, ciphertext, additionalData []byte) ([]byte, error) {
    	copy(f.nonce[4:], nonce)
    	return f.aead.Open(out, f.nonce[:], ciphertext, additionalData)
    }
    
    // xorNonceAEAD wraps an AEAD by XORing in a fixed pattern to the nonce
    // before each call.
    type xorNonceAEAD struct {
    	nonceMask [aeadNonceLength]byte
    	aead      cipher.AEAD
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top