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

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

Revision 1.2, Sun Jun 19 15:45:38 2005 UTC (18 years, 11 months ago) by iwane
Branch: MAIN
CVS Tags: R_1_3_1-2, RELEASE_1_3_1_13b, RELEASE_1_2_3_12, KNOPPIX_2006, HEAD, DEB_REL_1_2_3-9
Changes since 1.1: +3 -3 lines

changed prototype of CBC-mode

/* $OpenXM: OpenXM/src/ox_ntl/crypt/des/block.h,v 1.2 2005/06/19 15:45:38 iwane Exp $ */

#ifndef __BLOCK_H__
#define __BLOCK_H__

#ifdef __cplusplus
extern "C" {
#endif

int	crypt_ecb(void *key, int block, int len, const unsigned char *data, unsigned char *buf, void *);

int	crypt_enc_cbc(void *key, int, unsigned char *, int, const unsigned char *, unsigned char *, void *);
int	crypt_dec_cbc(void *key, int, unsigned char *, int, const unsigned char *, unsigned char *, void *);

int	crypt_cfb(void *_key, int _mode, int _bit, int _block,
		const unsigned char *_iv, int _len,
		const unsigned char *_data,
		unsigned char *_buf,void *);

int	crypt_ofb(void *_key, int _bit, int _block,
		const unsigned char *_iv, int _len,
		const unsigned char *_data,
		unsigned char *_buf, void *);


#ifdef __cplusplus
}
#endif


#endif /* __BLOCK_H__ */