Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for DECRYPTION (0.04 sec)

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

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    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.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/kerberos/KerberosEncData.java

        /**
         * Decrypts Kerberos encrypted data using the specified key.
         *
         * @param data the encrypted data to decrypt
         * @param key the decryption key
         * @param type the encryption type
         * @return the decrypted data
         * @throws GeneralSecurityException if decryption fails
         */
        public static byte[] decrypt(byte[] data, Key key, int type) throws GeneralSecurityException {
            Cipher cipher = null;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/JsseDebugLogging.kt

              message == "adding as trusted certificates" -> Type.Setup
              message == "Raw read" || message == "Raw write" -> Type.Encrypted
              message == "Plaintext before ENCRYPTION" || message == "Plaintext after DECRYPTION" -> Type.Plaintext
              message.startsWith("System property ") -> Type.Setup
              message.startsWith("Reload ") -> Type.Setup
              message == "No session to resume." -> Type.Handshake
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java

    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 Transform Header for encrypted messages
     *
     * This header is used to encrypt SMB2/SMB3 messages and provides the necessary
     * cryptographic parameters for decryption including the nonce, session ID, and
     * authentication tag.
     *
     * @author mbechler
     */
    public class Smb2TransformHeader implements Encodable {
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/CryptoTest.java

            // Then
            assertNotNull(result);
            assertTrue(result.length > 0, "HMAC-T64 should produce non-empty result");
        }
    
        @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
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/Smb3KeyDerivation.java

        }
    
        /**
         * Derives the SMB3 decryption key from the session key using the appropriate KDF for the dialect.
         *
         * @param dialect the SMB dialect version
         * @param sessionKey the base session key
         * @param preauthIntegrity the pre-authentication integrity hash (for SMB 3.1.1) or null
         * @return derived decryption key
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/Crypto.java

    import javax.crypto.spec.SecretKeySpec;
    
    import org.bouncycastle.jce.provider.BouncyCastleProvider;
    
    import jcifs.CIFSUnsupportedCryptoException;
    
    /**
     * Cryptographic utility class providing encryption and decryption functionality for jCIFS.
     * Handles security provider initialization and cryptographic operations for SMB authentication.
     *
     * @author mbechler
     */
    public final class Crypto {
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

              // Produced ClientHello handshake message
              //
              // Raw write
              // Raw read
              // Plaintext before ENCRYPTION
              // Plaintext after DECRYPTION
              val message = record.message
              val parameters = record.parameters
    
              if (parameters != null && !message.startsWith("Raw") && !message.startsWith("Plaintext")) {
                if (verbose) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/util/SecureCredentialStorage.java

        /**
         * Decrypt credentials from a base64 string
         *
         * @param encryptedString base64 encoded encrypted credentials
         * @return decrypted credentials
         * @throws GeneralSecurityException if decryption fails
         */
        public char[] decryptFromString(String encryptedString) throws GeneralSecurityException {
            if (encryptedString == null) {
                return null;
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbSessionImplTest.java

            when(transport.isFailed()).thenReturn(true);
            assertFalse(session.isConnected());
            assertTrue(session.isFailed());
        }
    
        @Test
        @DisplayName("encryption: flags, encryption, and decryption delegation")
        void testEncryptionDelegation() throws Exception {
            SmbSessionImpl session = newSession();
    
            // No encryption context -> throws
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
Back to top