- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 36 for cipherA (0.05 seconds)
-
src/main/java/jcifs/internal/smb2/nego/EncryptionNegotiateContext.java
private int[] ciphers; /** * Constructs an encryption negotiate context. * * @param config the configuration (currently unused) * @param ciphers array of encryption cipher IDs to negotiate */ public EncryptionNegotiateContext(final Configuration config, final int ciphers[]) { this.ciphers = ciphers; } /**Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 3.8K bytes - Click Count (0) -
src/test/java/org/codelibs/core/crypto/CachedCipherTest.java
cipher.setKey("mySecretKey"); final String original = ""; final String encrypted = cipher.encryptText(original); final String decrypted = cipher.decryptText(encrypted); assertThat(decrypted, is(original)); } @Test public void testLongText() { final CachedCipher cipher = new CachedCipher(); cipher.setKey("mySecretKey");
Created: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 5.3K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
final Cipher cipher = Cipher.getInstance(transformation); final GCMParameterSpec gcmSpec = new GCMParameterSpec(getAuthTagLength() * 8, nonce); cipher.init(encrypt ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE, keySpec, gcmSpec); return cipher; } finally { // Guaranteed cleanup of all key material if (key != null) {
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 35.5K bytes - Click Count (0) -
src/main/java/org/codelibs/core/crypto/CachedCipher.java
* @return a decryption cipher */ protected Cipher pollDecryptoCipher() { Cipher cipher = decryptoQueue.poll(); if (cipher == null) { try { final SecretKeySpec sksSpec = new SecretKeySpec(key.getBytes(charsetName), algorithm); cipher = Cipher.getInstance(algorithm); cipher.init(Cipher.DECRYPT_MODE, sksSpec);Created: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 15.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java
if (config.isEncryptionEnabled()) { // Build cipher list based on AES-256 support List<Integer> ciphers = new ArrayList<>(); // Prefer GCM over CCM for better performance if (config.isAES256Enabled()) { ciphers.add(EncryptionNegotiateContext.CIPHER_AES256_GCM); ciphers.add(EncryptionNegotiateContext.CIPHER_AES256_CCM); }
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 9.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallHandshakeTest.kt
private val handshakeCertificates = platform.localhostHandshakeCertificates() /** Ciphers in order we observed directly on the socket. */ private lateinit var handshakeEnabledCipherSuites: List<String> /** Ciphers in order we observed on sslSocketFactory defaults. */ private lateinit var defaultEnabledCipherSuites: List<String> /** Ciphers in order we observed on sslSocketFactory supported. */
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Tue Sep 16 07:21:43 GMT 2025 - 11.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
} @Test @DisplayName("Should handle different cipher IDs") void testDifferentCipherIds() { // Test cipher ID 1 (AES-CCM) Smb2EncryptionContext context1 = new Smb2EncryptionContext(1, DialectVersion.SMB311, testEncryptionKey, testDecryptionKey); assertEquals(1, context1.getCipherId(), "Should handle cipher ID 1"); // Test cipher ID 2 (AES-GCM)Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 44.1K bytes - Click Count (0) -
cmd/sftp-server.go
ssh.KeyAlgoSKED25519, ssh.KeyAlgoSKECDSA256, ssh.KeyAlgoECDSA256, ssh.KeyAlgoECDSA384, ssh.KeyAlgoECDSA521, ssh.KeyAlgoRSASHA256, ssh.KeyAlgoRSASHA512, ssh.KeyAlgoRSA, ssh.KeyAlgoDSA, } // supportedCiphers lists ciphers we support but might not recommend. // https://cs.opensource.google/go/x/crypto/+/refs/tags/v0.22.0:ssh/common.go;l=28 var supportedCiphers = []string{ "aes128-ctr", "aes192-ctr", "aes256-ctr",Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 16.5K bytes - Click Count (0) -
src/main/java/jcifs/util/SecureCredentialStorage.java
secureRandom.nextBytes(iv); // Setup cipher Cipher cipher = Cipher.getInstance(ENCRYPTION_ALGORITHM); GCMParameterSpec gcmSpec = new GCMParameterSpec(GCM_TAG_SIZE, iv); cipher.init(Cipher.ENCRYPT_MODE, masterKey, gcmSpec); // Encrypt byte[] ciphertext = cipher.doFinal(plaintextBytes); // Combine IV and ciphertext
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12.7K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java
Created: Sat Dec 20 13:44:44 GMT 2025 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 9.1K bytes - Click Count (0)