Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for hashAlgos (0.18 sec)

  1. src/main/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContext.java

            final int start = dstIndex;
    
            SMBUtil.writeInt2(this.hashAlgos != null ? this.hashAlgos.length : 0, dst, dstIndex);
            SMBUtil.writeInt2(this.salt != null ? this.salt.length : 0, dst, dstIndex + 2);
            dstIndex += 4;
    
            if (this.hashAlgos != null) {
                for (final int hashAlgo : this.hashAlgos) {
                    SMBUtil.writeInt2(hashAlgo, dst, dstIndex);
                    dstIndex += 2;
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

                int[] hashAlgos = { PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512 };
                byte[] salt = { 0x01, 0x02, 0x03, 0x04 };
    
                PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt);
    
                assertNotNull(context);
                assertArrayEquals(hashAlgos, context.getHashAlgos());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

            void testEncodeWithDifferentHashAlgoCounts(int count) {
                int[] hashAlgos = new int[count];
                for (int i = 0; i < count; i++) {
                    hashAlgos[i] = i + 1;
                }
                byte[] salt = new byte[16];
    
                context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt);
                int encoded = context.encode(buffer, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

            void testSizeCalculation(int hashAlgoCount) {
                // Arrange
                int[] hashAlgos = new int[hashAlgoCount];
                byte[] salt = new byte[16];
                context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt);
    
                // Act
                int size = context.size();
    
                // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

        }
    
        private NegotiateContextRequest createMockPreauthContext() {
            PreauthIntegrityNegotiateContext ctx = new PreauthIntegrityNegotiateContext();
            try {
                setPrivateField(ctx, "hashAlgos", new int[] { PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512 });
            } catch (Exception e) {
                throw new RuntimeException(e);
            }
            return ctx;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
Back to top