Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getArcfour (0.07 sec)

  1. src/test/java/jcifs/util/CryptoTest.java

            // When
            Cipher encryptCipher = Crypto.getArcfour(key);
            encryptCipher.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(key, "RC4"));
            byte[] encrypted = encryptCipher.doFinal(plaintext);
    
            Cipher decryptCipher = Crypto.getArcfour(key);
            decryptCipher.init(Cipher.DECRYPT_MODE, new SecretKeySpec(key, "RC4"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/NtlmContext.java

            this.sealClientHandle = Crypto.getArcfour(this.sealClientKey);
            if (log.isDebugEnabled()) {
                log.debug("Seal key is " + Hexdump.toHexString(this.sealClientKey));
            }
    
            this.sealServerKey = deriveKey(mk, S2C_SEAL_CONSTANT);
            this.sealServerHandle = Crypto.getArcfour(this.sealServerKey);
    
            if (log.isDebugEnabled()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/Crypto.java

        }
    
        /**
         * Get an RC4 cipher instance initialized with the specified key.
         * @param key the encryption key
         * @return RC4 cipher in encryption mode
         */
        public static Cipher getArcfour(final byte[] key) {
            try {
                final Cipher c = Cipher.getInstance("RC4");
                c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(key, "RC4"));
                return c;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/ntlmssp/Type3Message.java

                        tc.getConfig().getRandom().nextBytes(this.masterKey);
    
                        final byte[] exchangedKey = new byte[16];
                        final Cipher arcfour = Crypto.getArcfour(ntlm2SessionKey);
                        arcfour.update(this.masterKey, 0, 16, exchangedKey, 0);
                        setEncryptedSessionKey(exchangedKey);
                    } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 32.7K bytes
    - Viewed (0)
Back to top