#ifndef __ENCKEYS_H__
#define __ENCKEYS_H__

#include "fullSpec.h"

int cipherCFBInitBinary (cipherInstance * cipherInst, unsigned char *IV);
int encryptKeys (BYTE * dataForFloppy, BYTE * cipherKey, BYTE * iv,
	     BYTE * macKey, BYTE * encKey);
int decryptKeys (BYTE * decryptedMacKey, BYTE * decryptedEncKey,
	     BYTE * dataFromFloppy, BYTE * cipherKey);

extern int blockEncrypt (cipherInstance * cipher, keyInstance * key,
		  BYTE * input, int inputLen, BYTE * outBuffer);
extern int blockDecrypt (cipherInstance * cipher, keyInstance * key,
		  BYTE * input, int inputLen, BYTE * outBuffer);
extern int makeKeyBinary (keyInstance * keyInst, BYTE direction,
	       unsigned char *cipherKey);

#endif /* __ENCKEYS_H__ */