- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for verifyMIC (0.04 sec)
-
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));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.2K bytes - Viewed (0) -
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)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.2K bytes - Viewed (0) -
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} *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.5K bytes - Viewed (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) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13.5K bytes - Viewed (1) -
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"); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 17.3K bytes - Viewed (0)