/* $Id: base64.h,v 1.4 2002/06/23 20:28:30 richdawe Exp $ */

/*
 *  base64.h - Header for Base64 encoding/decoding routines for pakke
 *  Copyright (C) 2000-2002 by Richard Dawe
 *      
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program 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 General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#ifndef __pakke_base64_h__
#define __pakke_base64_h__

#include <sys/types.h>

extern ssize_t base64_get_encoded_size (size_t /* insize */);

extern ssize_t base64_encode (void * /* in */, size_t /* insize */,
			      void * /* out */, size_t * /* outsize */);

extern ssize_t base64_get_decoded_size (void * /* in */, size_t /* insize */);

extern ssize_t base64_decode (void * /* in */, size_t /* insize */,
			      void * /* out */, size_t * /* outsize */);

#endif	/* __pakke_base64_h__ */
