Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 50 for Mac (0.02 sec)

  1. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.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;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java

        }
    
        @Test
        @DisplayName("Test constructor with MAC signing key and bypass flag")
        void testConstructorWithBypass() {
            SMB1SigningDigest digest = new SMB1SigningDigest(testMacSigningKey, true);
            assertNotNull(digest);
            assertTrue(digest.toString().contains("MacSigningKey="));
        }
    
        @Test
        @DisplayName("Test constructor with MAC signing key, bypass flag and initial sequence")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/netbios/NodeStatusResponse.java

            final int namesLength = this.numberOfNames * 18;
            final int statsLength = this.rDataLength - namesLength - 1;
            this.numberOfNames = src[srcIndex] & 0xFF;
            srcIndex++;
            // gotta read the mac first so we can populate addressArray with it
            System.arraycopy(src, srcIndex + namesLength, this.macAddress, 0, 6);
            srcIndex += readNodeNameArray(src, srcIndex);
            this.stats = new byte[statsLength];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/util/mime.map

    application/futuresplash       spl              # Macromedia Flash
    application/hep                hep              # Hummingbird Host Explorer Profiles
    application/lotus-123          wks              # Lotus 123
    application/mac-binhex40       hqx              # Macintosh binhexed archives
    application/mspowerpoint       ppt              # Microsoft Powerpoint
    application/msword             doc              # Microsoft Word
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 5.9K bytes
    - Viewed (0)
  5. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  6. src/main/java/jcifs/ntlmssp/Type3Message.java

            final byte[] sk = this.masterKey;
            if (sk == null) {
                return;
            }
            final MessageDigest mac = Crypto.getHMACT64(sk);
            mac.update(type1);
            mac.update(type2);
            final byte[] type3 = toByteArray();
            mac.update(type3);
            setMic(mac.digest());
        }
    
        /**
         * Creates a Type-3 message with the specified parameters.
         *
         * @param flags
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/NetbiosAddressTest.java

            assertEquals(0, NbtAddress.B_NODE);
            assertEquals(1, NbtAddress.P_NODE);
            assertEquals(2, NbtAddress.M_NODE);
            assertEquals(3, NbtAddress.H_NODE);
    
            // Test unknown MAC address constant
            assertNotNull(NbtAddress.UNKNOWN_MAC_ADDRESS);
            assertEquals(6, NbtAddress.UNKNOWN_MAC_ADDRESS.length);
        }
    
        @Test
        void testConstantsAreImmutable() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/netbios/NodeStatusResponse.java

            final int namesLength = numberOfNames * 18;
            final int statsLength = rDataLength - namesLength - 1;
            numberOfNames = src[srcIndex] & 0xFF;
            srcIndex++;
            // gotta read the mac first so we can populate addressArray with it
            System.arraycopy(src, srcIndex + namesLength, macAddress, 0, 6);
            srcIndex += readNodeNameArray(src, srcIndex);
            stats = new byte[statsLength];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt

     * https://lauri.võsandi.com/2017/03/yubikey-for-ssh-auth.html
     *
     * Using PKCS11 support in the JDK.
     * https://tersesystems.com/blog/2018/09/08/keymanagers-and-keystores/
     *
     * Install OpenSC separately. On a mac `brew cast install opensc`.
     */
    @SuppressSignatureCheck
    class YubikeyClientAuth {
      fun run() {
        // The typical PKCS11 slot, may vary with different hardware.
        val slot = 0
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/netbios/NbtAddress.java

            checkNodeStatusData();
            return isPermanent;
        }
    
        /**
         * Retrieves the MAC address of the remote network interface. Samba returns all zeros.
         *
         * @return the MAC address as an array of six bytes
         * @throws UnknownHostException if the host cannot be resolved to
         * determine the MAC address.
         */
    
        public byte[] getMacAddress() throws UnknownHostException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.7K bytes
    - Viewed (0)
Back to top