[BACK]Return to blowfish.h CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_ntl / crypt / blowfish

File: [local] / OpenXM / src / ox_ntl / crypt / blowfish / blowfish.h (download)

Revision 1.2, Mon Sep 20 00:10:24 2004 UTC (19 years, 8 months ago) by iwane
Branch: MAIN
CVS Tags: R_1_3_1-2, RELEASE_1_3_1_13b, RELEASE_1_2_3_12, RELEASE_1_2_3, KNOPPIX_2006, HEAD, DEB_REL_1_2_3-9
Changes since 1.1: +10 -2 lines

include <inttypes.h>

/* $OpenXM: OpenXM/src/ox_ntl/crypt/blowfish/blowfish.h,v 1.2 2004/09/20 00:10:24 iwane Exp $ */

#ifndef __BLOWFISH_H__
#define __BLOWFISH_H__

#include <inttypes.h>

typedef struct __blowfish_key_t {
	uint32_t p[18];
	uint32_t s[4 * 256];
} blowfish_key;


#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

void	blowfish_enc_i(const blowfish_key *, uint32_t, uint32_t, uint32_t *, uint32_t *);
void	blowfish_dec_i(const blowfish_key *, uint32_t, uint32_t, uint32_t *, uint32_t *);

void	blowfish_setkey(const unsigned char *, int, blowfish_key *);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __BLOWFISH_H__ */