Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for Digest (0.13 sec)

  1. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                Arrays.fill(sessionKey, (byte) 0xEE);
    
                Smb2SigningDigest digest = new Smb2SigningDigest(sessionKey, Smb2Constants.SMB2_DIALECT_0202, null);
    
                // Close multiple times should not throw
                digest.close();
                digest.close();
                digest.secureWipeKey();
                digest.close();
    
                // Operations should still fail
                byte[] data = new byte[128];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/NtlmContext.java

            mac.update(seqBytes); // sequence
            mac.update(data); // data
            final byte[] dgst = mac.digest();
            byte[] trunc = new byte[8];
            System.arraycopy(dgst, 0, trunc, 0, 8);
    
            if (log.isDebugEnabled()) {
                log.debug("Digest " + Hexdump.toHexString(dgst));
                log.debug("Truncated " + Hexdump.toHexString(trunc));
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  3. .github/workflows/update-rbe.yml

        - name: Update the RBE Configs
          run: |
            function map() {
              # The "digest" that allows us to pull an image is not the digest as
              # returned by the API, but a sha256sum of the entire chunk of image
              # metadata. gcr.io helpfully includes it in the header of the response
              # as docker-content-digest: sha256:[digest]. Note we use egrep to
              # match exactly sha256:<hash> because curl may include a ^M symbol at
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Mon Sep 01 15:40:11 UTC 2025
    - 7.2K bytes
    - Viewed (1)
  4. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  5. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  6. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  7. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  8. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTransportImpl.java

        }
    
        /**
         * @param digest
         */
        public void setDigest(final SMBSigningDigest digest) {
            this.digest = digest;
        }
    
        /**
         * @return the digest
         */
        public SMBSigningDigest getDigest() {
            return this.digest;
        }
    
        /**
         * @return the context associated with this transport connection
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

                    byte[] ntlmv2Hash = hmac.digest();
                    hmac = Crypto.getHMACT64(ntlmv2Hash);
                    hmac.update(chlng);
                    hmac.update(this.clientChallenge);
                    MessageDigest userKey = Crypto.getHMACT64(ntlmv2Hash);
                    userKey.update(hmac.digest());
                    userKey.digest(dest, offset, 16);
                    break;
                default:
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
Back to top