]> mj.ucw.cz Git - libucw.git/blobdiff - lib/base224.c
fixed SHERLOCK_VERSION
[libucw.git] / lib / base224.c
index 0c9f3e9fbd1f585687f9090370a10d48a6156934..3d624717d0a9600b59618bd740cf3aac21a0c6cd 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- *     Base 224 Encoding & Decoding
+ *     UCW Library -- Base 224 Encoding & Decoding
  *
  *     (c) 2002 Martin Mares <mj@ucw.cz>
  *
  *
  *     (c) 2002 Martin Mares <mj@ucw.cz>
  *
@@ -59,7 +59,7 @@ encode_block(byte *w, u32 hi, u32 lo)
 }
 
 uns
 }
 
 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 */
 {
   u32 lo=0, hi=0;                      /* 64-bit buffer accumulating input bits */
   uns i=0;                             /* How many source bits do we have buffered */
@@ -96,7 +96,7 @@ base224_encode(byte *dest, byte *src, uns len)
 }
 
 uns
 }
 
 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 */
 {
   u32 hi=0, lo=0;                      /* 64-bit buffer accumulating output bits */
   uns i=0;                             /* How many bits do we have accumulated */