Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for init (0.15 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/tree/Smb2TreeConnectResponse.java

        /**
         * 
         */
        public static final int SMB2_SHAREFLAG_RESTRICT_EXCLUSIVE_OPENS = 0x100;
        /**
         * 
         */
        public static final int SMB2_SHAREFLAG_FORCE_SHARED_DELETE = 0x200;
        /**
         * 
         */
        public static final int SMB2_SHAREFLAG_ALLOW_NAMESPACE_CACHING = 0x400;
        /**
         * 
         */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Mon May 23 14:35:20 GMT 2022
    - 6.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/spnego/NegTokenInit.java

    public class NegTokenInit extends SpnegoToken {
    
        public static final int DELEGATION = 0x80;
        public static final int MUTUAL_AUTHENTICATION = 0x40;
        public static final int REPLAY_DETECTION = 0x20;
        public static final int SEQUENCE_CHECKING = 0x10;
        public static final int ANONYMITY = 0x08;
        public static final int CONFIDENTIALITY = 0x04;
        public static final int INTEGRITY = 0x02;
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Oct 01 12:01:17 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/EnumTest.java

            int origBufferSize = ctx.getConfig().getMaximumBufferSize();
            // odd buffer size that does match the alignment
            int tryBufferSize = 1023;
            final int bufSize[] = new int[] {
                origBufferSize
            };
            ctx = withConfig(ctx, new DelegatingConfiguration(ctx.getConfig()) {
    
                @Override
                public int getMaximumBufferSize () {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/FileAttributesTest.java

                        // only have second precision
                        // there seems to be some random factor (adding one second)
                        int diff = Math.abs((int) ( ( time / 1000 ) - ( f.lastModified() / 1000 ) ));
                        Assert.assertTrue("Have set time correctly", diff < 2);
                    }
                    else {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 12.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/context/BaseContext.java

            }
        }
    
    
        /**
         * 
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#getPipe(java.lang.String, int)
         */
        @Override
        public SmbPipeResource getPipe ( String url, int pipeType ) throws CIFSException {
            try {
                return new SmbNamedPipe(url, pipeType, this);
            }
            catch ( MalformedURLException e ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Nov 27 18:25:00 GMT 2022
    - 5.3K bytes
    - Viewed (0)
  10. 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)
Back to top