Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 208 for ALGORITHM (0.2 sec)

  1. docs_src/security/tutorial004_py310.py

        else:
            expire = datetime.now(timezone.utc) + timedelta(minutes=15)
        to_encode.update({"exp": expire})
        encoded_jwt = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)
        return encoded_jwt
    
    
    async def get_current_user(token: str = Depends(oauth2_scheme)):
        credentials_exception = HTTPException(
            status_code=status.HTTP_401_UNAUTHORIZED,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 4K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/internal/impl/DefaultChecksumAlgorithmService.java

            private final org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithm algorithm;
    
            DefaultChecksumCalculator(org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithm algorithm) {
                this.algorithm = algorithm;
            }
    
            @Override
            public void update(ByteBuffer input) {
                algorithm.update(input);
            }
    
            @Override
            public String checksum() {
    Java
    - Registered: Sun Mar 24 03:35:10 GMT 2024
    - Last Modified: Thu Dec 21 08:05:10 GMT 2023
    - 7K bytes
    - Viewed (0)
  3. maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultChecksumAlgorithmService.java

            private final org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithm algorithm;
    
            DefaultChecksumCalculator(org.eclipse.aether.spi.connector.checksum.ChecksumAlgorithm algorithm) {
                this.algorithm = algorithm;
            }
    
            @Override
            public void update(ByteBuffer input) {
                algorithm.update(input);
            }
    
            @Override
            public String checksum() {
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Mon Mar 25 10:50:01 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  4. cmd/bitrot.go

    	}
    	for algorithm := range bitrotAlgorithms {
    		if !algorithm.Available() {
    			continue
    		}
    
    		checksum, err := hex.DecodeString(checksums[algorithm])
    		if err != nil {
    			logger.Fatal(errSelfTestFailure, fmt.Sprintf("bitrot: failed to decode %v checksum %s for selftest: %v", algorithm, checksums[algorithm], err))
    		}
    		var (
    			hash = algorithm.New()
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 7.6K bytes
    - Viewed (0)
  5. cmd/storage-datatypes_test.go

    TyTLIdLG820J7XqLPBO4gpEEEWw/DoTsJIb+apnaem+rKtQ1h3Q==", "X-Minio-Internal-Server-Side-Encryption-Seal-Algorithm": "DAREv2-HMAC-SHA256", "content-type": "application/octet-stream", "etag": "20000f00e2c3709dc94905c6ce31e1cadbd1c064e14acdcd44cf0ac2db777eeedd88d639fcd64de16851ade8b21a9a1a"}, Parts: []ObjectPartInfo{{ETag: "", Number: 1, Size: 3430, ActualSize: 3398}}, Erasure: ErasureInfo{Algorithm: "reedsolomon", DataBlocks: 2, ParityBlocks: 2, BlockSize: 10485760, Index: 3, Distribution: []int{3, 4,...
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 9.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/Hashing.java

       * SipHash-2-4 algorithm</a> using a seed value of {@code k = 00 01 02 ...}.
       *
       * @since 15.0
       */
      public static HashFunction sipHash24() {
        return SipHashFunction.SIP_HASH_24;
      }
    
      /**
       * Returns a hash function implementing the <a href="https://131002.net/siphash/">64-bit
       * SipHash-2-4 algorithm</a> using the given seed.
       *
       * @since 15.0
       */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  7. internal/crypto/header_test.go

    	{
    		Header: http.Header{
    			"X-Amz-Server-Side-Encryption-Customer-Algorithm": []string{""},
    			"X-Amz-Server-Side-Encryption-Customer-Key":       []string{""},
    			"X-Amz-Server-Side-Encryption-Customer-Key-Md5":   []string{""},
    		},
    		Expected: true,
    	}, // 4
    	{
    		Header: http.Header{
    			"X-Amz-Server-Side-Encryption-Customer-Algorithm": []string{"AES256"},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jul 13 14:52:15 GMT 2022
    - 21.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

            Hashing.hmacSha1(keyData).toString());
    
        assertEquals(
            "Hashing.hmacSha256(Key[algorithm=HmacSHA256, format=RAW])",
            Hashing.hmacSha256(SHA256_KEY).toString());
        assertEquals(
            "Hashing.hmacSha256(Key[algorithm=HmacSHA256, format=RAW])",
            Hashing.hmacSha256(keyData).toString());
    
        assertEquals(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  9. internal/config/crypto.go

    		return nil, err
    	}
    	if fips.Enabled && metadata.Algorithm != sio.AES_256_GCM {
    		return nil, fmt.Errorf("config: unsupported encryption algorithm: %q is not supported in FIPS mode", metadata.Algorithm)
    	}
    
    	key, err := k.DecryptKey(metadata.KeyID, metadata.KMSKey, context)
    	if err != nil {
    		return nil, err
    	}
    	stream, err := metadata.Algorithm.Stream(key)
    	if err != nil {
    		return nil, err
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  10. internal/kms/single-key.go

    		}
    	}
    	iv, err := sioutil.Random(16)
    	if err != nil {
    		return DEK{}, err
    	}
    
    	var algorithm string
    	if sioutil.NativeAES() {
    		algorithm = algorithmAESGCM
    	} else {
    		algorithm = algorithmChaCha20Poly1305
    	}
    
    	var aead cipher.AEAD
    	switch algorithm {
    	case algorithmAESGCM:
    		mac := hmac.New(sha256.New, kms.key)
    		mac.Write(iv)
    		sealingKey := mac.Sum(nil)
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 7.9K bytes
    - Viewed (0)
Back to top