Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 1,922 for LENGTH (0.04 seconds)

  1. src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java

            assertNotNull(response);
            assertEquals(24, response.length);
        }
    
        // Test getNTLMResponse
        @Test
        void testGetNTLMResponse() {
            byte[] challenge = { 1, 2, 3, 4, 5, 6, 7, 8 };
            byte[] response = NtlmPasswordAuthentication.getNTLMResponse("password", challenge);
            assertNotNull(response);
            assertEquals(24, response.length);
        }
    
        // Test getLMv2Response
        @Test
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/NtlmUtilTest.java

            // Act
            byte[] result = NtlmUtil.computeResponse(key, serverChallenge, clientData, 0, clientData.length);
    
            // Assert: result = mac(16) + clientData
            assertEquals(16 + clientData.length, result.length);
            assertArrayEquals(clientData, Arrays.copyOfRange(result, 16, 16 + clientData.length));
        }
    
        @Test
        @DisplayName("getLMv2Response(byte[]): delegates to computeResponse")
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 12K bytes
    - Click Count (1)
  3. src/main/java/jcifs/pac/PacMac.java

            cipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(keybytes, "AES"), new IvParameterSpec(ZERO_IV, 0, ZERO_IV.length));
            if (constant.length != cipher.getBlockSize()) {
                constant = expandNFold(constant, cipher.getBlockSize());
            }
            byte[] enc = constant;
            int klen = keybytes.length;
            byte[] dk = new byte[klen];
            for (int n = 0; n < klen;) {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 9K bytes
    - Click Count (0)
  4. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt

          writeVariableLengthLong(tag)
        }
    
        // Write the length. This takes 1 byte if length is less than 128.
        val length = content.size
        if (length < 128) {
          sink.writeByte(length.toInt())
        } else {
          // count how many bytes we'll need to express the length.
          val lengthBitCount = 64 - java.lang.Long.numberOfLeadingZeros(length)
          val lengthByteCount = (lengthBitCount + 7) / 8
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  5. src/test/java/jcifs/pac/ASN1UtilTest.java

            // Definite-length short form (length 10)
            InputStream s = new ByteArrayInputStream(new byte[] { 0x0A });
            int length = ASN1Util.readLength(s, 100, false);
            assertEquals(10, length);
        }
    
        @Test
        void testReadLength_LongForm() throws IOException {
            // Definite-length long form (length 256)
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  6. src/test/java/jcifs/MsrpcDfsRootEnumTest.java

            assertNotNull(entries1);
            assertNotNull(entries2);
            assertNotNull(entries3);
    
            assertEquals(entries1.length, entries2.length);
            assertEquals(entries2.length, entries3.length);
    
            for (int i = 0; i < entries1.length; i++) {
                assertEquals(entries1[i].getName(), entries2[i].getName());
                assertEquals(entries2[i].getName(), entries3[i].getName());
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.9K bytes
    - Click Count (0)
  7. guava/src/com/google/common/hash/BloomFilterStrategies.java

         * of this method.
         */
        void putAll(LockFreeBitArray other) {
          checkArgument(
              data.length() == other.data.length(),
              "BitArrays must be of equal length (%s != %s)",
              data.length(),
              other.data.length());
          for (int i = 0; i < data.length(); i++) {
            putData(i, other.data.get(i));
          }
        }
    
        /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jan 08 14:27:16 GMT 2025
    - 10.7K bytes
    - Click Count (0)
  8. migrator/column_type.go

    	return ct.AutoIncrementValue.Bool, ct.AutoIncrementValue.Valid
    }
    
    // Length returns the column type length for variable length column types
    func (ct ColumnType) Length() (length int64, ok bool) {
    	if ct.LengthValue.Valid {
    		return ct.LengthValue.Int64, true
    	}
    	return ct.SQLColumnType.Length()
    }
    
    // DecimalSize returns the scale and precision of a decimal type.
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Thu Mar 24 01:31:58 GMT 2022
    - 3.3K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/core/misc/Base64UtilTest.java

            final String binaryEncoded = Base64Util.encode(binaryData);
            final byte[] binaryDecoded = Base64Util.decode(binaryEncoded);
            assertEquals("Binary data length should match", binaryData.length, binaryDecoded.length);
            for (int i = 0; i < binaryData.length; i++) {
                assertEquals("Binary data should match at position " + i, binaryData[i], binaryDecoded[i]);
            }
        }
    
        /**
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 6K bytes
    - Click Count (0)
  10. android/guava-tests/benchmark/com/google/common/primitives/UnsignedBytesBenchmark.java

      @Param({"4", "8", "64", "1024"})
      private int length;
    
      @BeforeExperiment
      void setUp() throws Exception {
        Random r = new Random();
        ba1 = new byte[length];
        r.nextBytes(ba1);
        ba2 = Arrays.copyOf(ba1, ba1.length);
        // Differ at the last element
        ba3 = Arrays.copyOf(ba1, ba1.length);
        ba4 = Arrays.copyOf(ba1, ba1.length);
        ba3[ba1.length - 1] = (byte) 43;
        ba4[ba1.length - 1] = (byte) 42;
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.8K bytes
    - Click Count (0)
Back to Top