X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/79ba130cb5776f994f6a3f0f87159d8cbc5ff129..95ccefe3ce59a0773f915aca6948d5b6f1f7c882:/ofb.h diff --git a/ofb.h b/ofb.h index 189b65d..970acf7 100644 --- a/ofb.h +++ b/ofb.h @@ -1,13 +1,13 @@ /* -*-c-*- * - * $Id: ofb.h,v 1.2 1999/12/10 23:16:40 mdw Exp $ + * $Id: ofb.h,v 1.5 2004/04/08 01:36:15 mdw Exp $ * * Output feedback for block ciphers * * (c) 1999 Straylight/Edgeware */ -/*----- Licensing notice --------------------------------------------------* +/*----- Licensing notice --------------------------------------------------* * * This file is part of Catacomb. * @@ -15,29 +15,18 @@ * it under the terms of the GNU Library General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. - * + * * Catacomb is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Library General Public License for more details. - * + * * You should have received a copy of the GNU Library General Public * License along with Catacomb; if not, write to the Free * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, * MA 02111-1307, USA. */ -/*----- Revision history --------------------------------------------------* - * - * $Log: ofb.h,v $ - * Revision 1.2 1999/12/10 23:16:40 mdw - * Split mode macros into interface and implementation. - * - * Revision 1.1 1999/09/03 08:41:12 mdw - * Initial import. - * - */ - #ifndef CATACOMB_OFB_H #define CATACOMB_OFB_H @@ -74,14 +63,14 @@ \ typedef struct pre##_ofbctx { \ pre##_ctx ctx; /* Underlying cipher context */ \ - int off; /* Current offset in buffer */ \ + unsigned off; /* Current offset in buffer */ \ octet iv[PRE##_BLKSZ]; /* Output buffer and IV */ \ } pre##_ofbctx; \ \ /* --- @pre_ofbgetiv@ --- * \ * \ * Arguments: @const pre_ofbctx *ctx@ = pointer to OFB context block \ - * @void *iv#@ = pointer to output data block \ + * @void *iv@ = pointer to output data block \ * \ * Returns: --- \ * \