public void hexdump(int count) { Hexdump.hexdump( System.err, buf.buf, buf.index, count ); } public boolean readBoolean() {
public void hexdump(int count) { Hexdump.hexdump( System.err, buf.buf, buf.index, count ); } public boolean readBoolean() {
public void hexdump ( int count ) { Hexdump.hexdump ( System.err, buf.buf, buf.index, count ); }
public byte[] digest() { byte[] b; b = digest.digest(); if( log.level >= 5 ) { log.println( "digest: " ); Hexdump.hexdump( log, b, 0, b.length ); log.flush(); } updates = 0; return b; }
public void update( byte[] input, int offset, int len ) { if( log.level >= 5 ) { log.println( "update: " + updates + " " + offset + ":" + len ); Hexdump.hexdump( log, input, offset, Math.min( len, 256 )); log.flush(); } if( len == 0 ) { return; /* CRITICAL */ } digest.update( input, offset, len ); updates++; } public byte[] digest() {
public String toString() { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); jcifs.util.Hexdump.hexdump(new PrintStream(byteArrayOutputStream), oid, 0, oid.length); return "{ IPID ref count is " + refcountofIPID + " } and OID in bytes[] " + byteArrayOutputStream.toString() + " , hasExpired " + hasExpired() + " } "; }
public String toString() { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); jcifs.util.Hexdump.hexdump(new PrintStream(byteArrayOutputStream), oid, 0, oid.length); return "{ IPID ref count is " + refcountofIPID + " } and OID in bytes[] " + byteArrayOutputStream.toString() + " , hasExpired " + hasExpired() + " } "; }
@Override public String toString () { final ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream (); jcifs.util.Hexdump.hexdump ( new PrintStream ( byteArrayOutputStream ), this.oid, 0, this.oid.length ); return "{ IPID ref count is " + this.refcountofIPID + " } and OID in bytes[] " + byteArrayOutputStream.toString () + " , hasExpired " + hasExpired () + " } "; }
public void update( byte[] input, int offset, int len ) { if( log.level >= 5 ) { log.println( "update: " + updates + " " + offset + ":" + len ); Hexdump.hexdump( log, input, offset, Math.min( len, 256 )); log.flush(); } if( len == 0 ) { return; /* CRITICAL */ } digest.update( input, offset, len ); updates++; } public byte[] digest() {
public byte[] digest() { byte[] b; b = digest.digest(); if( log.level >= 5 ) { log.println( "digest: " ); Hexdump.hexdump( log, b, 0, b.length ); log.flush(); } updates = 0; return b; }
public void update( byte[] input, int offset, int len ) { if( log.level >= 5 ) { log.println( "update: " + updates + " " + offset + ":" + len ); Hexdump.hexdump( log, input, offset, Math.min( len, 256 )); log.flush(); } if( len == 0 ) { return; /* CRITICAL */ } digest.update( input, offset, len ); updates++; } public byte[] digest() {
public byte[] digest() { byte[] b; b = digest.digest(); if( log.level >= 5 ) { log.println( "digest: " ); Hexdump.hexdump( log, b, 0, b.length ); log.flush(); } updates = 0; return b; }
public byte[] digest() { byte[] b; b = digest.digest(); if( log.level >= 5 ) { log.println( "digest: " ); Hexdump.hexdump( log, b, 0, b.length ); log.flush(); } updates = 0; return b; }
public void update( byte[] input, int offset, int len ) { if( log.level >= 5 ) { log.println( "update: " + updates + " " + offset + ":" + len ); Hexdump.hexdump( log, input, offset, Math.min( len, 256 )); log.flush(); } if( len == 0 ) { return; /* CRITICAL */ } digest.update( input, offset, len ); updates++; } public byte[] digest() {
public SigningDigest(byte[] macSigningKey, boolean bypass) throws SmbException { try { digest = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException ex) { if( log.level > 0 ) ex.printStackTrace( log ); throw new SmbException( "MD5", ex ); } this.macSigningKey = macSigningKey; this.bypass = bypass; this.updates = 0; this.signSequence = 0; if( log.level >= 5 ) { log.println("macSigningKey:"); Hexdump.hexdump( log, macSigningKey, 0, macSigningKey.length ); } }
protected void doSend( Request request ) throws IOException { synchronized (BUF) { ServerMessageBlock smb = (ServerMessageBlock)request; int n = smb.encode( BUF, 4 ); Encdec.enc_uint32be( n & 0xFFFF, BUF, 0 ); /* 4 byte session message header */ if (log.level >= 4) { do { log.println( smb ); } while (smb instanceof AndXServerMessageBlock && (smb = ((AndXServerMessageBlock)smb).andx) != null); if (log.level >= 6) { Hexdump.hexdump( log, BUF, 4, n ); } } out.write( BUF, 0, 4 + n ); } } protected void doSend0( Request request ) throws IOException {
public SigningDigest(byte[] macSigningKey, boolean bypass) throws SmbException { try { digest = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException ex) { if( log.level > 0 ) ex.printStackTrace( log ); throw new SmbException( "MD5", ex ); } this.macSigningKey = macSigningKey; this.bypass = bypass; this.updates = 0; this.signSequence = 0; if( log.level >= 5 ) { log.println("macSigningKey:"); Hexdump.hexdump( log, macSigningKey, 0, macSigningKey.length ); } }
protected void transmitFragment(ConnectionOrientedPdu fragment, Transport transport) throws IOException { transmitBuffer.reset(); fragment.encode(ndr, transmitBuffer); processOutgoing(); //jcifs.util.Hexdump.hexdump(System.err, transmitBuffer.getBuffer(), 0, transmitBuffer.length); if (logger.isLoggable(Level.FINEST)) { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); jcifs.util.Hexdump.hexdump(new PrintStream(byteArrayOutputStream), transmitBuffer.getBuffer(), 0, transmitBuffer.length); logger.finest("[TRANSMIT BUFFER]:-\n" + byteArrayOutputStream.toString()); } transport.send(transmitBuffer); }
protected void transmitFragment ( ConnectionOrientedPdu fragment, Transport transport ) throws IOException { transmitBuffer.reset (); fragment.encode ( ndr, transmitBuffer ); processOutgoing (); //jcifs.util.Hexdump.hexdump(System.err, transmitBuffer.getBuffer(), 0, transmitBuffer.length); if ( logger.isLoggable ( Level.FINEST ) ) { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream (); jcifs.util.Hexdump.hexdump ( new PrintStream ( byteArrayOutputStream ), transmitBuffer.getBuffer (), 0, transmitBuffer.length ); logger.finest ( "[TRANSMIT BUFFER]:-\n" + byteArrayOutputStream.toString () ); } transport.send ( transmitBuffer ); }
protected void transmitFragment(ConnectionOrientedPdu fragment, Transport transport) throws IOException { transmitBuffer.reset(); fragment.encode(ndr, transmitBuffer); processOutgoing(); //jcifs.util.Hexdump.hexdump(System.err, transmitBuffer.getBuffer(), 0, transmitBuffer.length); if (logger.isLoggable(Level.FINEST)) { ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); jcifs.util.Hexdump.hexdump(new PrintStream(byteArrayOutputStream), transmitBuffer.getBuffer(), 0, transmitBuffer.length); logger.finest("[TRANSMIT BUFFER]:-\n" + byteArrayOutputStream.toString()); } transport.send(transmitBuffer); }