Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for opad (0.03 sec)

  1. src/main/java/jcifs/smb1/util/HMACT64.java

            final int length = Math.min(key.length, BLOCK_LENGTH);
            for (int i = 0; i < length; i++) {
                ipad[i] = (byte) (key[i] ^ IPAD);
                opad[i] = (byte) (key[i] ^ OPAD);
            }
            for (int i = length; i < BLOCK_LENGTH; i++) {
                ipad[i] = IPAD;
                opad[i] = OPAD;
            }
            try {
                md5 = MessageDigest.getInstance("MD5");
            } catch (final Exception ex) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/HMACT64.java

            final int length = Math.min(key.length, BLOCK_LENGTH);
            for (int i = 0; i < length; i++) {
                this.ipad[i] = (byte) (key[i] ^ IPAD);
                this.opad[i] = (byte) (key[i] ^ OPAD);
            }
            for (int i = length; i < BLOCK_LENGTH; i++) {
                this.ipad[i] = IPAD;
                this.opad[i] = OPAD;
            }
    
            this.md5 = Crypto.getMD5();
            engineReset();
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComWriteAndX.java

            final int start = dstIndex;
    
            this.dataOffset = dstIndex - this.headerStart + 26; // 26 = off from here to pad
    
            this.pad = (this.dataOffset - this.headerStart) % 4;
            this.pad = this.pad == 0 ? 0 : 4 - this.pad;
            this.dataOffset += this.pad;
    
            SMBUtil.writeInt2(this.fid, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt4(this.offset, dst, dstIndex);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComTransactionResponse.java

            }
    
            return bufferIndex - start;
        }
    
        @Override
        int readBytesWireFormat(final byte[] buffer, int bufferIndex) {
            pad = pad1 = 0;
            final int n;
    
            if (parameterCount > 0) {
                bufferIndex += pad = parameterOffset - (bufferIndex - headerStart);
                System.arraycopy(buffer, bufferIndex, txn_buf, bufParameterStart + parameterDisplacement, parameterCount);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbComWriteAndX.java

            final int start = dstIndex;
    
            dataOffset = dstIndex - headerStart + 26; // 26 = off from here to pad
    
            pad = (dataOffset - headerStart) % 4;
            pad = pad == 0 ? 0 : 4 - pad;
            dataOffset += pad;
    
            writeInt2(fid, dst, dstIndex);
            dstIndex += 2;
            writeInt4(offset, dst, dstIndex);
            dstIndex += 4;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupResponse.java

            bufferIndex += 4;
    
            final int pad = bufferIndex - (getHeaderStart() + securityBufferOffset);
            this.blob = new byte[securityBufferLength];
            System.arraycopy(buffer, getHeaderStart() + securityBufferOffset, this.blob, 0, securityBufferLength);
            bufferIndex += pad;
            bufferIndex += securityBufferLength;
    
            return bufferIndex - start;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.8K bytes
    - Viewed (1)
  7. src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java

         */
        public Smb2TransformHeader(final byte[] nonce, final int originalMessageSize, final int flags, final long sessionId) {
            if (nonce.length == 12) {
                // For CCM cipher, pad nonce to 16 bytes with zeros
                System.arraycopy(nonce, 0, this.nonce, 0, 12);
                // Last 4 bytes remain zero-initialized
            } else if (nonce.length == 16) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/util/Base64.java

            final int length = string.length();
            if (length == 0) {
                return new byte[0];
            }
            final int pad = string.charAt(length - 2) == '=' ? 2 : string.charAt(length - 1) == '=' ? 1 : 0;
            final int size = length * 3 / 4 - pad;
            final byte[] buffer = new byte[size];
            int block;
            int i = 0;
            int index = 0;
            while (i < length) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/witness/WitnessUnregisterMessage.java

            // Context handle (20 bytes) - this is both input and output (modified)
            if (contextHandle != null) {
                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            } else {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java

            assertArrayEquals(machineId, actualMachineId);
        }
    
        /**
         * Test with customData and machineId that are not exactly 8 and 32 bytes respectively.
         * The constructor requires exact sizes, so we need to pad them manually.
         */
        @Test
        void testAvSingleHostCustomDataMachineIdConstructor_ShorterInputs() {
            // Prepare padded arrays
            byte[] customData = new byte[8];
            customData[0] = 0x01;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
Back to top