[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.1, Thu Jul 22 12:12:05 2004 UTC (19 years, 11 months ago) by iwane
Branch: MAIN

added The Blowfish Encryption Algorithm

/* $OpenXM: OpenXM/src/ox_ntl/crypt/blowfish/blowfish.h,v 1.1 2004/07/22 12:12:05 iwane Exp $ */

#ifndef __BLOWFISH_H__
#define __BLOWFISH_H__

#include <unistd.h>

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


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 *);

#endif /* __BLOWFISH_H__ */