- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for SHA (0.01 sec)
-
guava/src/com/google/common/hash/Hashing.java
} /** * Returns a hash function implementing the SHA-1 algorithm (160 hash bits). * * @deprecated If you must interoperate with a system that requires SHA-1, then use this method, * despite its deprecation. But if you can choose your hash function, avoid SHA-1, which is * neither fast nor secure. As of January 2017, we suggest: * <ul>
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 22:06:57 UTC 2025 - 31.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/PreauthIntegrityService.java
// Default configuration private static final int DEFAULT_HASH_ALGORITHM = HASH_ALGO_SHA512; private static final int SALT_SIZE = 32; // 32 bytes as per SMB 3.1.1 spec private static final int HASH_SIZE_SHA512 = 64; // SHA-512 produces 64-byte hashes // Session-specific preauth integrity contexts private final ConcurrentMap<String, PreauthIntegrityContext> sessionContexts = new ConcurrentHashMap<>(); // Security configuration
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/PreauthIntegrityTest.java
// Setup SMB3.1.1 negotiation when(negotiateResponse.getSelectedDialect()).thenReturn(DialectVersion.SMB311); when(negotiateResponse.getSelectedPreauthHash()).thenReturn(1); // SHA-512 setPrivateField(transport, "smb2", true); setPrivateField(transport, "negotiated", negotiateResponse); int threadCount = 10; CountDownLatch startLatch = new CountDownLatch(1);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
@DisplayName("calculatePreauthHash computes SHA-512 chain for SMB 3.1.1") void preauthHash_happyPath() throws Exception { setField(transport, "smb2", true); Smb2NegotiateResponse nego = new Smb2NegotiateResponse(cfg); setField(nego, "selectedDialect", DialectVersion.SMB311); setField(nego, "selectedPreauthHash", 1); // 1 => SHA-512 setField(transport, "negotiated", nego);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/main/java/jcifs/util/Crypto.java
throw new CIFSUnsupportedCryptoException(e); } } /** * Get a SHA-512 message digest instance. * @return SHA512 digest instance */ public static MessageDigest getSHA512() { try { return MessageDigest.getInstance("SHA-512"); } catch (final NoSuchAlgorithmException e) { throw new CIFSUnsupportedCryptoException(e); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.7K bytes - Viewed (0) -
.github/workflows/test.yml
path: coverage merge-multiple: true - run: ls -la coverage - run: coverage combine coverage - run: coverage report - run: coverage html --title "Coverage for ${{ github.sha }}" - name: Store coverage HTML uses: actions/upload-artifact@v4 with: name: coverage-html path: htmlcov include-hidden-files: true
Registered: Sun Sep 07 07:19:17 UTC 2025 - Last Modified: Fri Aug 15 21:44:06 UTC 2025 - 4.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContext.java
public class PreauthIntegrityNegotiateContext implements NegotiateContextRequest, NegotiateContextResponse { /** * Context type */ public static final int NEGO_CTX_PREAUTH_TYPE = 0x1; /** * SHA-512 */ public static final int HASH_ALGO_SHA512 = 0x1; private int[] hashAlgos; private byte[] salt; /** * Constructs a preauth integrity negotiate context with the specified parameters.
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/smb/PreauthIntegrityServiceTest.java
}); } @Test @DisplayName("Test hash algorithm names") public void testHashAlgorithmNames() { assertEquals("SHA-512", PreauthIntegrityService.getHashAlgorithmName(PreauthIntegrityService.HASH_ALGO_SHA512)); assertTrue(PreauthIntegrityService.getHashAlgorithmName(0xFF).startsWith("Unknown")); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java
private byte[] calculateBindingHash(byte[] bindingInfo) throws IOException { try { MessageDigest digest = MessageDigest.getInstance("SHA-256"); return digest.digest(bindingInfo); } catch (NoSuchAlgorithmException e) { throw new IOException("SHA-256 not available", e); } } private void performHealthCheck() { for (ChannelInfo channel : channels.values()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 20K bytes - Viewed (0) -
src/main/java/jcifs/util/SecureKeyManager.java
if (context != null) { System.arraycopy(context, 0, input, pos, context.length); } // Use SHA-256 for derivation (placeholder) try { java.security.MessageDigest md = java.security.MessageDigest.getInstance("SHA-256"); byte[] hash = md.digest(input); System.arraycopy(hash, 0, derived, 0, Math.min(length, hash.length));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 21.5K bytes - Viewed (0)