Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for RC4 (0.02 sec)

  1. src/main/java/jcifs/smb1/util/RC4.java

    package jcifs.smb1.util;
    
    /**
     * Implementation of the RC4 (ARCFOUR) stream cipher algorithm.
     * This class provides RC4 encryption/decryption functionality used in SMB1 protocol operations.
     */
    public class RC4 {
    
        byte[] s;
        int i, j;
    
        /**
         * Default constructor for RC4 cipher.
         * Call init() to initialize with a key before use.
         */
        public RC4() {
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  2. 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)
  3. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

                            final RC4 rc4 = new RC4(ntlm2SessionKey);
                            rc4.update(masterKey, 0, 16, exchangedKey, 0);
                            /* RC4 was not added to Java until 1.5u7 so let's use our own for a little while longer ...
                            try {
                                Cipher rc4 = Cipher.getInstance("RC4");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/CryptoTest.java

        @Test
        @DisplayName("Should perform RC4 encryption/decryption")
        void testRC4() throws Exception {
            // Given
            byte[] key = "testkey123456789".getBytes(); // 16 bytes
            byte[] plaintext = "This is a test message for RC4".getBytes();
    
            // When
            Cipher encryptCipher = Crypto.getArcfour(key);
            encryptCipher.init(Cipher.ENCRYPT_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)
  5. src/main/java/jcifs/pac/kerberos/KerberosConstants.java

        int AUTH_DATA_RELEVANT = 1;
        /** Authorization data type: PAC */
        int AUTH_DATA_PAC = 128;
    
        /** DES encryption type identifier */
        int DES_ENC_TYPE = 3;
        /** RC4 encryption type identifier */
        int RC4_ENC_TYPE = 23;
        /** RC4 algorithm name */
        String RC4_ALGORITHM = "ARCFOUR";
        /** HMAC algorithm name */
        String HMAC_ALGORITHM = "HmacMD5";
        /** Size of confounder in bytes */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/pac/PacSignature.java

        /**
         * Kerberos checksum type for HMAC-SHA1-96 with AES-256.
         */
        public static final int HMAC_SHA1_96_AES256 = 0x00000010;
    
        /**
         * Kerberos encryption type for ARCFOUR-HMAC (RC4-HMAC).
         */
        public static final int ETYPE_ARCFOUR_HMAC = 23;
        /**
         * Kerberos encryption type for AES-128 CTS mode with HMAC-SHA1-96.
         */
        public static final int ETYPE_AES128_CTS_HMAC_SHA1_96 = 17;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/CIFSUnsupportedCryptoExceptionTest.java

        @NullAndEmptySource
        @ValueSource(strings = { "AES encryption not supported", "Missing Bouncy Castle provider", "Invalid key length for AES-128",
                "RC4 cipher not available in this JVM", "DES encryption is deprecated and not supported", "HMAC-SHA256 algorithm not found",
                "RSA key generation failed: key size not supported" })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java

            assertThrows(PACDecodingException.class, () -> new KerberosEncData(encoded, Collections.emptyMap()));
        }
    
        /**
         * Test decrypt with RC4 encryption.
         *
         * @throws GeneralSecurityException if a security error occurs
         */
        @Test
        void testDecryptRc4() throws GeneralSecurityException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/ntlmssp/Type3Message.java

                    tc.getConfig().getRandom().nextBytes(this.masterKey);
    
                    final byte[] encryptedKey = new byte[16];
                    final Cipher rc4 = Crypto.getArcfour(userSessionKey);
                    rc4.update(this.masterKey, 0, 16, encryptedKey, 0);
                    setEncryptedSessionKey(encryptedKey);
                } else {
                    this.masterKey = userSessionKey;
                }
    
    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