/* ia5.h -- This defines the functions available in ia5.h
 *
 * Created by: Derek Atkins <warlord@MIT.EDU>
 *
 * $Source: /afs/net.mit.edu/user/warlord/Thesis/src/lib/RCS/ia5.h,v $
 * $Author: warlord $
 *
 */

#include <warlord-copyright.h>

#ifndef _IA5_H
#define _IA5_H

#include <sys/types.h>

/* This will convert an length of octets to the length that the IA5
 * encoding will be, plus 1
 */
#define IA5_LENGTH(a)	(((a + 2)/3)*4 + 1)


extern int ia5_encode_data(u_char *data, u_int datalen, char *encoded, 
			   u_int *encodedlen);

extern int ia5_decode_data(char *data, u_int datalen, u_char *decoded, 
			   u_int *decodedlen);

#endif
