Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 86 for MAC (0.01 seconds)

  1. internal/kms/stub.go

    	}, nil
    }
    
    // Decrypt is a non-functional stub.
    func (s StubKMS) Decrypt(_ context.Context, req *DecryptRequest) ([]byte, error) {
    	return req.Ciphertext, nil
    }
    
    // MAC is a non-functional stub.
    func (s StubKMS) MAC(_ context.Context, m *MACRequest) ([]byte, error) {
    	return m.Message, nil
    }
    
    // containsKeyName returns true if the given key name exists in the stub KMS.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Aug 18 06:43:03 GMT 2024
    - 3.6K bytes
    - Click Count (0)
  2. internal/kms/kes.go

    			return nil, ErrPermission
    		}
    		return nil, errDecryptionFailed(err)
    	}
    	return plaintext, nil
    }
    
    // MAC generates the checksum of the given req.Message using the key
    // with the req.Name at the KMS.
    func (c *kesConn) MAC(ctx context.Context, req *MACRequest) ([]byte, error) {
    	mac, err := c.client.HMAC(context.Background(), req.Name, req.Message)
    	if err != nil {
    		if errors.Is(err, kes.ErrKeyNotFound) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Aug 18 06:43:03 GMT 2024
    - 7.3K bytes
    - Click Count (0)
  3. benchmarks/README.md

    * Look only at the `Score` column and ignore `Error`. Instead take countermeasures to keep `Error` low / variance explainable.
    
    ## Disassembling
    
    NOTE: Linux only. Sorry Mac and Windows.
    
    Disassembling is fun! Maybe not always useful, but always fun! Generally, you'll want to install `perf` and FCML's `hsdis`.
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon May 03 15:30:50 GMT 2021
    - 5.9K bytes
    - Click Count (0)
  4. src/main/java/jcifs/util/Crypto.java

                throw new CIFSUnsupportedCryptoException(e);
            }
        }
    
        /**
         * Get an HMACT64 message authentication code instance.
         * @param key the key for the HMACT64 MAC
         * @return HMACT64 MAC instance
         */
        public static MessageDigest getHMACT64(final byte[] key) {
            return new HMACT64(key);
        }
    
        /**
         * Get an RC4 cipher instance initialized with the specified key.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/NtlmUtil.java

            hmac.update(serverChallenge);
            hmac.update(clientData, offset, length);
            final byte[] mac = hmac.digest();
            final byte[] ret = new byte[mac.length + clientData.length];
            System.arraycopy(mac, 0, ret, 0, mac.length);
            System.arraycopy(clientData, 0, ret, mac.length, clientData.length);
            return ret;
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  6. internal/kms/conn.go

    	// by the key ID. The context must match the context value
    	// used to generate the ciphertext.
    	Decrypt(context.Context, *DecryptRequest) ([]byte, error)
    
    	// MAC generates the checksum of the given req.Message using the key
    	// with the req.Name at the KMS.
    	MAC(context.Context, *MACRequest) ([]byte, error)
    }
    
    var ( // compiler checks
    	_ conn = (*kmsConn)(nil)
    	_ conn = (*kesConn)(nil)
    	_ conn = secretKey{}
    )
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Aug 18 06:43:03 GMT 2024
    - 5K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/JdkDownloadPlugin.java

        }
    
        private static String dependencyNotation(Jdk jdk) {
            String platformDep = jdk.getPlatform().equals("darwin") || jdk.getPlatform().equals("mac")
                ? (jdk.getVendor().equals(VENDOR_ADOPTIUM) ? "mac" : "osx")
                : jdk.getPlatform();
            String extension = jdk.getPlatform().equals("windows") ? "zip" : "tar.gz";
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 27 19:29:10 GMT 2021
    - 7.6K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/NtlmUtilTest.java

            // Assert: overloads consistent
            assertArrayEquals(viaHash, viaPassword, "Both overloads must compute same NTLMv2 key");
    
            // Changing domain should change the key (domain is part of MAC input)
            byte[] differentDomain = NtlmUtil.nTOWFv2("DOMAIN", user, password);
            assertFalse(Arrays.equals(viaPassword, differentDomain), "Different domain should produce a different key");
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 12K bytes
    - Click Count (1)
  9. tests/tests_all.sh

    if [[ $(pwd) == *"gorm/tests"* ]]; then
      cd ..
    fi
    
    if [ -d tests ]
    then
      cd tests
      go get -u -t ./...
      go mod download
      go mod tidy
      cd ..
    fi
    
    # SqlServer for Mac M1
    if [[ -z $GITHUB_ACTION && -d tests ]]; then
      cd tests
      if [[ $(uname -a) == *" arm64" ]]; then
        MSSQL_IMAGE=mcr.microsoft.com/azure-sql-edge docker compose up -d --wait
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Mon Jul 21 02:46:58 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  10. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/Jdk.java

        private static final List<String> ALLOWED_VENDORS = List.of("adoptium", "openjdk");
        private static final List<String> ALLOWED_PLATFORMS = List.of("darwin", "linux", "windows", "mac");
        private static final Pattern VERSION_PATTERN = Pattern.compile("(\\d+)(\\.\\d+\\.\\d+)?\\+(\\d+(?:\\.\\d+)?)(@([a-f0-9]{32}))?");
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 27 19:29:10 GMT 2021
    - 6.8K bytes
    - Click Count (0)
Back to Top