- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for verifyMIC (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/smb/Kerb5ContextTest.java
assertTrue(ex.getMessage().contains("Failed to verify MIC")); } @Test @DisplayName("verifyMIC with null inputs throws NPE") void verifyMIC_nullInputs() { assertThrows(NullPointerException.class, () -> ctx.verifyMIC(null, new byte[] { 1 })); assertThrows(NullPointerException.class, () -> ctx.verifyMIC(new byte[] { 1 }, null)); }
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/smb/SSPContextTest.java
@Test @DisplayName("verifyMIC throws on mismatch and nulls") void testVerifyMICThrows() throws Exception { DummySSPContext ctx = new DummySSPContext(new byte[] { 1 }, true, null, null, 0, true); byte[] data = new byte[] { 1, 2, 3 }; byte[] wrongMic = new byte[] { 0 }; assertThrows(CIFSException.class, () -> ctx.verifyMIC(data, wrongMic));Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 15.2K bytes - Click Count (0) -
src/main/java/jcifs/smb/Kerb5Context.java
} } /** * {@inheritDoc} * * @see jcifs.smb.SSPContext#verifyMIC(byte[], byte[]) */ @Override public void verifyMIC(byte[] data, byte[] mic) throws CIFSException { try { this.gssContext.verifyMIC(mic, 0, mic.length, data, 0, data.length, new MessageProp(false)); } catch (GSSException e) {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/smb/SpnegoContext.java
/** * {@inheritDoc} * * @see jcifs.smb.SSPContext#verifyMIC(byte[], byte[]) */ @Override public void verifyMIC(final byte[] data, final byte[] mic) throws CIFSException { if (!this.completed) { throw new CIFSException("Context is not established"); } this.mechContext.verifyMIC(data, mic); } /** * {@inheritDoc} *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 14.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/NtlmContext.java
System.arraycopy(trunc, 0, sig, 4, 8); // checksum SMBUtil.writeInt4(seqNum, sig, 12); // seqNum return sig; } @Override public void verifyMIC(final byte[] data, final byte[] mic) throws CIFSException { final byte[] sk = this.verifyKey; if (sk == null) { throw new CIFSException("Signing is not initialized"); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 17.3K bytes - Click Count (1)