Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/test/java/jcifs/util/HMACT64Test.java

            byte[] ipad = new byte[64];
            byte[] opad = new byte[64];
    
            for (int i = 0; i < key.length; i++) {
                ipad[i] = (byte) (key[i] ^ 0x36);
                opad[i] = (byte) (key[i] ^ 0x5c);
            }
            for (int i = key.length; i < 64; i++) {
                ipad[i] = 0x36;
                opad[i] = 0x5c;
            }
    
            md5.update(ipad);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  2. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  3. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/util/HMACT64Test.java

            MessageDigest md5 = MessageDigest.getInstance("MD5");
            byte[] ipad = new byte[64];
            byte[] opad = new byte[64];
    
            // HMACT64 specific: truncate key to 64 bytes if needed
            int keyLen = Math.min(key.length, 64);
            for (int i = 0; i < keyLen; i++) {
                ipad[i] = (byte) (key[i] ^ 0x36);
                opad[i] = (byte) (key[i] ^ 0x5c);
            }
            for (int i = keyLen; i < 64; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  5. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionTest.java

        @Test
        @DisplayName("Test pad calculation with various offsets")
        void testPadCalculation() {
            // Test pad calculation with different alignment values
            assertEquals(0, transaction.pad(0)); // Already aligned
            assertEquals(0, transaction.pad(4)); // Already aligned
            assertEquals(0, transaction.pad(8)); // Already aligned
            assertEquals(3, transaction.pad(1)); // Need 3 bytes to align to 4
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbComTransaction.java

                    pad = parameterOffset % PADDING_SIZE;
                    pad = pad == 0 ? 0 : PADDING_SIZE - pad;
                    parameterOffset += pad;
                }
    
                // caclulate parameterDisplacement before calculating new parameterCount
                parameterDisplacement += parameterCount;
    
                int available = maxBufferSize - parameterOffset - pad;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java

        }
    
        @Override
        protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            this.pad = this.pad1 = 0;
            if (this.parameterCount > 0) {
                bufferIndex += this.pad = this.parameterOffset - (bufferIndex - this.headerStart);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.8K bytes
    - Viewed (1)
Back to top