/* THIS FILE IS AUTO-GENERATED. don't edit */


#include <stdarg.h>
#include "../cache.h"
enum digest_type {
	DEFAULT,
	CRC32,
	SHA256,
	PLAIN,
	RS,
	MD5
};
enum hmac_type {
	HMAC_SHA256,
	HMAC_SHA256BK,
	HMAC_MD5,
	HMAC_MD5BK
};
enum encoding_type {
	BASE64,
	HEX,
	HEXLC
};


char *digest_string(const enum digest_type type, const enum encoding_type enc,
	      struct sess *sp, const char *s, va_list ap);
char *encode_string(const enum encoding_type enc,
	      struct sess *sp, const char *s, va_list ap);
char *hmac_string(const enum hmac_type type, const enum encoding_type enc,
	struct sess *sp, const char *key, const char *s, va_list ap);


