/* -*-c-*-
*
- * $Id: pkcs1.c,v 1.2 2000/07/05 17:49:48 mdw Exp $
+ * $Id: pkcs1.c,v 1.3 2000/10/08 12:07:04 mdw Exp $
*
* PKCS#1 1.5 packing
*
/*----- Revision history --------------------------------------------------*
*
* $Log: pkcs1.c,v $
+ * Revision 1.3 2000/10/08 12:07:04 mdw
+ * Don't do arithmetic on @void *@ pointers.
+ *
* Revision 1.2 2000/07/05 17:49:48 mdw
* Fix decoding functions, so that they don't run off the end of the
* buffer.
if (pp->epsz + 11 > sz)
return (-1);
q = buf;
- qq = buf + sz;
+ qq = q + sz;
/* --- Ensure that the block looks OK --- */
if (pp->epsz + 10 > sz)
return (-1);
q = buf;
- qq = buf + sz;
+ qq = q + sz;
/* --- Ensure that the block looks OK --- */