- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for PreauthIntegrityNegotiateContext (0.21 sec)
-
src/main/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContext.java
* @param salt the salt value for preauth integrity */ public PreauthIntegrityNegotiateContext(final Configuration config, final int[] hashAlgos, final byte[] salt) { this.hashAlgos = hashAlgos; this.salt = salt; } /** * Default constructor for deserialization. */ public PreauthIntegrityNegotiateContext() { } /** * Gets the salt value used for preauth integrity.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java
PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, null); assertEquals(8, context.size()); } @Test @DisplayName("Should calculate size for salt only") void testSizeWithSaltOnly() { byte[] salt = { 0x01, 0x02, 0x03 };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 34K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java
PreauthIntegrityNegotiateContext originalContext = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt); // Act byte[] buffer = new byte[originalContext.size()]; int encodedSize = originalContext.encode(buffer, 0); PreauthIntegrityNegotiateContext decodedContext = new PreauthIntegrityNegotiateContext();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
assertNotNull(contexts); assertEquals(2, contexts.length); // Verify preauth context assertTrue(contexts[0] instanceof PreauthIntegrityNegotiateContext); assertEquals(PreauthIntegrityNegotiateContext.NEGO_CTX_PREAUTH_TYPE, contexts[0].getContextType()); // Verify encryption context assertTrue(contexts[1] instanceof EncryptionNegotiateContext);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
} return ctx; } private PreauthIntegrityNegotiateContext createValidPreauthResponse() { PreauthIntegrityNegotiateContext ctx = new PreauthIntegrityNegotiateContext(); try { setPrivateField(ctx, "hashAlgos", new int[] { PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512 }); } catch (Exception e) { throw new RuntimeException(e);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 32.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java
return false; } else if (!foundPreauth && ncr.getContextType() == PreauthIntegrityNegotiateContext.NEGO_CTX_PREAUTH_TYPE) { foundPreauth = true; final PreauthIntegrityNegotiateContext pi = (PreauthIntegrityNegotiateContext) ncr; if (!checkPreauthContext(req, pi)) { return false; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java
final byte[] salt = new byte[32]; config.getRandom().nextBytes(salt); negoContexts.add( new PreauthIntegrityNegotiateContext(config, new int[] { PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512 }, salt)); this.preauthSalt = salt; if (config.isEncryptionEnabled()) { // Build cipher list based on AES-256 support
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/PreauthIntegrityService.java
import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jcifs.CIFSException; import jcifs.internal.smb2.nego.PreauthIntegrityNegotiateContext; /** * Enhanced Pre-Authentication Integrity Service for SMB 3.1.1. * * Provides comprehensive pre-authentication integrity protection against
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 12.1K bytes - Viewed (0)