Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 88 for DIGEST (2.09 sec)

  1. src/main/java/jcifs/smb/PreauthIntegrityService.java

                }
    
                // SMB 3.1.1 spec: Hash = Hash(PreviousHash || Message)
                digest.update(previousHash);
                digest.update(messageData);
    
                return digest.digest();
            } catch (NoSuchAlgorithmException e) {
                throw new CIFSException("Hash algorithm not available: " + hashAlgorithm, e);
            }
        }
    
        /**
         * Gets the name of a hash algorithm.
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

        private static final int SIGNATURE_LENGTH = 16;
        private final Mac digest;
        private final ReentrantLock signingLock = new ReentrantLock();
        private byte[] signingKey;
        private final String algorithmName;
        private final java.security.Provider provider;
        private volatile boolean closed = false;
    
        /**
         * Constructs a SMB2 signing digest with the specified session key and dialect
         *
         * @param sessionKey
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/NtlmUtil.java

            hmac.update(Strings.getUNIBytes(user.toUpperCase()));
            hmac.update(Strings.getUNIBytes(domain.toUpperCase()));
            hmac = Crypto.getHMACT64(hmac.digest());
            hmac.update(challenge);
            hmac.update(clientChallenge);
            hmac.digest(response, 0, 16);
            System.arraycopy(clientChallenge, 0, response, 16, 8);
            return response;
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

        public Smb2SigningDigest getDigest() {
            return this.digest;
        }
    
        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlock#setDigest(jcifs.internal.SMBSigningDigest)
         */
        @Override
        public void setDigest(final SMBSigningDigest digest) {
            this.digest = (Smb2SigningDigest) digest;
            if (this.next != null) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbSessionImpl.java

        }
    
        /**
         * @param digest
         *            the digest to set
         * @throws SmbException
         */
        private void setDigest(SMBSigningDigest digest) throws SmbException {
            if (this.transport.isSMB2()) {
                this.digest = digest;
            } else {
                this.transport.setDigest(digest);
            }
        }
    
        /**
         * @return the digest
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/AndXServerMessageBlockTest.java

        }
    
        @Test
        @DisplayName("encode without andx succeeds and signs when digest present")
        void testEncodeNoAndxWithSigning() throws Exception {
            DummyAndXBlock block = new DummyAndXBlock();
            TestSigningDigest digest = new TestSigningDigest();
            block.digest = digest;
    
            byte[] buf = new byte[256];
            int len = block.encode(buf, 0);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/util/MD4.java

     */
    
    package jcifs.smb1.util;
    
    import java.security.MessageDigest;
    
    /**
     * Implements the MD4 message digest algorithm in Java.
     * <p>
     * <b>References:</b>
     * <ol>
     *   <li> Ronald L. Rivest,
     *        "<a href="http://www.roxen.com/rfc/rfc1320.html">
     *        The MD4 Message-Digest Algorithm</a>",
     *        IETF RFC-1320 (informational).
     * </ol>
     *
     * <p><b>$Revision: 1.2 $</b>
     * @author  Raif S. Naffah
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/Smb2EchoResponseTest.java

            }
        }
    
        @Nested
        @DisplayName("Signature Verification Tests")
        class SignatureVerificationTests {
    
            @Test
            @DisplayName("Should verify signature when digest is present and successful")
            void testVerifySignatureSuccess() throws Exception {
                byte[] buffer = new byte[1024];
                echoResponse.setDigest(mockDigest);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                setCredit(credit);
            }
    
            @Override
            public Smb2SigningDigest getDigest() {
                return digest;
            }
    
            public void setDigest(Smb2SigningDigest digest) {
                this.digest = digest;
            }
    
            @Override
            protected int readBytesWireFormat(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/com/SmbComClose.java

            SMBUtil.writeInt2(this.fid, dst, dstIndex);
            dstIndex += 2;
            if (this.digest != null) {
                SMB1SigningDigest.writeUTime(getConfig(), this.lastWriteTime, dst, dstIndex);
            } else {
                log.trace("SmbComClose without a digest");
            }
            return 6;
        }
    
        @Override
        protected int writeBytesWireFormat(final byte[] dst, final int dstIndex) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
Back to top