Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 43 for mac (0.16 sec)

  1. internal/crypto/key.go

    	}
    	var (
    		sealingKey   [32]byte
    		encryptedKey bytes.Buffer
    	)
    	mac := hmac.New(sha256.New, extKey)
    	mac.Write(iv[:])
    	mac.Write([]byte(domain))
    	mac.Write([]byte(SealAlgorithm))
    	mac.Write([]byte(path.Join(bucket, object))) // use path.Join for canonical 'bucket/object'
    	mac.Sum(sealingKey[:0])
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Mar 19 20:28:10 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  2. internal/kms/single-key.go

    		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)
    
    		var block cipher.Block
    		block, err = aes.NewCipher(sealingKey)
    		if err != nil {
    			return DEK{}, err
    		}
    		aead, err = cipher.NewGCM(block)
    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)
  3. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

          Providers.setProviderList(providers);
        }
      }
    
      public void testMultipleUpdates() throws Exception {
        Mac mac = Mac.getInstance("HmacSHA1");
        mac.init(SHA1_KEY);
        mac.update("hello".getBytes(UTF_8));
        mac.update("world".getBytes(UTF_8));
    
        assertEquals(
            HashCode.fromBytes(mac.doFinal()),
            Hashing.hmacSha1(SHA1_KEY)
                .newHasher()
                .putString("hello", UTF_8)
    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)
  4. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

          Providers.setProviderList(providers);
        }
      }
    
      public void testMultipleUpdates() throws Exception {
        Mac mac = Mac.getInstance("HmacSHA1");
        mac.init(SHA1_KEY);
        mac.update("hello".getBytes(UTF_8));
        mac.update("world".getBytes(UTF_8));
    
        assertEquals(
            HashCode.fromBytes(mac.doFinal()),
            Hashing.hmacSha1(SHA1_KEY)
                .newHasher()
                .putString("hello", UTF_8)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  5. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/ide/AndroidStudioProvisioningPlugin.kt

                    val extension = when {
                        BuildEnvironment.isWindows -> "windows.zip"
                        BuildEnvironment.isMacOsX && BuildEnvironment.isIntel -> "mac.zip"
                        BuildEnvironment.isMacOsX && !BuildEnvironment.isIntel -> "mac_arm.zip"
                        BuildEnvironment.isLinux -> "linux.tar.gz"
                        else -> throw IllegalStateException("Unsupported OS: ${OperatingSystem.current()}")
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Fri Dec 22 13:46:27 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/PACTest.java

        private static void testJavaHMAC ( String key, byte[] bytes, String expect ) throws NoSuchAlgorithmException, InvalidKeyException {
            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 {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Oct 01 12:01:17 GMT 2023
    - 22.3K bytes
    - Viewed (0)
  7. ci/official/utilities/setup_macos.sh

    # ==============================================================================
    #
    # macOS specific setup for all TF scripts.
    #
    
    # Mac version of Core utilities differ in usage. Since our scripts are written
    # with the GNU style, we need to set GNU utilities to be default on Mac.
    if [[ -n "$(which grealpath)" ]] &&  [[ -n "$(which gstat)" ]]; then
      alias realpath=grealpath
      alias stat=gstat
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 15:23:28 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/pac/kerberos/KerberosEncData.java

            Key macKey = new SecretKeySpec(key.clone(), KerberosConstants.HMAC_ALGORITHM);
            Mac mac = Mac.getInstance(KerberosConstants.HMAC_ALGORITHM);
            mac.init(macKey);
            return mac.doFinal(data);
        }
    
    
        public String getUserRealm () {
            return this.userRealm;
        }
    
    
        public String getUserPrincipalName () {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Oct 02 12:02:06 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/Os.java

         * OS family that can be tested for. {@value}
         */
        private static final String FAMILY_DOS = "dos";
    
        /**
         * OS family that can be tested for. {@value}
         */
        private static final String FAMILY_MAC = "mac";
    
        /**
         * OS family that can be tested for. {@value}
         */
        private static final String FAMILY_TANDEM = "tandem";
    
        /**
         * OS family that can be tested for. {@value}
         */
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/lang/SystemUtil.java

        /**
         * <code>line.separator</code> システムプロパティ。例えばMac OS Xなら
         * <code>&quot;\n&quot;</code>
         */
        public static final String LINE_SEPARATOR = System.getProperty("line.separator");
    
        /**
         * <code>path.separator</code> システムプロパティ。例えばMac OS Xなら
         * <code>&quot;:&quot;</code>
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.2K bytes
    - Viewed (0)
Back to top