Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 10 for SecretKeySpec (0.14 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  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"));
            byte[] decrypted = decryptCipher.doFinal(encrypted);
    
            // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.4K bytes
    - Click Count (0)
  2. src/main/java/jcifs/pac/PacMac.java

    import java.security.MessageDigest;
    import java.util.Arrays;
    import java.util.Map;
    
    import javax.crypto.Cipher;
    import javax.crypto.Mac;
    import javax.crypto.spec.IvParameterSpec;
    import javax.crypto.spec.SecretKeySpec;
    import javax.security.auth.kerberos.KerberosKey;
    
    /**
     * Utility class for calculating and verifying PAC (Privilege Attribute Certificate) message authentication codes.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 9K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/hash/Hashing.java

       * SHA-1 (160 hash bits) hash function and a {@link SecretKeySpec} created from the given byte
       * array and the SHA-1 algorithm.
       *
       * @param key the key material of the secret key
       * @since 20.0
       */
      public static HashFunction hmacSha1(byte[] key) {
        return hmacSha1(new SecretKeySpec(checkNotNull(key), "HmacSHA1"));
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 29.8K bytes
    - Click Count (0)
  4. src/main/java/jcifs/util/Crypto.java

    import java.security.MessageDigest;
    import java.security.NoSuchAlgorithmException;
    import java.security.Provider;
    
    import javax.crypto.Cipher;
    import javax.crypto.NoSuchPaddingException;
    import javax.crypto.spec.SecretKeySpec;
    
    import org.bouncycastle.jce.provider.BouncyCastleProvider;
    
    import jcifs.CIFSUnsupportedCryptoException;
    
    /**
     * Cryptographic utility class providing encryption and decryption functionality for jCIFS.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.7K bytes
    - Click Count (0)
  5. src/main/java/org/codelibs/core/crypto/CachedCipher.java

         */
        protected Cipher pollEncryptoCipher() {
            Cipher cipher = encryptoQueue.poll();
            if (cipher == null) {
                try {
                    final SecretKeySpec sksSpec = new SecretKeySpec(key.getBytes(charsetName), algorithm);
                    cipher = Cipher.getInstance(algorithm);
                    cipher.init(Cipher.ENCRYPT_MODE, sksSpec);
                } catch (final InvalidKeyException e) {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat Nov 22 11:21:59 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

                }
    
                // Create cipher with the copy - algorithm is just "AES" for SecretKeySpec
                final SecretKeySpec keySpec = new SecretKeySpec(keyCopy, "AES");
                final Cipher cipher = Cipher.getInstance(transformation);
                final GCMParameterSpec gcmSpec = new GCMParameterSpec(getAuthTagLength() * 8, nonce);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 35.5K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

    package jcifs.internal.smb2;
    
    import java.security.GeneralSecurityException;
    import java.security.MessageDigest;
    import java.util.concurrent.locks.ReentrantLock;
    
    import javax.crypto.Mac;
    import javax.crypto.spec.SecretKeySpec;
    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.internal.CommonServerMessageBlock;
    import jcifs.internal.SMBSigningDigest;
    import jcifs.internal.util.SMBUtil;
    import jcifs.util.Crypto;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  8. src/main/java/jcifs/util/SecureCredentialStorage.java

    import javax.crypto.Cipher;
    import javax.crypto.SecretKey;
    import javax.crypto.SecretKeyFactory;
    import javax.crypto.spec.GCMParameterSpec;
    import javax.crypto.spec.PBEKeySpec;
    import javax.crypto.spec.SecretKeySpec;
    import javax.security.auth.DestroyFailedException;
    import javax.security.auth.Destroyable;
    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    /**
     * Secure credential storage with encryption at rest.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  9. src/main/java/jcifs/util/SecureKeyManager.java

    import java.security.SecureRandom;
    import java.util.Arrays;
    import java.util.HashMap;
    import java.util.Map;
    import java.util.concurrent.ConcurrentHashMap;
    
    import javax.crypto.SecretKey;
    import javax.crypto.spec.SecretKeySpec;
    import javax.security.auth.DestroyFailedException;
    import javax.security.auth.Destroyable;
    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    /**
     * Secure key management for SMB encryption.
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 21.5K bytes
    - Click Count (0)
  10. docs/smb3-features/03-multi-channel-design.md

        public byte[] generateChannelBindingHash(ChannelInfo channel) throws GeneralSecurityException {
            // Use HMAC-SHA256 for channel binding
            Mac mac = Mac.getInstance("HmacSHA256");
            SecretKeySpec keySpec = new SecretKeySpec(sessionKey, "HmacSHA256");
            mac.init(keySpec);
            
            // Include channel-specific data
            mac.update(channel.getLocalInterface().getAddress().getAddress());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 39.6K bytes
    - Click Count (0)
Back to Top