home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume10 / cbw / part01 / dblock.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-06-16  |  667 b   |  21 lines

  1. extern    int    dbsrc2pos();
  2. extern    int    dbsp2row();
  3. extern    int    dbsp2col();
  4. extern    int    dbsdpchar();
  5.  
  6.  
  7.  
  8. #define dbsinfo    struct xdbsinfo
  9. struct    xdbsinfo    {
  10.         char    *cbuf;        /* Ciphertext block. */
  11.         int        *pbuf;        /* Plaintext block. */
  12.         int        *perm;        /* Partial permutation, -1 -> none known. */
  13.         char    *mbuf;        /* Bools for which chars are marked. */
  14.         int        wirecnt;    /* Number of known wires in perm. */
  15.         int        cmdloc;        /* Position in pbuf where cmd started. */
  16.         int        cmdnext;    /* Index for next char to add to cmdbuf. */
  17.         int        *cmdbuf;    /* Command from user. */
  18.         int        *operm;        /* Permutation after last command. */
  19.         int        blknum;        /* Zero based index of current block. */
  20.         };
  21.