Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 194 for arraycopy (0.27 sec)

  1. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

                SMBUtil.writeInt4(this.signSequence, data, index);
                update(data, offset, length);
                System.arraycopy(digest(), 0, data, index, 8);
                if ( this.bypass ) {
                    this.bypass = false;
                    System.arraycopy("BSRSPYL ".getBytes(), 0, data, index, 8);
                }
            }
            catch ( Exception ex ) {
                log.error("Signature failed", ex);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 05 09:45:59 GMT 2018
    - 10.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/SourceSinkFactories.java

          if (initialBytes == null) {
            return checkNotNull(bytes);
          } else {
            byte[] result = new byte[initialBytes.length + bytes.length];
            System.arraycopy(initialBytes, 0, result, 0, initialBytes.length);
            System.arraycopy(bytes, 0, result, initialBytes.length, bytes.length);
            return result;
          }
        }
    
        @Override
        public byte[] getSinkContents() throws IOException {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Sep 09 17:57:59 GMT 2021
    - 17.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContext.java

                    SMBUtil.writeInt2(hashAlgo, dst, dstIndex);
                    dstIndex += 2;
                }
            }
    
            if ( this.salt != null ) {
                System.arraycopy(this.salt, 0, dst, dstIndex, this.salt.length);
                dstIndex += this.salt.length;
            }
    
            return dstIndex - start;
        }
    
    
        /**
         * {@inheritDoc}
         *
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbComNegotiateResponse.java

            int start = bufferIndex;
    
            if ((server.capabilities & CAP_EXTENDED_SECURITY) == 0) {
                server.encryptionKey = new byte[server.encryptionKeyLength];
                System.arraycopy( buffer, bufferIndex,
                        server.encryptionKey, 0, server.encryptionKeyLength );
                bufferIndex += server.encryptionKeyLength;
                if( byteCount > server.encryptionKeyLength ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 6.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

            System.arraycopy(data, offset + SIGNATURE_OFFSET, sig, 0, SIGNATURE_LENGTH);
    
            int index = offset + SIGNATURE_OFFSET;
            for ( int i = 0; i < SIGNATURE_LENGTH; i++ )
                data[ index + i ] = 0;
    
            this.digest.update(data, offset, length);
    
            byte[] cmp = new byte[SIGNATURE_LENGTH];
            System.arraycopy(this.digest.doFinal(), 0, cmp, 0, SIGNATURE_LENGTH);
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Aug 17 17:34:29 GMT 2021
    - 4.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndX.java

                System.arraycopy( password, 0, dst, dstIndex, passwordLength );
                dstIndex += passwordLength;
            } else {
                // no password in tree connect
                dst[dstIndex++] = (byte)0x00;
            }
            dstIndex += writeString( path, dst, dstIndex );
            try {
                System.arraycopy( service.getBytes( "ASCII" ), 0, dst, dstIndex, service.length() );
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 6.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/primitives/IntArrayAsListTest.java

        }
      }
    
      private static Integer[] concat(Integer[] left, Integer[] right) {
        Integer[] result = new Integer[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
        return result;
      }
    
      public abstract static class TestIntegerListGenerator implements TestListGenerator<Integer> {
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/ByteArrayAsListTest.java

        }
      }
    
      private static Byte[] concat(Byte[] left, Byte[] right) {
        Byte[] result = new Byte[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
        return result;
      }
    
      public abstract static class TestByteListGenerator implements TestListGenerator<Byte> {
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Jun 01 09:32:35 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/util/Hexdump.java

                ci += 5;
                c[ci++] = ':';
                do {
                    if( si == length ) {
                        int n = 16 - s;
                        System.arraycopy( SPACE_CHARS, 0, c, ci, n * 3 );
                        ci += n * 3;
                        System.arraycopy( SPACE_CHARS, 0, d, s, n );
                        break;
                    }
                    c[ci++] = ' ';
                    i = src[srcIndex + si] & 0xFF;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 5.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/pac/PacMac.java

            byte[] dk = deriveKeyAES(baseKey, cst); // Checksum key
            try {
                Mac m = Mac.getInstance("HmacSHA1");
                m.init(new SecretKeySpec(dk, HMAC_KEY));
                System.arraycopy(m.doFinal(input), 0, output, 0, 12);
                return output;
            }
            finally {
                Arrays.fill(dk, 0, dk.length, (byte) 0);
            }
        }
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 7K bytes
    - Viewed (0)
Back to top