@Override public void write(byte[] buf,int off,int nbytes){
  digest.update(buf,off,nbytes);
}

@ Override public void write ( byte [ ] buf , int off , int nbytes ) { digest . update ( buf , off , nbytes ) ; }
updates a digest with byte array .
