Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 490 for init (0.14 sec)

  1. src/main/java/jcifs/pac/PacMac.java

            if ( carry != 0 ) {
                for ( int i = outlen - 1; i >= 0; i-- ) {
                    carry += ( buf[ i ] & 0xff );
                    buf[ i ] = (byte) ( carry & 0xff );
                    carry >>>= 8;
                }
            }
            return buf;
        }
    
    
        private static int carry_add ( byte[] data, byte[] out, int c, int i ) {
            int ilen = data.length, olen = out.length;
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/util/RC4.java

     */
    
    package jcifs.smb1.util;
    
    public class RC4
    {
    
        byte[] s;
        int i, j;
    
        public RC4()
        {
        }
        public RC4(byte[] key)
        {
            init(key, 0, key.length);
        }
    
        public void init(byte[] key, int ki, int klen)
        {
            s = new byte[256];
    
            for (i = 0; i < 256; i++)
                s[i] = (byte)i;
    
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 1.7K bytes
    - Viewed (0)
  3. 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 Apr 21 00:10:10 GMT 2024
    - Last Modified: Mon Oct 02 12:02:06 GMT 2023
    - 11.4K bytes
    - Viewed (0)
  4. 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 Apr 21 00:10:10 GMT 2024
    - Last Modified: Tue Aug 17 17:34:29 GMT 2021
    - 5.2K bytes
    - Viewed (0)
  5. 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 Apr 21 00:10:10 GMT 2024
    - Last Modified: Sat Nov 13 15:14:04 GMT 2021
    - 11.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFileInputStream.java

         */
    
        @Override
        public int read ( byte[] b ) throws IOException {
            return read(b, 0, b.length);
        }
    
    
        /**
         * Reads up to len bytes of data from this input stream into an array of bytes.
         *
         * @throws IOException
         *             if a network error occurs
         */
    
        @Override
        public int read ( byte[] b, int off, int len ) throws IOException {
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun May 17 08:55:14 GMT 2020
    - 13.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/http/NtlmHttpFilter.java

        private CIFSContext transportContext;
        private Address[] dcList = null;
        private long dcListExpiration;
    
        private int netbiosLookupRespLimit = 3;
        private long netbiosCacheTimeout = 60 * 60 * 10;
        private static int dcListCounter;
    
    
        @Override
        public void init ( FilterConfig filterConfig ) throws ServletException {
            String name;
    
            Properties p = new Properties();
            /*
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 14.8K bytes
    - Viewed (0)
  8. 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 Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Oct 01 12:01:17 GMT 2023
    - 22.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/ntlmssp/NtlmFlags.java

         * of NTLMv2 authentication.
         */
        public static final int NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY = 0x00080000;
    
        /**
         * ?? According to spec this is a reserved bit and must be set to zero
         */
        public static final int NTLMSSP_REQUEST_INIT_RESPONSE = 0x00100000;
    
        /**
         * ?? According to spec this is NTLMSSP_NEGOTIATE_IDENTIFY
         * 
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

            int lmResponseOffset = readULong(material, 16);
            byte[] ntResponse = readSecurityBuffer(material, 20);
            int ntResponseOffset = readULong(material, 24);
            byte[] domain = readSecurityBuffer(material, 28);
            int domainOffset = readULong(material, 32);
            byte[] user = readSecurityBuffer(material, 36);
            int userOffset = readULong(material, 40);
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.9K bytes
    - Viewed (0)
Back to top