Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for SetBytes (0.67 sec)

  1. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

                MD4 md4 = new MD4();
                md4.update(password.getBytes(SmbConstants.UNI_ENCODING));
                HMACT64 hmac = new HMACT64(md4.digest());
                hmac.update(user.toUpperCase().getBytes(SmbConstants.UNI_ENCODING));
                hmac.update(domain.toUpperCase().getBytes(SmbConstants.UNI_ENCODING));
                hmac = new HMACT64(hmac.digest());
                hmac.update(challenge);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/PACTest.java

            verifyAESHMAC(3, expect, key, data.getBytes(StandardCharsets.US_ASCII));
        }
    
    
        @Test
        public void testAES256Checksum () throws GeneralSecurityException {
            String data = "fourteen";
            String key = "B1AE4CD8462AFF1677053CC9279AAC30B796FB81CE21474DD3DDBCFEA4EC76D7";
            String expect = "E08739E3279E2903EC8E3836";
            verifyAESHMAC(4, expect, key, data.getBytes(StandardCharsets.US_ASCII));
        }
    
    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)
  3. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

                            domainName.getBytes(UNI_ENCODING) :
                                    domainName.getBytes(oem);
                }
                int domainLength = (domain != null) ? domain.length : 0;
                String userName = getUser();
                byte[] user = null;
                if (userName != null && userName.length() != 0) {
                    user = unicode ? userName.getBytes(UNI_ENCODING) :
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/ntlmssp/Type2Message.java

                if ( targetName != null && targetName.length() != 0 ) {
                    targetBytes = ( flags & NTLMSSP_NEGOTIATE_UNICODE ) != 0 ? targetName.getBytes(UNI_ENCODING)
                            : targetName.toUpperCase().getBytes(getOEMEncoding());
                    size += targetBytes.length;
                }
                else {
                    flags &= ( 0xffffffff ^ NTLMSSP_REQUEST_TARGET );
                }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 14.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtlmContext.java

            }
        }
    
    
        private static byte[] deriveKey ( byte[] masterKey, String cnst ) {
            MessageDigest md5 = Crypto.getMD5();
            md5.update(masterKey);
            md5.update(cnst.getBytes(StandardCharsets.US_ASCII));
            md5.update((byte) 0);
            return md5.digest();
        }
    
    
        @Override
        public boolean supportsIntegrity () {
            return true;
        }
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 15.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

            dstIndex += 4;
            SMBUtil.writeInt4(this.createOptions, dst, dstIndex);
            dstIndex += 4;
    
            int nameOffsetOffset = dstIndex;
            byte[] nameBytes = this.name.getBytes(StandardCharsets.UTF_16LE);
            SMBUtil.writeInt2(nameBytes.length, dst, dstIndex + 2);
            dstIndex += 4;
    
            int createContextOffsetOffset = dstIndex;
            dstIndex += 4; // createContextOffset
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Jun 01 09:52:11 GMT 2019
    - 14.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/config/BaseConfiguration.java

                disallow.add(st.nextToken().trim());
            }
            this.disallowCompound = disallow;
        }
    
    
        protected void initDefaults () throws CIFSException {
    
            try {
                "".getBytes(SmbConstants.DEFAULT_OEM_ENCODING);
            }
            catch ( UnsupportedEncodingException uee ) {
                throw new CIFSException(
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:06:39 GMT 2023
    - 20.4K bytes
    - Viewed (1)
  8. src/main/java/jcifs/smb1/ntlmssp/Type2Message.java

                try {
                    domain = DEFAULT_DOMAIN.getBytes(UNI_ENCODING);
                } catch (IOException ex) { }
            }
            int domainLength = domain.length;
            byte[] server = new byte[0];
            try {
                String host = NbtAddress.getLocalHost().getHostName();
                if (host != null) {
                    try {
                        server = host.getBytes(UNI_ENCODING);
                    } catch (IOException ex) { }
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 12.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

                    }
                    System.arraycopy( str.getBytes( UNI_ENCODING ), 0,
                                        dst, dstIndex, str.length() * 2 );
                    dstIndex += str.length() * 2;
                    dst[dstIndex++] = (byte)'\0';
                    dst[dstIndex++] = (byte)'\0';
                } else {
                    byte[] b = str.getBytes( OEM_ENCODING );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 21K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbRandomAccessFile.java

            Encdec.enc_doublebe(v, this.tmp, 0);
            write(this.tmp, 0, 8);
        }
    
    
        @Override
        public final void writeBytes ( String s ) throws SmbException {
            byte[] b = s.getBytes();
            write(b, 0, b.length);
        }
    
    
        @Override
        public final void writeChars ( String s ) throws SmbException {
            int clen = s.length();
            int blen = 2 * clen;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 08 12:01:33 GMT 2020
    - 18.5K bytes
    - Viewed (0)
Back to top