Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 150 for P256 (0.42 sec)

  1. android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java

        }
        int[][] expected = new int[4][256];
        for (int b = 0; b < 4; ++b) {
          for (int bit = 128; bit != 0; bit >>= 1) {
            expected[b][bit] = next;
            next = advanceOneBit(next);
          }
        }
        for (int b = 0; b < 4; ++b) {
          expected[b][0] = 0;
          for (int bit = 2; bit < 256; bit <<= 1) {
            for (int i = bit + 1; i < (bit << 1); i++) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/SmbNegotiationTest.java

            // Fill with some test data
            for (int i = 0; i < largeRequestBuffer.length; i++) {
                largeRequestBuffer[i] = (byte) (i % 256);
            }
            for (int i = 0; i < largeResponseBuffer.length; i++) {
                largeResponseBuffer[i] = (byte) ((i * 2) % 256);
            }
    
            SmbNegotiation negotiationWithLargeBuffers = new SmbNegotiation(mockRequest, mockResponse, largeRequestBuffer, largeResponseBuffer);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponseTest.java

        }
    
        @Test
        @DisplayName("Should handle multiple read operations")
        void testMultipleReads() throws SMBProtocolDecodingException {
            // Given
            byte[] buffer1 = new byte[256];
            byte[] buffer2 = new byte[256];
    
            // Prepare both buffers with valid structure
            SMBUtil.writeInt2(4, buffer1, 0);
            SMBUtil.writeInt2(0, buffer1, 2);
            SMBUtil.writeInt2(4, buffer2, 10);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            // Given
            Configuration mockConfig = mock(Configuration.class);
            Smb2TreeDisconnectRequest request = new Smb2TreeDisconnectRequest(mockConfig);
            byte[] buffer1 = new byte[256];
            byte[] buffer2 = new byte[256];
    
            // When
            int bytes1 = request.writeBytesWireFormat(buffer1, 0);
            int bytes2 = request.writeBytesWireFormat(buffer2, 10);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

                request.setReadLength(4096);
                request.setOffset(8192L);
                request.setMinimumCount(512);
                request.setRemainingBytes(1024);
    
                byte[] buffer = new byte[256];
    
                // Execute
                int bytesWritten = request.writeBytesWireFormat(buffer, 0);
    
                // Verify structure
                assertEquals(49, SMBUtil.readInt2(buffer, 0)); // Structure size
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            // Test reading parameter words from wire format
            response = new SmbComQueryInformationResponse(mockConfig, 0L);
    
            // Prepare test data
            byte[] buffer = new byte[256];
            int bufferIndex = 0;
    
            // Set wordCount to non-zero
            setFieldValue(response, "wordCount", 10);
    
            // Write test data to buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java

        void testWriteParametersWireFormat() {
            trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test\\dir", "*.txt", 0xFF, 100, 8192);
    
            byte[] buffer = new byte[256];
            int written = trans2FindFirst2.writeParametersWireFormat(buffer, 0);
    
            assertTrue(written > 12); // Minimum size for fixed parameters
    
            // Verify search attributes (masked with 0x37)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryPathInformationTest.java

            byte[] buffer = new byte[256];
            int read = trans2QueryPathInfo.readParametersWireFormat(buffer, 0, buffer.length);
    
            // Should read nothing (returns 0)
            assertEquals(0, read);
        }
    
        @Test
        void testReadDataWireFormat() {
            trans2QueryPathInfo = new Trans2QueryPathInformation(config, TEST_FILENAME, TEST_INFO_LEVEL);
    
            byte[] buffer = new byte[256];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

            byte[] buffer = new byte[256];
            int written = writePacket.writeTrailerWireFormat(buffer, 0);
    
            ByteArrayInputStream bais = new ByteArrayInputStream(buffer);
            SessionRequestPacket readPacket = new SessionRequestPacket(mockConfig);
            readPacket.length = written;
    
            byte[] readBuffer = new byte[256];
            System.arraycopy(buffer, 0, readBuffer, 10, written);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/SmbComTransactionResponseTest.java

        void testWriteParameterWordsWireFormat() {
            byte[] dst = new byte[256];
            int result = response.writeParameterWordsWireFormat(dst, 0);
            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("Test writeDataWireFormat")
        void testWriteDataWireFormat() {
            byte[] dst = new byte[256];
            int result = response.writeDataWireFormat(dst, 0);
            assertEquals(0, result);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.4K bytes
    - Viewed (0)
Back to top