X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fbase224.c;h=3d624717d0a9600b59618bd740cf3aac21a0c6cd;hb=3bb641c18d60f38d6e646211aa5c6a4b63ba9180;hp=0c9f3e9fbd1f585687f9090370a10d48a6156934;hpb=49ed04e2e93a6a5b01058638224621d5c07db01c;p=libucw.git diff --git a/lib/base224.c b/lib/base224.c index 0c9f3e9f..3d624717 100644 --- a/lib/base224.c +++ b/lib/base224.c @@ -1,5 +1,5 @@ /* - * Base 224 Encoding & Decoding + * UCW Library -- Base 224 Encoding & Decoding * * (c) 2002 Martin Mares * @@ -59,7 +59,7 @@ encode_block(byte *w, u32 hi, u32 lo) } 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 */ @@ -96,7 +96,7 @@ base224_encode(byte *dest, byte *src, uns len) } 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 */