Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for init (0.17 sec)

  1. src/main/java/jcifs/pac/kerberos/KerberosEncData.java

            SecretKeySpec dataKey = new SecretKeySpec(dataHmac, KerberosConstants.RC4_ALGORITHM);
    
            cipher = Cipher.getInstance(KerberosConstants.RC4_ALGORITHM);
            cipher.init(Cipher.DECRYPT_MODE, dataKey);
    
            int plainDataLength = data.length - KerberosConstants.CHECKSUM_SIZE;
            byte[] plainData = cipher.doFinal(data, KerberosConstants.CHECKSUM_SIZE, plainDataLength);
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Oct 02 12:02:06 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/Crypto.java

        /**
         * 
         * @param key
         * @return RC4 cipher
         */
        public static Cipher getArcfour ( byte[] key ) {
            try {
                Cipher c = Cipher.getInstance("RC4");
                c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(key, "RC4"));
                return c;
            }
            catch (
                NoSuchAlgorithmException |
                NoSuchPaddingException |
                InvalidKeyException e ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Tue Aug 17 17:34:29 GMT 2021
    - 5.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFileOutputStream.java

                throws CIFSException {
            this.file = file;
            this.handle = handle;
            this.openFlags = openFlags;
            this.access = access;
            this.sharing = sharing;
            this.append = false;
            this.smb2 = th.isSMB2();
            init(th);
        }
    
    
        /**
         * @param th
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:14:04 GMT 2021
    - 11.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/PACTest.java

         * @param key
         * @throws GeneralSecurityException
         */
        private static void verifyAESMAC ( int usage, String expect, String data, String key ) throws GeneralSecurityException {
            verifyAESHMAC(usage, expect, key, Hex.decode(data));
        }
    
    
        private static void verifyArcfourHMAC ( int usage, String expect, String data, String key ) throws GeneralSecurityException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Oct 01 12:01:17 GMT 2023
    - 22.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoResponse.java

         */
        @Override
        protected int writeBytesWireFormat ( byte[] dst, int dstIndex ) {
            return 0;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int)
         */
        @Override
        protected int readBytesWireFormat ( byte[] buffer, int bufferIndex ) throws SMBProtocolDecodingException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:13:49 GMT 2021
    - 6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/DfsImpl.java

            }
    
            key = key.toLowerCase(Locale.ROOT);
    
            Iterator<String> iter = refs.map.keySet().iterator();
            int searchLen = key.length();
            while ( iter.hasNext() ) {
                String cachedKey = iter.next();
                int cachedKeyLen = cachedKey.length();
    
                boolean match = false;
                if ( cachedKeyLen == searchLen ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:07:29 GMT 2023
    - 29.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/DirFileEntryEnumIterator1.java

        private static final int FIND_OVERHEAD = 100; // plenty enough
    
        private Trans2FindNext2 nextRequest;
        private Trans2FindFirst2Response response;
    
    
        public DirFileEntryEnumIterator1 ( SmbTreeHandleImpl th, SmbResource parent, String wildcard, ResourceNameFilter filter, int searchAttributes )
                throws CIFSException {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:13:49 GMT 2021
    - 5.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

        private static final Logger log = LoggerFactory.getLogger(AndXServerMessageBlock.class);
    
        private static final int ANDX_COMMAND_OFFSET = 1;
        private static final int ANDX_RESERVED_OFFSET = 2;
        private static final int ANDX_OFFSET_OFFSET = 3;
    
        private byte andxCommand = (byte) 0xFF;
        private int andxOffset = 0;
    
        private ServerMessageBlock andx;
    
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Nov 28 10:56:27 GMT 2022
    - 14.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/netbios/NameServiceClientImpl.java

                return doNameQuery(name, svr);
            }
    
            int IP = 0x00;
            int hitDots = 0;
            char[] data = host.toCharArray();
    
            for ( int i = 0; i < data.length; i++ ) {
                char c = data[ i ];
                if ( c < 48 || c > 57 ) {
                    return doNameQuery(name, svr);
                }
                int b = 0x00;
                while ( c != '.' ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 14 14:26:22 GMT 2022
    - 38.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbFile.java

        static final int O_RDONLY = 0x01;
        static final int O_WRONLY = 0x02;
        static final int O_RDWR   = 0x03;
        static final int O_APPEND = 0x04;
    
        // Open Function Encoding
        // create if the file does not exist
        static final int O_CREAT  = 0x0010;
        // fail if the file exists
        static final int O_EXCL   = 0x0020;
        // truncate if the file exists
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 107.9K bytes
    - Viewed (2)
Back to top