Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 59 for pad8 (0.21 seconds)

  1. src/main/java/jcifs/smb1/util/MD4.java

         * reset.
         *
         * @return the array of bytes for the resulting hash value.
         */
        @Override
        public byte[] engineDigest() {
            // pad output to 56 mod 64; as RFC1320 puts it: congruent to 448 mod 512
            final int bufferNdx = (int) (count % BLOCK_LENGTH);
            final int padLen = bufferNdx < 56 ? 56 - bufferNdx : 120 - bufferNdx;
    
    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)
  2. src/main/java/jcifs/smb/SmbTransportImpl.java

                    off += 27;
                    resp.decode(buffer, 4);
                    /* EMC can send pad w/o data */
                    final int pad = r.getDataOffset() - off;
                    if (r.getByteCount() > 0 && pad > 0 && pad < 4) {
                        readn(this.in, buffer, 4 + off, pad);
                    }
    
                    if (r.getDataLength() > 0) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 69.8K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java

                if (data != null && data.length > 0) {
                    System.arraycopy(data, 0, dst, offset, data.length);
                    offset += data.length;
                }
    
                // Pad to 8-byte boundary
                while ((offset - dstIndex) % 8 != 0) {
                    dst[offset++] = 0;
                }
    
                return offset - dstIndex;
            }
    
            @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 24.9K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/hash/Striped64.java

       * needed again; and for short-lived ones, it does not matter.
       */
    
      /**
       * Padded variant of AtomicLong supporting only raw accesses plus CAS. The value field is placed
       * between pads, hoping that the JVM doesn't reorder them.
       *
       * <p>JVM intrinsics note: It would be possible to use a release-only form of CAS here, if it were
       * provided.
       */
      static final class Cell {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Jan 15 22:17:15 GMT 2025
    - 11.4K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java

            // Context handle (20 bytes)
            if (contextHandle != null) {
                buf.writeOctetArray(contextHandle, 0, Math.min(contextHandle.length, 20));
                // Pad with zeros if context handle is shorter than 20 bytes
                for (int i = contextHandle.length; i < 20; i++) {
                    buf.enc_ndr_small(0);
                }
            } else {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 16.4K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

            // We will return a composite buffer from the test when building the full packet.
            // To keep this helper simple, return base and let the caller append/pad and inject ctx.
            return base;
        }
    
        /**
         * Build a full SMB2 packet combining header and provided body, optionally injecting context bytes.
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

        }
    
        /**
         * Perform constant-time encryption to prevent timing attacks
         */
        private byte[] performConstantTimeEncryption(Cipher cipher, byte[] message) throws Exception {
            // Pad to fixed block size to prevent timing leaks
            int blockSize = cipher.getBlockSize();
            if (blockSize == 0)
                blockSize = 16; // GCM mode
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

        this.maxHeap = new Heap(ordering.reverse());
        minHeap.otherHeap = maxHeap;
        maxHeap.otherHeap = minHeap;
    
        this.maximumSize = builder.maximumSize;
        // TODO(kevinb): pad?
        this.queue = new Object[queueSize];
      }
    
      @Override
      public int size() {
        return size;
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 13:11:08 GMT 2026
    - 34K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/Iterators.java

        return partitionImpl(iterator, size, true);
      }
    
      private static <T extends @Nullable Object> UnmodifiableIterator<List<@Nullable T>> partitionImpl(
          Iterator<T> iterator, int size, boolean pad) {
        checkNotNull(iterator);
        checkArgument(size > 0);
        return new UnmodifiableIterator<List<@Nullable T>>() {
          @Override
          public boolean hasNext() {
            return iterator.hasNext();
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 16 12:42:11 GMT 2025
    - 51.4K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/Iterators.java

        return partitionImpl(iterator, size, true);
      }
    
      private static <T extends @Nullable Object> UnmodifiableIterator<List<@Nullable T>> partitionImpl(
          Iterator<T> iterator, int size, boolean pad) {
        checkNotNull(iterator);
        checkArgument(size > 0);
        return new UnmodifiableIterator<List<@Nullable T>>() {
          @Override
          public boolean hasNext() {
            return iterator.hasNext();
          }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 16 12:42:11 GMT 2025
    - 51.4K bytes
    - Click Count (0)
Back to Top