- Sort Score
- Num 10 results
- Language All
Results 1 - 8 of 8 for getHmac (0.1 seconds)
-
src/main/java/jcifs/pac/kerberos/KerberosEncData.java
byte[] code = new byte[4]; Encdec.enc_uint32le(2, code, 0); byte[] codeHmac = getHmac(code, key.getEncoded()); byte[] dataChecksum = new byte[KerberosConstants.CHECKSUM_SIZE]; System.arraycopy(data, 0, dataChecksum, 0, KerberosConstants.CHECKSUM_SIZE); byte[] dataHmac = getHmac(dataChecksum, codeHmac); SecretKeySpec dataKey = new SecretKeySpec(dataHmac, KerberosConstants.RC4_ALGORITHM);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 12.5K bytes - Click Count (0) -
src/test/java/jcifs/smb/Kerb5ContextTest.java
byte[] data = new byte[] { 1, 2, 3 }; byte[] mic = new byte[] { 9, 8 }; when(gssContext.getMIC(eq(data), eq(0), eq(3), any())).thenReturn(mic); byte[] res = ctx.calculateMIC(data); assertArrayEquals(mic, res); verify(gssContext, times(1)).getMIC(eq(data), eq(0), eq(3), any()); } @Test @DisplayName("calculateMIC wraps GSSException into CIFSException")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.2K bytes - Click Count (0) -
src/test/java/jcifs/ntlmssp/Type3MessageTest.java
// Then // MIC (Message Integrity Check) should be included for newer versions if (type3.isMICRequired()) { assertNotNull(type3.getMic()); assertEquals(16, type3.getMic().length); // MIC is 16 bytes } } @Test @DisplayName("Should handle case sensitivity correctly") void testCaseSensitivity() throws Exception { // GivenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/admin/JobLogTests.java
// Get the specific log response = checkMethodBase(searchBody).get(API_PATH + "/log/" + logId).asString(); Map<String, Object> log = JsonPath.from(response).getMap("response.log"); logger.info("Job log detail: {}", log); assertEquals(logId, log.get("id").toString()); assertTrue(log.containsKey("job_name"), "Log should have job_name field");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 21 13:29:45 GMT 2025 - 9.9K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/it/admin/FailureUrlTests.java
// Get the specific log response = checkMethodBase(searchBody).get(API_PATH + "/log/" + logId).asString(); Map<String, Object> log = JsonPath.from(response).getMap("response.log"); logger.info("Failure URL log detail: {}", log); assertEquals(logId, log.get("id").toString()); assertTrue(log.containsKey("url"), "Log should have url field");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 12.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/Kerb5Context.java
* * @see jcifs.smb.SSPContext#calculateMIC(byte[]) */ @Override public byte[] calculateMIC(byte[] data) throws CIFSException { try { return this.gssContext.getMIC(data, 0, data.length, new MessageProp(false)); } catch (GSSException e) { throw new CIFSException("Failed to calculate MIC", e); } } /** * {@inheritDoc} *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 13.5K bytes - Click Count (1) -
src/main/java/jcifs/ntlmssp/Type3Message.java
} /** * Returns the message integrity code (MIC) for this Type-3 message. * * @return A <code>byte[]</code> containing the message integrity code. */ public byte[] getMic() { return this.mic; } /** * Sets the message integrity code (MIC) for this Type-3 message. * * @param mic * NTLM mic to set (16 bytes) */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 32.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/StatsTest.java
assertEquivalent(stats.mean(), streamStats.getAverage()); assertEquivalent(stats.sum(), streamStats.getSum()); assertEquivalent(stats.max(), streamStats.getMax()); assertEquivalent(stats.min(), streamStats.getMin()); } } private static void assertEquivalent(double actual, double expected) { if (expected == POSITIVE_INFINITY) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 33.4K bytes - Click Count (0)