Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 21 - 30 of 508 for digest (0.24 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_security_http_digest_optional.py

    
    client = TestClient(app)
    
    
    def test_security_http_digest():
        response = client.get("/users/me", headers={"Authorization": "Digest foobar"})
        assert response.status_code == 200, response.text
        assert response.json() == {"scheme": "Digest", "credentials": "foobar"}
    
    
    def test_security_http_digest_no_credentials():
        response = client.get("/users/me")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  2. fastapi/security/http.py

            return HTTPAuthorizationCredentials(scheme=scheme, credentials=credentials)
    
    
    class HTTPDigest(HTTPBase):
        """
        HTTP Digest authentication.
    
        **Warning**: this is only a stub to connect the components with OpenAPI in FastAPI,
        but it doesn't implement the full Digest scheme, you would need to subclass it
        and implement it in your code.
    
        Ref: https://datatracker.ietf.org/doc/html/rfc7616
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 16 10:16:48 GMT 2026
    - 13.1K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

                    final HMACT64 userKey = new HMACT64(ntlmv2Hash);
                    userKey.update(hmac.digest());
                    userKey.digest(dest, offset, 16);
                    break;
                default:
                    md4.update(md4.digest());
                    md4.digest(dest, offset, 16);
                    break;
                }
            } catch (final Exception e) {
                throw new SmbException("", e);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 26.7K bytes
    - Click Count (0)
  4. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  5. 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));
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 17.3K bytes
    - Click Count (1)
  6. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 68.9K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

          throws NoSuchAlgorithmException {
        MessageDigest digest = MessageDigest.getInstance(algorithmName);
        assertEquals(
            HashCode.fromBytes(digest.digest(input)), ALGORITHMS.get(algorithmName).hashBytes(input));
        for (int bytes = 4; bytes <= digest.getDigestLength(); bytes++) {
          assertEquals(
              HashCode.fromBytes(Arrays.copyOf(digest.digest(input), bytes)),
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  8. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb1/util/HMACT64Test.java

            hmac.engineReset();
            // After reset, should be able to digest again
            byte[] result = hmac.engineDigest();
            assertNotNull(result);
        }
    
        @Test
        void testEngineGetDigestLength() {
            // Test engineGetDigestLength()
            HMACT64 hmac = new HMACT64(TEST_KEY);
            // MD5 digest length is 16 bytes
            assertEquals(16, hmac.engineGetDigestLength());
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.1K bytes
    - Click Count (0)
  10. 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 {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.3K bytes
    - Click Count (0)
Back to Top