/*
- * Base 224 Encoding & Decoding
+ * UCW Library -- Base 224 Encoding & Decoding
*
* (c) 2002 Martin Mares <mj@ucw.cz>
*
*
* We transform 39 source bits to 40 destination bits, stretching the data
* by 1/39 = approx. 2.56%.
+ *
+ * This software may be freely distributed and used according to the terms
+ * of the GNU Lesser General Public License.
*/
#undef LOCAL_DEBUG
}
uns
-base224_encode(byte *dest, byte *src, uns len)
+base224_encode(byte *dest, const byte *src, uns len)
{
u32 lo=0, hi=0; /* 64-bit buffer accumulating input bits */
uns i=0; /* How many source bits do we have buffered */
}
uns
-base224_decode(byte *dest, byte *src, uns len)
+base224_decode(byte *dest, const byte *src, uns len)
{
u32 hi=0, lo=0; /* 64-bit buffer accumulating output bits */
uns i=0; /* How many bits do we have accumulated */